Instructions to use facebook/detr-resnet-50 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/detr-resnet-50 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="facebook/detr-resnet-50")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("facebook/detr-resnet-50") model = AutoModelForObjectDetection.from_pretrained("facebook/detr-resnet-50", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -3
config.json
CHANGED
|
@@ -117,8 +117,7 @@
|
|
| 117 |
"88": "teddy bear",
|
| 118 |
"89": "hair drier",
|
| 119 |
"9": "boat",
|
| 120 |
-
"90": "toothbrush"
|
| 121 |
-
"91": "hair brush"
|
| 122 |
},
|
| 123 |
"init_std": 0.02,
|
| 124 |
"init_xavier_std": 1.0,
|
|
@@ -164,7 +163,6 @@
|
|
| 164 |
"fork": 48,
|
| 165 |
"frisbee": 34,
|
| 166 |
"giraffe": 25,
|
| 167 |
-
"hair brush": 91,
|
| 168 |
"hair drier": 89,
|
| 169 |
"handbag": 31,
|
| 170 |
"hat": 26,
|
|
|
|
| 117 |
"88": "teddy bear",
|
| 118 |
"89": "hair drier",
|
| 119 |
"9": "boat",
|
| 120 |
+
"90": "toothbrush"
|
|
|
|
| 121 |
},
|
| 122 |
"init_std": 0.02,
|
| 123 |
"init_xavier_std": 1.0,
|
|
|
|
| 163 |
"fork": 48,
|
| 164 |
"frisbee": 34,
|
| 165 |
"giraffe": 25,
|
|
|
|
| 166 |
"hair drier": 89,
|
| 167 |
"handbag": 31,
|
| 168 |
"hat": 26,
|