Object Detection
ultralytics
ONNX
tracking
instance-segmentation
image-classification
pose-estimation
obb
yolo
yolov8
Instructions to use webnn/yolov8m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use webnn/yolov8m with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("webnn/yolov8m", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +5 -6
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
"0": "person 人",
|
| 4 |
"1": "bicycle 自行车",
|
| 5 |
"2": "car 汽车",
|
|
@@ -80,10 +80,8 @@ id2label_translated = {
|
|
| 80 |
"77": "teddy bear 泰迪熊",
|
| 81 |
"78": "hair drier 吹风机",
|
| 82 |
"79": "toothbrush 牙刷"
|
| 83 |
-
}
|
| 84 |
-
|
| 85 |
-
# New label2id with English + Chinese translations
|
| 86 |
-
label2id_translated = {
|
| 87 |
"person 人": 0,
|
| 88 |
"bicycle 自行车": 1,
|
| 89 |
"car 汽车": 2,
|
|
@@ -164,4 +162,5 @@ label2id_translated = {
|
|
| 164 |
"teddy bear 泰迪熊": 77,
|
| 165 |
"hair drier 吹风机": 78,
|
| 166 |
"toothbrush 牙刷": 79
|
|
|
|
| 167 |
}
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id2label": {
|
| 3 |
"0": "person 人",
|
| 4 |
"1": "bicycle 自行车",
|
| 5 |
"2": "car 汽车",
|
|
|
|
| 80 |
"77": "teddy bear 泰迪熊",
|
| 81 |
"78": "hair drier 吹风机",
|
| 82 |
"79": "toothbrush 牙刷"
|
| 83 |
+
},
|
| 84 |
+
"label2id": {
|
|
|
|
|
|
|
| 85 |
"person 人": 0,
|
| 86 |
"bicycle 自行车": 1,
|
| 87 |
"car 汽车": 2,
|
|
|
|
| 162 |
"teddy bear 泰迪熊": 77,
|
| 163 |
"hair drier 吹风机": 78,
|
| 164 |
"toothbrush 牙刷": 79
|
| 165 |
+
}
|
| 166 |
}
|