Skip to content

KeyError:108407 #66

@Fan2022HNU

Description

@Fan2022HNU

xxx/anaconda3/envs/endochat/lib/python3.10/site-packages/torch/_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
return self.fget.get(instance, owner)()
Traceback (most recent call last):
File "xxx/visual_question_answering/prophet/main.py", line 35, in
runner.run()
File "xxx/visual_question_answering/prophet/prophet/stage1/pretrain.py", line 171, in run
self.train(train_set, valid_set)
File "xxx/visual_question_answering/prophet/prophet/stage1/pretrain.py", line 102, in train
for step, input_tuple in enumerate(dataloader):
File "xxx/anaconda3/envs/endochat/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 630, in next
data = self._next_data()
File "xxx/anaconda3/envs/endochat/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 1345, in _next_data
return self._process_data(data)
File "xxx/anaconda3/envs/endochat/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 1371, in _process_data
data.reraise()
File "xxx/anaconda3/envs/endochat/lib/python3.10/site-packages/torch/_utils.py", line 694, in reraise
raise exception
KeyError: Caught KeyError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "xxx/anaconda3/envs/endochat/lib/python3.10/site-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "xxx/anaconda3/envs/endochat/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 51, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "xxx/anaconda3/envs/endochat/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 51, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "xxx/visual_question_answering/prophet/prophet/stage1/utils/load_data.py", line 138, in getitem
img_feat = np.load(self.imgid_to_path[img_id])['x']
KeyError: 108407

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions