Instructions to use ConradHw/pole_detect with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ConradHw/pole_detect with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="ConradHw/pole_detect")# Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("ConradHw/pole_detect") model = AutoModelForObjectDetection.from_pretrained("ConradHw/pole_detect") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +2 -4
config.json
CHANGED
|
@@ -4,16 +4,14 @@
|
|
| 4 |
"YolosForObjectDetection"
|
| 5 |
],
|
| 6 |
"id2label": {
|
| 7 |
-
"0": "pole"
|
| 8 |
-
"1": "person"
|
| 9 |
},
|
| 10 |
"image_size": [
|
| 11 |
512,
|
| 12 |
864
|
| 13 |
],
|
| 14 |
"label2id": {
|
| 15 |
-
"pole": 0
|
| 16 |
-
"person": 1
|
| 17 |
},
|
| 18 |
"model_type": "yolos",
|
| 19 |
"num_attention_heads": 6,
|
|
|
|
| 4 |
"YolosForObjectDetection"
|
| 5 |
],
|
| 6 |
"id2label": {
|
| 7 |
+
"0": "pole"
|
|
|
|
| 8 |
},
|
| 9 |
"image_size": [
|
| 10 |
512,
|
| 11 |
864
|
| 12 |
],
|
| 13 |
"label2id": {
|
| 14 |
+
"pole": 0
|
|
|
|
| 15 |
},
|
| 16 |
"model_type": "yolos",
|
| 17 |
"num_attention_heads": 6,
|