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

Game ID not found #1

Open
yuchenmo opened this issue Nov 23, 2021 · 1 comment
Open

Game ID not found #1

yuchenmo opened this issue Nov 23, 2021 · 1 comment

Comments

@yuchenmo
Copy link

yuchenmo commented Nov 23, 2021

Hi, I am following the README file to reproduce your results. The following error occurred when I was evaluating the three modules with the pre-trained model weights. It seems there is no key named 'id' in the annotation file.

Traceback (most recent call last):
  File "main.py", line 190, in <module>
    run(args)
  File "main.py", line 135, in run
    solver.load_data()
  File "/.../read-up/solver/self_play_all_vilbert.py", line 83, in load_data
    self.load_dataloader(img_feat_readers, img_feat_readers_gt, tokenizer, splits)
  File "/.../read-up/solver/self_play_all_vilbert.py", line 41, in load_dataloader
    image_features_reader_gt=img_feat_readers_gt[split],
  File "/.../read-up/src/data/self_play_all_vilbert.py", line 41, in __init__
    **kwargs)
  File "/.../read-up/src/data/dataset.py", line 58, in __init__
    self.entries = self._load_dataset()
  File "/.../read-up/src/data/self_play_all_vilbert.py", line 49, in _load_dataset
    game = Game.from_annotation(annotation)
  File "/.../read-up/src/tools/utils.py", line 211, in from_annotation
    game_id=annotation['id'],
KeyError: 'id'

I set up the GuessWhat?! dataset following the instructions here. Maybe the dataset has been updated and the code based on the old annotation format is no longer working? If so, will there be an update to accommodate the new dataset format? Thank you for your time in advance!

@caishuo-C
Copy link

Hi, I am following the README file to reproduce your results. The following error occurred when I was evaluating the three modules with the pre-trained model weights. It seems there is no key named 'id' in the annotation file.

Traceback (most recent call last):
  File "main.py", line 190, in <module>
    run(args)
  File "main.py", line 135, in run
    solver.load_data()
  File "/.../read-up/solver/self_play_all_vilbert.py", line 83, in load_data
    self.load_dataloader(img_feat_readers, img_feat_readers_gt, tokenizer, splits)
  File "/.../read-up/solver/self_play_all_vilbert.py", line 41, in load_dataloader
    image_features_reader_gt=img_feat_readers_gt[split],
  File "/.../read-up/src/data/self_play_all_vilbert.py", line 41, in __init__
    **kwargs)
  File "/.../read-up/src/data/dataset.py", line 58, in __init__
    self.entries = self._load_dataset()
  File "/.../read-up/src/data/self_play_all_vilbert.py", line 49, in _load_dataset
    game = Game.from_annotation(annotation)
  File "/.../read-up/src/tools/utils.py", line 211, in from_annotation
    game_id=annotation['id'],
KeyError: 'id'

I set up the GuessWhat?! dataset following the instructions here. Maybe the dataset has been updated and the code based on the old annotation format is no longer working? If so, will there be an update to accommodate the new dataset format? Thank you for your time in advance!

same issue+1

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

2 participants