Instructions to use timm/densenet121.tv_in1k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use timm/densenet121.tv_in1k with timm:
import timm model = timm.create_model("hf-hub:timm/densenet121.tv_in1k", pretrained=True) - Transformers
How to use timm/densenet121.tv_in1k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="timm/densenet121.tv_in1k") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("timm/densenet121.tv_in1k") model = AutoModelForImageClassification.from_pretrained("timm/densenet121.tv_in1k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from timm/densenet121.tv_in1k: direct link, hf CLI and curl.
- Browser
- Download file 32.5 MB
-
https://huggingface.co/timm/densenet121.tv_in1k/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://timm/densenet121.tv_in1k/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/timm/densenet121.tv_in1k/resolve/main/pytorch_model.bin
32.5 MB
- Xet hash:
- ce927433be4a5f6a48a7396921587ce8f114d016d8428e849ea304d88e110535
- Size of remote file:
- 32.5 MB
- SHA256:
- 42bd2c384fae0b346f977fe9feed1bcfdbd6ea4727478c6c76177d725b218e89
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.