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

  • Log In
  • Sign Up

OpenGVLab
/
pvt_v2_b2_linear

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

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

  • Libraries
  • Transformers

    How to use OpenGVLab/pvt_v2_b2_linear with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="OpenGVLab/pvt_v2_b2_linear")
    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_b2_linear")
    model = AutoModelForImageClassification.from_pretrained("OpenGVLab/pvt_v2_b2_linear")
  • Notebooks
  • Google Colab
  • Kaggle
pvt_v2_b2_linear
90.3 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
czczup's picture
czczup
FoamoftheSea's picture
FoamoftheSea
Fixed "out_indices" and "out_features" fields in config (#1)
4d0cf53 verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    968 Bytes
    Update README.md about 2 years ago
  • config.json
    46.7 kB
    Fixed "out_indices" and "out_features" fields in config (#1) about 2 years ago
  • model.safetensors
    90.3 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