-
Notifications
You must be signed in to change notification settings - Fork 33
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 load the state_dict for BinModel in demo example #8
Comments
glgaines
changed the title
Unable to lad the state_dict for BinModel in demo example
Unable to load the state_dict for BinModel in demo example
May 12, 2023
same problem |
try using python version 3.8.12 |
You should be careful in using the right model, vit_model_size and vit_patch_size |
same problem, anyone have the solution for that :( ? |
I have found the following solution:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Working directly with the example code in https://github.com/dali92002/DocEnTR/blob/main/demo.ipynb
Tried the pretrained model params from the model zoo. when model.load_state_dict - Ran into the following error:
RuntimeError: Error(s) in loading state_dict for BinModel:
Missing key(s) in state_dict: "encoder.to_patch_embedding.2.weight", "encoder.to_patch_embedding.2.bias", "encoder.to_patch_embedding.3.weight", "encoder.to_patch_embedding.3.bias".
The text was updated successfully, but these errors were encountered: