YOLOv3 ์ค์น ์๋ -> ์๊พธ ์ค๋ฅ ๋ ์ ์คํจ..
# ๊ฐ์ํ๊ฒฝ์ yolov5 ๋ค์ด
git clone https://github.com/ultralytics/yolov5.git
# update
conda update -yn base -c defaults conda
# install library
conda install -c anaconda cython numpy pillow scipy seaborn pandas
conda install -c conda-forge matplotlib pyyaml tensorboard tqdm opencv
PyTorch ์ค์น๋
https://pytorch.kr/get-started/locally/
๋ด ํ๊ฒฝ์ ๋ง๋ ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํด์ฃผ๋ฉด ๋๋ค.
๋ ๋งฅ๋ถ์ด๋๊น
# install pytorch
conda install pytorch torchvision torchaudio -c pytorch
ONNX๋? ONNX(Open Neural Network Exchange)๋ ๊ทธ ์ด๋ฆ์์ ์ดํด ๋ณผ ์ ์๋ฏ์ด, Tensorflow, PyTorch์ ๊ฐ์ ์๋ก ๋ค๋ฅธ DNN ํ๋ ์์ํฌ ํ๊ฒฝ์์ ๋ง๋ค์ด์ง ๋ชจ๋ธ๋ค์ ์๋ก ํธํ๋๊ฒ ์ฌ์ฉํ ์ ์๋๋ก ๋ง๋ค์ด์ง ๊ณต์ ํ๋ซํผ์ด๋ค.
# install onnx
conda install -c conda-forge onnx
์ด์ ์คํ์์ผ๋ณด์
python detect.py --source ./data/images/bus.jpg
runs/detect/exp2 ํด๋์ ๋ค์ด๊ฐ๋ฉด ๋ถ์ ๊ฒฐ๊ณผ๊ฐ ์ ์ฅ๋์ด ์๋ค!!
์ฐ๋ฆฌ ์ฌ์ง๋ ํด๋ดค๋ค
์ ๋๋น
'๐ > capstone1' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์ฝ๋ฉ ์ฐ๊ฒฐ ์ ์ง (colab ๋ฐํ์ ์ ์ง) (0) | 2022.04.21 |
---|---|
Google Colaboratory ์ด์ฉํ YOLOv5 ๋ฐ์ดํฐ ํ์ต (3) | 2022.04.07 |
labelImg ์ด์ฉํด์ ๋ฐ์ดํฐ ๋ง๋ค๊ณ YOLOv5 ํ์ต์ํค๊ธฐ (0) | 2022.04.01 |
MacOS M1 - labelImg ์ค์น (0) | 2022.03.30 |
ํ์ด์ฌ - opencv ์ด์ฉํด์ ๋ ธํธ๋ถ ๋ด์ฅ์บ ์ผ๋ก ์ฌ์ง ์ฐ๊ธฐ (0) | 2022.03.21 |