代码记录:
git clone https://github.com/ultralytics/yolov5.git
cd yolov5
pip install -r requirements.txt
python detect.py --source data/images/zidane.jpg --weights yolov5s.pt --img 640
由此会自动下载yolo的官方预训练权重并完成检测,效果图如下:
代码记录:
git clone https://github.com/ultralytics/yolov5.git
cd yolov5
pip install -r requirements.txt
python detect.py --source data/images/zidane.jpg --weights yolov5s.pt --img 640
由此会自动下载yolo的官方预训练权重并完成检测,效果图如下: