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

Fix Dependency Name in requirements.txt #10

Open
phillipecardenuto opened this issue Feb 12, 2024 · 3 comments
Open

Fix Dependency Name in requirements.txt #10

phillipecardenuto opened this issue Feb 12, 2024 · 3 comments

Comments

@phillipecardenuto
Copy link

Thanks for sharing your very interesting work!

I have encountered an installation issue from requirements.txt:

ERROR: No matching distribution found for sklearn==1.1.3

Changing sklearn==1.1.3 to scikit-learn==1.1.3, solved it.
So, I am suggesting updating requirements.txt to prevent this error for future installations.

Thanks again for the great work!
Kind Regards,
Joao

@phillipecardenuto
Copy link
Author

phillipecardenuto commented Feb 12, 2024

In addition to the listed dependencies, I found it necessary to include both tensorflow and timm in my setup, opting for the latest tensorflow version and timm==0.6.12

However, even with that, I couldn't load the model properly.

RuntimeError: Error(s) in loading state_dict for DataParallel:
Unexpected key(s) in state_dict: "module.head.2.weight", "module.head.2.bias".
size mismatch for module.head.0.weight: copying a param with shape torch.Size([2048, 2048]) from checkpoint, the shape in current model is torch.Size([128, 2048]).
size mismatch for module.head.0.bias: copying a param with shape torch.Size([2048]) from checkpoint, the shape in current model is torch.Size([128]).

@avinabsaha
Copy link
Owner

avinabsaha commented Feb 12, 2024

Try using --head mlp!

@phillipecardenuto
Copy link
Author

Thanks, I missed that.
It's working now!

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

2 participants