Image Classification
Transformers
Safetensors
PyTorch
food-recognition
dinov3
vision-transformer
tsotsa-img
Instructions to use anonymous-eval/food-recognition with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anonymous-eval/food-recognition with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="anonymous-eval/food-recognition") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("anonymous-eval/food-recognition", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download backbone/config.json from anonymous-eval/food-recognition: direct link, hf CLI and curl.
- Browser
- Download file 734 Bytes
-
https://huggingface.co/anonymous-eval/food-recognition/resolve/main/backbone/config.json
- Command line
-
hf download hf://anonymous-eval/food-recognition/backbone/config.json
-
curl -L -o config.json https://huggingface.co/anonymous-eval/food-recognition/resolve/main/backbone/config.json
734 Bytes
| { | |
| "architectures": [ | |
| "DINOv3ViTModel" | |
| ], | |
| "attention_dropout": 0.0, | |
| "drop_path_rate": 0.0, | |
| "dtype": "float32", | |
| "hidden_act": "gelu", | |
| "hidden_size": 1024, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "key_bias": false, | |
| "layer_norm_eps": 1e-05, | |
| "layerscale_value": 1.0, | |
| "mlp_bias": true, | |
| "model_type": "dinov3_vit", | |
| "num_attention_heads": 16, | |
| "num_channels": 3, | |
| "num_hidden_layers": 24, | |
| "num_register_tokens": 4, | |
| "patch_size": 16, | |
| "pos_embed_jitter": null, | |
| "pos_embed_rescale": 2.0, | |
| "pos_embed_shift": null, | |
| "proj_bias": true, | |
| "query_bias": true, | |
| "rope_theta": 100.0, | |
| "transformers_version": "4.57.1", | |
| "use_gated_mlp": false, | |
| "value_bias": true | |
| } | |