Instructions to use SoulPerforms/Butterfly_image_classification_resnet18 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SoulPerforms/Butterfly_image_classification_resnet18 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="SoulPerforms/Butterfly_image_classification_resnet18") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SoulPerforms/Butterfly_image_classification_resnet18", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -11,5 +11,5 @@
|
|
| 11 |
"pretrained": true,
|
| 12 |
"dropout": 0.5,
|
| 13 |
"seed": 42,
|
| 14 |
-
"device": "
|
| 15 |
}
|
|
|
|
| 11 |
"pretrained": true,
|
| 12 |
"dropout": 0.5,
|
| 13 |
"seed": 42,
|
| 14 |
+
"device": "cpu" // or "cuda"
|
| 15 |
}
|