- Windows10 PC
- Python3.9
yolov7.ptをダウンロード
python detect.py --weights yolov7.pt --conf 0.25 --img-size 640 --source yourvideo.mp4
python detect.py --weights yolov7.pt --conf 0.25 --img-size 640 --source inference/images/horses.jpg
cpuだと行けた
waitKey(0)
python detect.py --weights yolov7.pt --conf 0.25 --img-size 640 --source inference/images/horses.jpg --view-img --device cpu
結果はここに入る
yolov7-main\runs\detect\exp*
5 horses, Done. (2732.1ms) Inference, (5.0ms) NMS
The image with the result is saved in: runs\detect\exp12\horses.jpg
Done. (3.160s)
python detect.py --weights yolov7.pt --conf 0.25 --img-size 640 --source inference/images/bus.jpg --view-img --device cpu --classes 0
4 persons, Done. (3284.5ms) Inference, (12.0ms) NMS
The image with the result is saved in: runs\detect\exp15\bus.jpg
Done. (4.004s)