Views
No views yet
1from ultralytics import YOLO
2
3# Load the model
4model = YOLO('path/to/best.pt')
5
6# Run inference
7results = model('path/to/image.jpg')
8
9# Process results
10for result in results:
11 boxes = result.boxes.xyxy # bounding boxes
12 scores = result.boxes.conf # confidence scores
13 classes = result.boxes.cls # class predictions1@article{yolov10,
2 title={YOLOv10: Real-Time End-to-End Object Detection},
3 author={Wang, Ao and Chen, Hui and Liu, Lihao and Chen, Kai and Lin, Zijia and Han, Jungong and Ding, Guiguang},
4 journal={arXiv preprint arXiv:2405.14458},
5 year={2024}
6}