I encountered this issue when I was loading the pretrained weights from timm. The weights were downloaded from huggingface.co. Specifically,self.image_model = timm.create_model("vit_base_patch32_224", pretrained=True,pretrained_cfg_overlay=dict( file='vit-base-patch32-224/pytorch_model.bin'))
How can fix it? I will appreciate it if you can solve this problem.
I encountered this issue when I was loading the pretrained weights from timm. The weights were downloaded from huggingface.co. Specifically,
self.image_model = timm.create_model("vit_base_patch32_224", pretrained=True,pretrained_cfg_overlay=dict( file='vit-base-patch32-224/pytorch_model.bin'))
How can fix it? I will appreciate it if you can solve this problem.