Instructions to use timm/pvt_v2_b5.in1k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use timm/pvt_v2_b5.in1k with timm:
import timm model = timm.create_model("hf-hub:timm/pvt_v2_b5.in1k", pretrained=True) - Transformers
How to use timm/pvt_v2_b5.in1k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="timm/pvt_v2_b5.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/pvt_v2_b5.in1k") model = AutoModelForImageClassification.from_pretrained("timm/pvt_v2_b5.in1k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from timm/pvt_v2_b5.in1k: direct link, hf CLI and curl.
- Browser
- Download file 328 MB
-
https://huggingface.co/timm/pvt_v2_b5.in1k/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://timm/pvt_v2_b5.in1k/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/timm/pvt_v2_b5.in1k/resolve/main/pytorch_model.bin
328 MB
- Xet hash:
- 310d21a2f771ef5bd3416d5cfb1ce27d75bf3197d8fa6dab99fe20449b9519a3
- Size of remote file:
- 328 MB
- SHA256:
- a53f87b6cb94d66869a7c9025e09d8f79a1dbca58e6d05511ca022f2f7db79d3
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.