1.运行预测
(1)运行目标检测模型:
yolo predict model=yolov8n.pt source='bus.jpg'
(2)运行目标检测与分割模型
yolo predict model=yolov8n-seg.pt source='bus.jpg'
2.模型训练
复制coco128.yaml更名为myDetect.yaml
yolo detect train data=./ultralytics/cfg/datasets/coco128.yaml model = yolov8n.yaml imgsz = 416
训练过程:
训练输出: