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

Case Sensitive Option Not Working while running demo.py #275

Closed
abdur75648 opened this issue Mar 24, 2021 · 6 comments
Closed

Case Sensitive Option Not Working while running demo.py #275

abdur75648 opened this issue Mar 24, 2021 · 6 comments

Comments

@abdur75648
Copy link

I tried both the commands
py demo.py --Transformation TPS --FeatureExtraction ResNet --SequenceModeling BiLSTM --Prediction Attn --image_folder demo_image/ --saved_model TPS-ResNet-BiLSTM-Attn-case-sensitive.pth & py demo.py --sensitive --Transformation TPS --FeatureExtraction ResNet --SequenceModeling BiLSTM --Prediction Attn --image_folder demo_image/ --saved_model TPS-ResNet-BiLSTM-Attn.pth

but getting this Error:
> RuntimeError: Error(s) in loading state_dict for DataParallel:
>         size mismatch for module.Prediction.attention_cell.rnn.weight_ih: copying a param with shape torch.Size([1024, 352]) from checkpoint, the shape in current model is torch.Size([1024, 294]).
>         size mismatch for module.Prediction.generator.weight: copying a param with shape torch.Size([96, 256]) from checkpoint, the shape in current model is torch.Size([38, 256]).
>         size mismatch for module.Prediction.generator.bias: copying a param with shape torch.Size([96]) from checkpoint, the shape in current model is torch.Size([38]).

Please tell if I'm mistakening
@lezwon
Copy link

lezwon commented Apr 12, 2021

Facing the same issue.

@elvinyhlee
Copy link

try this pretrained model instead TPS-ResNet-BiLSTM-Attn-case-sensitive.pth

@rafisoeharto
Copy link

try TPS-ResNet-BiLSTM-Attn-case-sensitive.pth , with --sensitive

@ezzaimsoufiane
Copy link

Facing the same issue, even with -- sensitive option

@MuntahaShams
Copy link

@ezzaimsoufiane have u solved ur issue?

@abdur75648
Copy link
Author

Saved model weights are wrong, please try train one yourself from scratch

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

6 participants