-
How can i download the pretrained model weights file .pth for Fast Vit model similar to Deit that looks like (https://dl.fbaipublicfiles.com/deit/deit_tiny_patch16_224-a1311bcf.pth)? Because when I go in the fastvit.py file the url link is missing in _cfg dictionary |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
many new weights are only on the Hugging Face hub with a hf_hub entry that defaults to |
Beta Was this translation helpful? Give feedback.
-
I tried to call the model in such a fashion but I am getting an unpickling error while loading the model from checkpoint. Below is the code and the error. Can you help me? Code:
Error:UnpicklingError Traceback (most recent call last) File /home/tbaweja/anaconda3/envs/project/lib/python3.8/site-packages/torch/hub.py:770, in load_state_dict_from_url(url, model_dir, map_location, progress, check_hash, file_name, weights_only) File /home/tbaweja/anaconda3/envs/project/lib/python3.8/site-packages/torch/serialization.py:1028, in load(f, map_location, pickle_module, weights_only, mmap, **pickle_load_args) File /home/tbaweja/anaconda3/envs/project/lib/python3.8/site-packages/torch/serialization.py:1246, in _legacy_load(f, map_location, pickle_module, **pickle_load_args) UnpicklingError: invalid load key, '<'.` |
Beta Was this translation helpful? Give feedback.
many new weights are only on the Hugging Face hub with a hf_hub entry that defaults to
timm/model_name
path, ex https://huggingface.co/timm/fastvit_t12.apple_in1k