DeepLearning/YOLO

[YOLO] yolov7 windows install 및 detect test

woongs_93 2022. 12. 9. 13:21
반응형

1. github download

https://github.com/WongKinYiu/yolov7

 

GitHub - WongKinYiu/yolov7: Implementation of paper - YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time

Implementation of paper - YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors - GitHub - WongKinYiu/yolov7: Implementation of paper - YOLOv7: Trainable bag-of...

github.com

 

2. install requirements

python -r requirements.txt

- 폴더 내부에 있는 requirements.txt 를 설치.

 

 

3. detect test

- github 주소에 있는 yolov7.pt를 내려 받는다.

- 아래 test code 실행.

# [image]
python detect.py --weights yolov7.pt --conf 0.6 --source ./image.jpg

# [video]
python detect.py --weights yolov7.pt --conf 0.25 --img-size 640 --source yourvideo.mp4

 

- /runs/detect/ 경로에 결과 저장 됨.

 

반응형