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 ·
96e3c54
1
Parent(s): f9a8fa1
Upload config.json
Browse files- config.json +15 -0
config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"ResnetModel"
|
| 4 |
+
],
|
| 5 |
+
"block_type": "bottleneck",
|
| 6 |
+
"layers": [
|
| 7 |
+
3,
|
| 8 |
+
4,
|
| 9 |
+
6,
|
| 10 |
+
3
|
| 11 |
+
],
|
| 12 |
+
"num_classes": 1000,
|
| 13 |
+
"torch_dtype": "float32",
|
| 14 |
+
"transformers_version": "4.14.1"
|
| 15 |
+
}
|