-
Notifications
You must be signed in to change notification settings - Fork 37
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
Pretrained Models do not load with pip release #37
Comments
same problem! Do u find any solution? |
Yes, it works if you install directly from this repo |
Why do I use pip install git+https://github.com/RyanWangZf/MedCLIP.git to produce |
same problem! Do u find any solution? |
you may delete this key from the dict using 'del text_encoder_checkpoint["text_model.model.embeddings.position_ids"]'. This is because of the Mismatched transformers version. |
A fix would also be to not be strict with loading the models weights. |
The loading of model weights fails due to some transformer version mismatch. Relaxing the strictness when loading the weights fixes this issue. RyanWangZf#37
I installed the latest version of medclip via pip and am trying to load the pretrained models.
However, when loading ResNet or ViT I get the following error
It works if I install the module directly from git.
Reproduce:
The text was updated successfully, but these errors were encountered: