How to use from the
Use from the
Transformers library
# 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)
Quick Links

Model card for gate_vit_small_patch16_224

Downloads last month
6
Safetensors
Model size
22.1M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support