Instructions to use leftthomas/resnet50 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leftthomas/resnet50 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="leftthomas/resnet50", trust_remote_code=True) 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("leftthomas/resnet50", trust_remote_code=True) model = AutoModelForImageClassification.from_pretrained("leftthomas/resnet50", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Commit ·
c937b58
1
Parent(s): 47d5ce2
Update config.json
Browse files- config.json +2 -1
config.json
CHANGED
|
@@ -16,5 +16,6 @@
|
|
| 16 |
"model_type": "resnet",
|
| 17 |
"num_classes": 1000,
|
| 18 |
"torch_dtype": "float32",
|
| 19 |
-
"transformers_version": "4.17.0"
|
|
|
|
| 20 |
}
|
|
|
|
| 16 |
"model_type": "resnet",
|
| 17 |
"num_classes": 1000,
|
| 18 |
"torch_dtype": "float32",
|
| 19 |
+
"transformers_version": "4.17.0",
|
| 20 |
+
"trust_remote_code": True
|
| 21 |
}
|