Instructions to use fxmarty/resnet-tiny-beans with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fxmarty/resnet-tiny-beans with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="fxmarty/resnet-tiny-beans") 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("fxmarty/resnet-tiny-beans") model = AutoModelForImageClassification.from_pretrained("fxmarty/resnet-tiny-beans", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from fxmarty/resnet-tiny-beans: direct link, hf CLI and curl.
- Browser
- Download file 662 Bytes
-
https://huggingface.co/fxmarty/resnet-tiny-beans/resolve/main/config.json
- Command line
-
hf download hf://fxmarty/resnet-tiny-beans/config.json
-
curl -L -o config.json https://huggingface.co/fxmarty/resnet-tiny-beans/resolve/main/config.json
662 Bytes
| { | |
| "architectures": [ | |
| "ResNetForImageClassification" | |
| ], | |
| "depths": [ | |
| 2, | |
| 2 | |
| ], | |
| "downsample_in_first_stage": false, | |
| "embedding_size": 64, | |
| "finetuning_task": "image-classification", | |
| "hidden_act": "relu", | |
| "hidden_sizes": [ | |
| 32, | |
| 64 | |
| ], | |
| "id2label": { | |
| "0": "angular_leaf_spot", | |
| "1": "bean_rust", | |
| "2": "healthy" | |
| }, | |
| "image_size": 224, | |
| "label2id": { | |
| "angular_leaf_spot": "0", | |
| "bean_rust": "1", | |
| "healthy": "2" | |
| }, | |
| "layer_type": "basic", | |
| "model_type": "resnet", | |
| "num_channels": 3, | |
| "problem_type": "single_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.21.0.dev0" | |
| } | |