Image Classification
Transformers
TensorBoard
ONNX
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Instructions to use spolivin/food-vit-tutorial with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use spolivin/food-vit-tutorial with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="spolivin/food-vit-tutorial", device_map="auto") 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("spolivin/food-vit-tutorial") model = AutoModelForImageClassification.from_pretrained("spolivin/food-vit-tutorial", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload preprocessor_config.json with huggingface_hub
Browse files- preprocessor_config.json +1 -1
preprocessor_config.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
0.5,
|
| 8 |
0.5
|
| 9 |
],
|
| 10 |
-
"image_processor_type": "
|
| 11 |
"image_std": [
|
| 12 |
0.5,
|
| 13 |
0.5,
|
|
|
|
| 7 |
0.5,
|
| 8 |
0.5
|
| 9 |
],
|
| 10 |
+
"image_processor_type": "ViTFeatureExtractor",
|
| 11 |
"image_std": [
|
| 12 |
0.5,
|
| 13 |
0.5,
|