Skip to content

CLEVR problem #84

@ghost

Description

Why is this project code reporting errors in the CLEVR dataset?
The question is:
Traceback (most recent call last):
File "/mnt/public/home/s-xuk/mcan-gqa/run.py", line 160, in
execution.run(__C.RUN_MODE)
File "/mnt/public/home/s-xuk/mcan-gqa/utils/exec.py", line 33, in run
train_engine(self.__C, self.dataset, self.dataset_eval)
File "/mnt/public/home/s-xuk/mcan-gqa/utils/train_engine.py", line 143, in train_engine
) in enumerate(dataloader):
File "/mnt/public/home/s-xuk/anaconda3/envs/python37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 435, in next
data = self._next_data()
File "/mnt/public/home/s-xuk/anaconda3/envs/python37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1085, in _next_data
return self._process_data(data)
File "/mnt/public/home/s-xuk/anaconda3/envs/python37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1111, in _process_data
data.reraise()
File "/mnt/public/home/s-xuk/anaconda3/envs/python37/lib/python3.7/site-packages/torch/_utils.py", line 428, in reraise
raise self.exc_type(msg)
KeyError: Caught KeyError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/mnt/public/home/s-xuk/anaconda3/envs/python37/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/mnt/public/home/s-xuk/anaconda3/envs/python37/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/mnt/public/home/s-xuk/anaconda3/envs/python37/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/mnt/public/home/s-xuk/mcan-gqa/openvqa/core/base_dataset.py", line 36, in getitem
frcn_feat_iter, grid_feat_iter, bbox_feat_iter = self.load_img_feats(idx, iid)
File "/mnt/public/home/s-xuk/mcan-gqa/openvqa/datasets/clevr/clevr_loader.py", line 163, in load_img_feats
grid_feat = np.load(self.iid_to_grid_feat_path[iid], allow_pickle=True)
KeyError: '44448'

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