Views
No views yet

1### Inference based on Ultralytics
2### Install dependencies: pip install modelscope ultralytics
3
4from pathlib import Path
5from ultralytics import YOLO
6
7modelfile = Path('/path/to/human-det-yolo26n.onnx')
8model = YOLO(modelfile)
9imgpath = '/path/to/you/image'
10res = model.predict(imgpath)
11for line in res:
12 print(line.boxes)| Model | Class | Validation Images | P |
|---|---|---|---|
| yolov26n | human | 5,677 | 0.93 |