Instructions to use timm/deit_small_patch16_224.fb_in1k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use timm/deit_small_patch16_224.fb_in1k with timm:
import timm model = timm.create_model("hf_hub:timm/deit_small_patch16_224.fb_in1k", pretrained=True) - Transformers
How to use timm/deit_small_patch16_224.fb_in1k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="timm/deit_small_patch16_224.fb_in1k") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("timm/deit_small_patch16_224.fb_in1k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 133 Bytes
38e0e3a | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:52fa3d9d746c967a02a6765fa31368eb481d52cea269798a4a33c172f1c03242
size 88259053
|