Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

OpenGVLab
/
pvt_v2_b0

Image Classification
Transformers
Safetensors
pvt_v2
Model card Files Files and versions
xet
Community
1

Instructions to use OpenGVLab/pvt_v2_b0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use OpenGVLab/pvt_v2_b0 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="OpenGVLab/pvt_v2_b0")
    pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
    # Load model directly
    from transformers import AutoImageProcessor, AutoModelForImageClassification
    
    processor = AutoImageProcessor.from_pretrained("OpenGVLab/pvt_v2_b0")
    model = AutoModelForImageClassification.from_pretrained("OpenGVLab/pvt_v2_b0")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
pvt_v2_b0
14.7 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
czczup's picture
czczup
FoamoftheSea's picture
FoamoftheSea
Update "out_indices" and "out_features" fields in config for compatibility with new code (#1)
bafa29f verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    968 Bytes
    Upload folder using huggingface_hub about 2 years ago
  • config.json
    46.7 kB
    Update "out_indices" and "out_features" fields in config for compatibility with new code (#1) about 2 years ago
  • model.safetensors
    14.7 MB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • preprocessor_config.json
    337 Bytes
    Upload folder using huggingface_hub about 2 years ago