ReIQA icon indicating copy to clipboard operation
ReIQA copied to clipboard

Fix Dependency Name in requirements.txt

Open phillipecardenuto opened this issue 1 year ago • 3 comments

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 avatar Feb 12 '24 19:02 phillipecardenuto

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]).

phillipecardenuto avatar Feb 12 '24 20:02 phillipecardenuto

Try using --head mlp!

avinabsaha avatar Feb 12 '24 21:02 avinabsaha

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

phillipecardenuto avatar Feb 13 '24 15:02 phillipecardenuto