Instructions to use KrisLwin/convnext-tiny-finetuned-insectbites with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KrisLwin/convnext-tiny-finetuned-insectbites with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="KrisLwin/convnext-tiny-finetuned-insectbites") 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("KrisLwin/convnext-tiny-finetuned-insectbites") model = AutoModelForImageClassification.from_pretrained("KrisLwin/convnext-tiny-finetuned-insectbites", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from KrisLwin/convnext-tiny-finetuned-insectbites: direct link, hf CLI and curl.
- Browser
- Download file 923 Bytes
-
https://huggingface.co/KrisLwin/convnext-tiny-finetuned-insectbites/resolve/main/config.json
- Command line
-
hf download hf://KrisLwin/convnext-tiny-finetuned-insectbites/config.json
-
curl -L -o config.json https://huggingface.co/KrisLwin/convnext-tiny-finetuned-insectbites/resolve/main/config.json
923 Bytes
| { | |
| "_name_or_path": "facebook/convnext-tiny-224", | |
| "architectures": [ | |
| "ConvNextForImageClassification" | |
| ], | |
| "depths": [ | |
| 3, | |
| 3, | |
| 9, | |
| 3 | |
| ], | |
| "drop_path_rate": 0.0, | |
| "hidden_act": "gelu", | |
| "hidden_sizes": [ | |
| 96, | |
| 192, | |
| 384, | |
| 768 | |
| ], | |
| "id2label": { | |
| "0": "Mosquito", | |
| "1": "Tick bite", | |
| "2": "bed bugs", | |
| "3": "bee sting", | |
| "4": "fire ant sting", | |
| "5": "flea bites", | |
| "6": "head lice" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "Mosquito": 0, | |
| "Tick bite": 1, | |
| "bed bugs": 2, | |
| "bee sting": 3, | |
| "fire ant sting": 4, | |
| "flea bites": 5, | |
| "head lice": 6 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "layer_scale_init_value": 1e-06, | |
| "model_type": "convnext", | |
| "num_channels": 3, | |
| "num_stages": 4, | |
| "patch_size": 4, | |
| "problem_type": "single_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.25.1" | |
| } | |