1、下载
1.1 权重文件下载
https://github.com/ultralytics/assets/releases
本人下载的yolov8n.pt
yolov8n-cls.pt:用于分类
yolov8n-pose.pt:用于姿势识别
yolov8n-seg.pt:用于对象分割
yolov8n-v8loader.pt:专用于人员检测器???
yolov8n.pt:用于对象检测
1.2 源码下载
git clone https://github.com/ultralytics/ultralytics.git
git clone https://github.com/wang-xinyu/tensorrtx.git
2、安装、测试yolov8
2.1 安装
pip install ultralytics
2.2 测试yolov8
1)测试图片
yolo predict model=yolov8n.pt source=test.jpg
2)测试USB摄像头
yolo predict model=yolov8n.pt source=0