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

single question test #38

Closed
miao404 opened this issue Nov 15, 2021 · 3 comments
Closed

single question test #38

miao404 opened this issue Nov 15, 2021 · 3 comments

Comments

@miao404
Copy link

miao404 commented Nov 15, 2021

I am trying to do a single question test, so I reduce the test_question.json to one picture and one question, and I encounter this problem:
RuntimeError: Error(s) in loading state_dict for Net: size mismatch for embedding.weight: copying a param with shape torch.Size([20572, 300]) from checkpoint, the shape in current model is torch.Size([18405, 300]).

Do you know how to fix this ? or the test_question.json is just stable which I cannot modify the scale of the pictures and the questions?

Can you give me some suggestions about how to test single question in single picture ?

Thanks a lot.

@MIL-VLG
Copy link
Collaborator

MIL-VLG commented Nov 16, 2021

This may be due to the vocabulary size for the question. Have you changed the config for the training vocab (or split)?

@GaoKangYu
Copy link

This may be due to the vocabulary size for the question. Have you changed the config for the training vocab (or split)?

I met the same problem, how can I test single question in single picture ?

Whitch .py file and how to changed the config for the training vocab (or split) ?

Thanks a lot.

@MIL-VLG
Copy link
Collaborator

MIL-VLG commented Jan 26, 2022

This repo does not support such single image testing.

@MIL-VLG MIL-VLG closed this as completed Feb 9, 2022
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

3 participants