v-d4rl icon indicating copy to clipboard operation
v-d4rl copied to clipboard

Torchrl dataset problem.

Open dwsmart32 opened this issue 1 year ago • 2 comments

https://github.com/pytorch/rl/issues/1833#issue-2099658496

Hi again!. Thanks for forwarding this problem to author of torchrl.

However, the author raised a issue that it can be a problem of vd4rl dataset.(maybe some omitted dataset)

It seems like it has to get one more or less data(maybe .npz file) according to error message!

TensorDict(
    fields={
        action: MemoryMappedTensor(shape=torch.Size([500, 21]), device=cpu, dtype=torch.float32, is_shared=False),
        discount: MemoryMappedTensor(shape=torch.Size([500]), device=cpu, dtype=torch.float64, is_shared=False),
        image: MemoryMappedTensor(shape=torch.Size([500, 64, 64, 3]), device=cpu, dtype=torch.uint8, is_shared=False),
        is_first: MemoryMappedTensor(shape=torch.Size([501]), device=cpu, dtype=torch.bool, is_shared=False),
        is_last: MemoryMappedTensor(shape=torch.Size([501]), device=cpu, dtype=torch.bool, is_shared=False),
        is_terminal: MemoryMappedTensor(shape=torch.Size([501]), device=cpu, dtype=torch.bool, is_shared=False),
        reward: MemoryMappedTensor(shape=torch.Size([500]), device=cpu, dtype=torch.float64, is_shared=False)},
    batch_size=torch.Size([]),
    device=cpu,
    is_shared=False)

I'm wondering whether you failed to upload a single file to somewhere.

Could you please look into this matter once again?

Appreciate it for your time.

I think it will be powerful and become very easy to access to this dataset, if it supports torchrl perfectly.

dwsmart32 avatar Jan 25 '24 11:01 dwsmart32

I'm looking into it!

conglu1997 avatar Jan 25 '24 19:01 conglu1997

Apologies, haven't had time to look at this yet. A quick workaround would be to simply skip this single .npz file with the issue until we can re-generate it. This shouldn't impact the eval or training in any measurable way.

conglu1997 avatar Mar 04 '24 02:03 conglu1997