Loading timm pre-trained model weight from huggingface models hub #1749
-
/I wanted to load pretrained model with timm but the models is not available via timm create_model. However the pretrained model seems available on huggingface model hub ("timm/vit_base_patch16_384.augreg_in21k_ft_in1k" for example). In the model description on the huggingface it is instructed to load model for timm with create_model and and add "hf_hub:" prefix before model name, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@HoseinAkbarzadeh you should use a newer timm version (0.8+) for fully HF hub support, it was only partially working in 0.6.
|
Beta Was this translation helpful? Give feedback.
@HoseinAkbarzadeh you should use a newer timm version (0.8+) for fully HF hub support, it was only partially working in 0.6.
pip install --pre timm