Autonomous Tech./Installation
[Ubuntu] Yolov3 Python으로 실행시키기 (엄청 쉬움)
Engineeus
2021. 7. 29. 19:23
728x90
- working directory 생성
working directory 생성
cd 'working directory'
- 깃클론
git clone https://github.com/zhaoyanglijoey/yolov3.git
- 웨이트 파일 받기
wget https://pjreddie.com/media/files/yolov3.weights
- opencv 설치
아래 세팅이 모두 되어 있어야 함
https://mickael-k.tistory.com/211
[Ubuntu] Graphic card 460 / CUDA 11.01 / CuDNN 8.1 / OpenCV 4 최신으로 설치 하기! (초간단)
설치 환경 Ubuntu: 20.04 Graphic card : 460.91.03 CUDA: 11.01 cvDNN: 8.1.0 OpenCV: 4.4.0 python: 3.8.10 Graphic Driver 설치 가능 드라이버 확인 ubuntu@ubuntu-HP:~$ ubuntu-drivers devices 위 드라이..
mickael-k.tistory.com
- torch 설치
pip install torch
- 영상 위치 지정 하여 실행
- GPU (쿠다 깔려 있을 경우)
영상) python3 detector.py -i ../../00_video/output_video_6.avi -v --cuda
웹캠) python3 detector.py -v -w -i 0 --cuda
-CPU
영상) python3 detector.py -i ../../00_video/output_video_6.avi -v
웹캠) python3 detector.py -v -w -i 0
<참고>