feat(model): 切换到YOLOv8x模型并更新依赖- 将模型从yolov8n切换为yolov8x

- 更新ultralytics依赖版本至8.3.198
- 添加opencv-python、numpy和pyautogui依赖- 修改模型推理路径指向验证集目录- 更新检测脚本使用的训练模型权重路径
- 删除无用的标签文件和类别定义文件
This commit is contained in:
mshe 2025-09-25 22:48:44 +08:00
parent 7ab94a409a
commit fd01cc9c7f
15 changed files with 11 additions and 10 deletions

View File

@ -1,6 +1,8 @@
from ultralytics import YOLO
yolo = YOLO('models/yolov8n.pt')
# yolo('./resources/01.png',show=True,save=True)
# yolo('./resources/FHC09594.jpg',show=True,save=True)
yolo('./resources/02.jpg',show=True,save=True)
# model = YOLO('models/yolov8n.pt')
model = YOLO('models/yolov8x.pt')
# model('./resources/01.png',show=True,save=True)
# model('./resources/FHC09594.jpg',show=True,save=True)
# model('./resources/02.jpg',show=True,save=True)
model('./dataset/val',save=True)

View File

@ -8,7 +8,7 @@ import numpy as np
# 加载训练好的模型
# best.pt: 最佳模型,适用于生产
# last.pt: 最后一轮训练的模型,适用于继续训练
yolo = YOLO('runs/detect/train2/weights/best.pt')
yolo = YOLO('runs/detect/train6/weights/best.pt')
# 指定屏幕范围
# x,y,width,height 全屏None

View File

@ -1 +0,0 @@
logo

Binary file not shown.

Before

Width:  |  Height:  |  Size: 390 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 454 KiB

Binary file not shown.

View File

@ -1 +0,0 @@
0 0.267786 0.495737 0.158273 0.103739

View File

@ -1,2 +0,0 @@
0 0.268585 0.198019 0.163070 0.034106
0 0.499600 0.501421 0.001599 0.001421

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 390 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 454 KiB

View File

@ -1 +1,4 @@
ultralytics
ultralytics~=8.3.198
opencv-python~=4.12.0.88
numpy~=2.0.2
pyautogui