Instructions to use magicslabnu/OutEffHop_vit_small_patch16_224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use magicslabnu/OutEffHop_vit_small_patch16_224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="magicslabnu/OutEffHop_vit_small_patch16_224", trust_remote_code=True) 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("magicslabnu/OutEffHop_vit_small_patch16_224", trust_remote_code=True) model = AutoModelForImageClassification.from_pretrained("magicslabnu/OutEffHop_vit_small_patch16_224", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +5 -1
config.json
CHANGED
|
@@ -15,6 +15,7 @@
|
|
| 15 |
"interpolation": "bicubic",
|
| 16 |
"crop_pct": 0.9,
|
| 17 |
"crop_mode": "center",
|
|
|
|
| 18 |
"mean": [
|
| 19 |
0.5,
|
| 20 |
0.5,
|
|
@@ -30,5 +31,8 @@
|
|
| 30 |
"first_conv": "patch_embed.proj",
|
| 31 |
"classifier": "head"
|
| 32 |
},
|
| 33 |
-
"_name_or_path": "magicslabnu/OutEffHop_vit_small_patch16_224"
|
|
|
|
|
|
|
|
|
|
| 34 |
}
|
|
|
|
| 15 |
"interpolation": "bicubic",
|
| 16 |
"crop_pct": 0.9,
|
| 17 |
"crop_mode": "center",
|
| 18 |
+
|
| 19 |
"mean": [
|
| 20 |
0.5,
|
| 21 |
0.5,
|
|
|
|
| 31 |
"first_conv": "patch_embed.proj",
|
| 32 |
"classifier": "head"
|
| 33 |
},
|
| 34 |
+
"_name_or_path": "magicslabnu/OutEffHop_vit_small_patch16_224",
|
| 35 |
+
"auto_map":
|
| 36 |
+
{"AutoModel": "vision_transformer.VisionTransformer"
|
| 37 |
+
}
|
| 38 |
}
|