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

IndexError: index 14 is out of bounds for axis 0 with size 14 #8

Open
liumc14 opened this issue Mar 26, 2023 · 0 comments
Open

IndexError: index 14 is out of bounds for axis 0 with size 14 #8

liumc14 opened this issue Mar 26, 2023 · 0 comments

Comments

@liumc14
Copy link

liumc14 commented Mar 26, 2023

Hello, thank you very much for your code, but I raised the following questions during the training, may I ask why?
Traceback (most recent call last):
File "main.py", line 153, in
main()
File "main.py", line 119, in main
train_loader, val_loader, vocab_size, num_classes = prepare_data(args)
File "/home/disk/lmc/vqa-winner-cvprw-2017/data_loader.py", line 72, in prepare_data
VQAv2(root=args.data_root, train=True),
File "/home/disk/lmc/vqa-winner-cvprw-2017/data_loader.py", line 38, in init
que[i] = word2idx[word]
IndexError: index 14 is out of bounds for axis 0 with size 14

que[i] = word2idx[word]

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

1 participant