说明:本人已经在win上部署过yolov7,yolov5,yolov6 所用的都是一个环境,所以我不想直接pip install ultralytics 安装,因为torch环境已经有了,所以就不费事了
pip install ultralytics
1 直接下载yolov8 源码
yolov8 这里直接给连接
2 安装ultralytics
cd ultralytics
python3 setup.py install
![](https://img-blog.csdnimg.cn/img_convert/94367f47888b45256d5629e5d9520dd4.png)
3 使用 (检测)
from ultralytics import YOLO
model = YOLO('yolov8s.pt')
# results = model.val()
model(source='vedio/street.mp4',line_thickness=3,show=True,device='0')#,show=True,device='cpu')
对比结果:
安装其他:
pip3 install hydra-core --upgrade
报错:
TypeError: meshgrid() got an unexpected keyword argument ‘indexing‘
https://blog.csdn.net/canpian7/article/details/123608063