使用清华镜像源:
在yolov5-6.1-distillation路径下执行:
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
注意:simple 不能少, 是 https 而不是 http
yolov5的github 链接:https://github.com/ultralytics/yolov5
下载YOLOv5 v6.1版本的yolov5s.pt,yolov5m.pt,yolov5l.pt,yolov5x.pt权重文件,并放置在weights文件夹下
测试图片:
在yolov5-6.1-distillation路径下执行
python detect.py --source ./data/images/ --weights weights/yolov5s.pt
