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

  • Log In
  • Sign Up

magicslabnu
/
gate_vit_small_patch16_224_hf

Image Classification
Transformers
Safetensors
vit
custom_code
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use magicslabnu/gate_vit_small_patch16_224_hf with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="magicslabnu/gate_vit_small_patch16_224_hf", trust_remote_code=True)
    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("magicslabnu/gate_vit_small_patch16_224_hf", trust_remote_code=True)
    model = AutoModelForImageClassification.from_pretrained("magicslabnu/gate_vit_small_patch16_224_hf", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
gate_vit_small_patch16_224_hf
88.4 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 11 commits
robinzixuan1997's picture
robinzixuan1997
push
9b24e11 almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    101 Bytes
    Update README.md about 2 years ago
  • config.json
    46.5 kB
    Update config.json almost 2 years ago
  • configuration_vit.py
    5.64 kB
    Upload 2 files almost 2 years ago
  • model.safetensors
    88.3 MB
    xet
    push almost 2 years ago
  • modeling_vit.py
    45.6 kB
    Upload modeling_vit.py almost 2 years ago
  • preprocessor_config.json
    578 Bytes
    push almost 2 years ago