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

Unable to run demo.py(demo.py runtime error size mismatch for module.Prediction.weight) #376

Open
hic9507 opened this issue Jan 3, 2023 · 2 comments

Comments

@hic9507
Copy link

hic9507 commented Jan 3, 2023

After learning, I try to test using demo.py using weights, but this error pops up and it does not run.
--character of train.py and demo.py are all unified to the same character, but still not executed.
please help
help me

Error
RuntimeError: Error(s) in loading state_dict for DataParallel:
size mismatch for module.Prediction.weight: copying a param with shape torch.Size([11520, 256]) from checkpoint, the shape in current model is torch.Size([11522, 256]).
size mismatch for module.Prediction.bias: copying a param with shape torch.Size([11520]) from checkpoint, the shape in current model is torch.Size([11522]).

@zaghdoud2019
Copy link

Hi,are you resolove the probleme please

@Benewend
Copy link

You need to open the demo file in the Paramus there is the character list juste make sure it is as yours

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