2
1

More than 1 year has passed since last update.

YOLOv7やーる(Python3.9、Windows10)

Last updated at Posted at 2022-12-23

  • 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*
horses.jpg

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

bus.jpg

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)

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1