Instructions to use bn22/my-timm-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use bn22/my-timm-model with timm:
import timm model = timm.create_model("hf_hub:bn22/my-timm-model", pretrained=True) - Transformers
How to use bn22/my-timm-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="bn22/my-timm-model") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bn22/my-timm-model", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Downloads last month
- 32