Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors during searching VQA. #6

Closed
ghost opened this issue Feb 24, 2021 · 1 comment
Closed

Errors during searching VQA. #6

ghost opened this issue Feb 24, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 24, 2021

The error is as the following:

 ========== Answer token vocab size (occur more than 8 times): 3129
 ========== Answer token vocab size (occur more than 8 times): 3129
 ========== Answer token vocab size (occur more than 8 times): 3129
 ========== Answer token vocab size (occur more than 8 times): 3129
Traceback (most recent call last):
  File "search_vqa.py", line 615, in <module>
    join=True
  File "/home/zhouxx/anaconda3/envs/py36-t12-cu100/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 171, in spawn
    while not spawn_context.join():
  File "/home/zhouxx/anaconda3/envs/py36-t12-cu100/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 118, in join
    raise Exception(msg)
Exception:

-- Process 3 terminated with the following error:
Traceback (most recent call last):
  File "/home/zhouxx/anaconda3/envs/py36-t12-cu100/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 19, in _wrap
    fn(i, *args)
  File "/home/zhouxx/gprojects/mmnas/search_vqa.py", line 607, in mp_entrance
    exec.run()
  File "/home/zhouxx/gprojects/mmnas/search_vqa.py", line 585, in run
    self.search(train_loader, eval_loader)
  File "/home/zhouxx/gprojects/mmnas/search_vqa.py", line 268, in search
    for step, step_load in enumerate(train_loader):
  File "/home/zhouxx/anaconda3/envs/py36-t12-cu100/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 819, in __next__
    return self._process_data(data)
  File "/home/zhouxx/anaconda3/envs/py36-t12-cu100/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 846, in _process_data
    data.reraise()
  File "/home/zhouxx/anaconda3/envs/py36-t12-cu100/lib/python3.6/site-packages/torch/_utils.py", line 369, in reraise
    raise self.exc_type(msg)
KeyError: Caught KeyError in DataLoader worker process 0.
Original Traceback (most recent call last):
  File "/home/zhouxx/anaconda3/envs/py36-t12-cu100/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
    data = fetcher.fetch(index)
  File "/home/zhouxx/anaconda3/envs/py36-t12-cu100/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/home/zhouxx/anaconda3/envs/py36-t12-cu100/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/home/zhouxx/gprojects/mmnas/mmnas/loader/load_data_vqa.py", line 224, in __getitem__
    frcn_feat = np.load(self.iid_to_frcn_feat_path[iid])
KeyError: '463620'

@ghost
Copy link
Author

ghost commented Feb 25, 2021

Solved.

@ghost ghost closed this as completed Feb 25, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants