Closed lkshrsch closed 2 years ago
Hi,
Are you trying to load the checkpoint from the file "main_vicreg.py" of this repository, or from somewhere else ? If it is from somewhere else you need to define the "exclude_bias_and_norm" as follows:
def exclude_bias_and_norm(p):
return p.ndim == 1
Please tell me if that works.
Thank you for the help, that did work! You can close this issue now ;)
I was just downloading the checkpoint, but using my own code, to load the model, not the repository.
Thanks!
I downloaded the available checkpoint for ResNet-50 through the provided link: https://dl.fbaipublicfiles.com/vicreg/resnet50_fullckpt.pth
But upon loading the checkpoint, following error appears:
Same error happens with the other checkpoints. Is there something I am doing wrong? Appreciate the help!
Using pytorch version 1.7.1 and torchvision 0.8.2