Views
No views yet
___ ______ __ __
/ | ____ __ _/_ __/___ _/ /_ / /__
/ /| | / __ \/ / / // / / __ `/ __ \/ / _ \
/ ___ |/ / / / /_/ // / / /_/ / /_/ / / __/
/_/ |_/_/ /_/\__, //_/ \__,_/_.___/_/\___/
/____/

2.6M(大约2633869张图片)。2.6M(大于10万的部分只抽样了42000, 没办法因为贫穷,卡有限。)4k4K| model | imgsz | epochs | metrics/precision |
|---|---|---|---|
| rt-detr-l | 960 | 10 | 0.97 |
| yolo11s | 960 | 10 | 0.97 |
| yolo11m | 960 | 10 | 0.964 |
| yolo12s | 960 | 10 | 0.978 |
pip install ultralytics pillow1## simple
2## 下载模型后直接使用ultralytics即可
3
4from ultralytics import YOLO,RTDETR
5
6# Load a model
7model = YOLO("/path/to/download_model") # pretrained YOLO11n model
8
9# Run batched inference on a list of images
10results = model(["/path/to/your_image"],imgsz = 960) # return a list of Results objects
11
12# Process results list
13for result in results:
14 boxes = result.boxes # Boxes object for bounding box outputs
15 masks = result.masks # Masks object for segmentation masks outputs
16 keypoints = result.keypoints # Keypoints object for pose outputs
17 probs = result.probs # Probs object for classification outputs
18 obb = result.obb # Oriented boxes object for OBB outputs
19 result.show() # display to screen
20 result.save(filename="result.jpg") # save to disk
21