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