MILVLG / openvqa

A lightweight, scalable, and general framework for visual question answering research
Apache License 2.0
318 stars 64 forks source link

CLEVR problem #84

Open QA-x opened 9 months ago

QA-x commented 9 months ago

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'

J-Luuu commented 9 months ago

【自动回复】您好,已收到邮件!This is an automatic reply, confirming that your e-mail was received. Thank you!