๋งฅ๋ถ m1์ผ๋ก ๋๋ฆฌ๋ค๊ฐ(CPU) ๋์ ํ ์ ๋์๊ฐ์ colab ์ด์ฉํจ
๊ฑ ์ฒ์๋ถํฐ ์ฝ๋ฉ์ผ๋ก ๋๋ฆฌ๋ ๊ฑธ ์ถ์ฒํ๋ค,,,,!!
1. ๊ตฌ๊ธ ๋๋ผ์ด๋ธ -> Google Colaboratory ํ์ผ ์์ฑ
2. ๋ด ๋๋ผ์ด๋ธ mount
from google.colab import drive
drive.mount('/content/drive')
- ๋ ์ค ํธํ ๋ฐฉ๋ฒ์ผ๋ก ํ๋ฉด ๋จ
3. YOLOv5 ์ค์น
1) !git clone https://github.com/ultralytics/yolov5
2) %cd yolov5
!pip install -r requirements.txt

4. ๊ทธ ํ ๊ณผ์ ์ ๋๊ฐ๋ค. ํ์ผ๋ค ๋ฐ ์คํ ๊ฒฝ๋ก ์ค์ ๋ง ๋ด ๋๋ผ์ด๋ธ๋ก ๋ค์ ํด์ฃผ๋ฉด ๋จ
https://sssbin.tistory.com/163
**** ๋ฐํ์ -> ๋ฐํ์ ์ ํ ๋ณ๊ฒฝ ์์ ๊ผญ GPU๋ก ๋ณ๊ฒฝํด์ฃผ๊ธฐ!!!
5. ๊ฒ์ฆํ๊ธฐ
!python val.py --data "/content/drive/MyDrive/GP/coca/data.yaml" --img 1280 --weights "/content/yolov5/runs/train/coca2/weights/best.pt"
6. ์์ธกํ๊ธฐ
!python detect.py --img 1280 --weights "/content/yolov5/runs/train/coca2/weights/best.pt" --source "/content/drive/MyDrive/GP/coca/testCoca.jpg"
***
!zip -r /content/yolov5.zip /content/yolov5
-> ์งํ์ผ๋ก ๋ง๋ค์ด์ ๋ด PC์ ๋ค์ด ๊ฐ๋ฅ
'๐ > capstone1' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
YOLO ํ์ต ์ฃผ์ํ ์ !!! (7) | 2022.04.24 |
---|---|
์ฝ๋ฉ ์ฐ๊ฒฐ ์ ์ง (colab ๋ฐํ์ ์ ์ง) (0) | 2022.04.21 |
labelImg ์ด์ฉํด์ ๋ฐ์ดํฐ ๋ง๋ค๊ณ YOLOv5 ํ์ต์ํค๊ธฐ (0) | 2022.04.01 |
MacOS M1 - labelImg ์ค์น (0) | 2022.03.30 |
YOLOv5 ์ค์น (4) | 2022.03.24 |