For some reason, I have to use TIMM package offline. But I found that if I use create_model(), for example:
self.img_encoder = timm.create_model("swin_base_patch4_window7_224", pretrained=True)
I would get
http.client.RemoteDisconnected: Remote end closed connection without response
I found the function wanted to fetch the pre-trained model by the URL below, but it failed. https://github.com/SwinTransformer/storage/releases/download/v1.0.0/swin_base_patch4_window7_224_22kto1k.pth
Can I just download the pre-trained model and load it in my code like in Huggingface? (I have checked the timmdocs but found nothing mentioning this.)