728x90 ๋ฐ์ํ ๋ฅ๋ฌ๋๐ค/YOLO, Opencv ๐ข8 [YOLO]#3 YOLO๋ฅผ ํ์ฉํ ๊ฐ์ฒด ํ์ง (Customํ๊ธฐ)&๊ตฌ๊ธ์ฝ๋ฉ ์ด์ ์๊ฐ์ ์ปค์คํ ๋ฐ์ดํฐ๋ค์ ํ์ต์์ผ๋ณด๋๊ฑฐ ๊น์ง ํด๋ณด์์ต๋๋ค. !./darknet detector train custom/custom_data.data custom/custom-train-yolo.cfg weights/darknet53.conv.74 -dont_show ์ ๋ช ๋ น์ด ์คํ์ ๋๋ต 6์๊ฐ ์ ๋ ๊ฑธ๋ฆฐ๋ค๊ณ ํ๋๋ฐ์,, ์ด ๊ณผ์ ์ด ๋๋๋ฉด ์๋์ผ๋ก ๊ตฌ๊ธ ์ฝ๋ฉ์ backup ํด๋์์ weights ํ์ผ์ด ํ๋ฐ์ฑ์ผ๋ก ์ ์ฅ๋๋ค๊ณ ํฉ๋๋ค. (ํ๋ฐ์ฑ! ์ด๊ธฐ ๋๋ฌธ์ ๋ฐ๋์ 6์๊ฐ์ด๋ ํ์ต ์์ผ์ ๋์จ ๊ฒฐ๊ณผ๋ฌผ์ธ weights ํ์ผ์ ๊ตฌ๊ธ ๋๋ผ์ด๋ธ ๋ ๋ก์ปฌ์ ๋ฐ๋ก ๋ณต์ฌ๋ฅผ ํด๋์ด์ผ ๋๋ค๋์ !! ๋ฐ์์ ๋ค์ ๋ช ๋ น์ด์ ํจ๊ป ์ค๋ช ํ๊ฒ ์ต๋๋ค) ์ ๋ ๊ทธ๋ฅ ๊ตฌ๊ธ๋ง ํด์ ์ปค์คํ ํ weight ํ์ผ์ ์ฌ์ฉํ๊ณ ์ ํฉ๋๋ค. ๋ง์ฝ .. 2022. 11. 7. [YOLO]#2 YOLO๋ฅผ ํ์ฉํ ๊ฐ์ฒด ํ์ง (Customํ๊ธฐ)&๊ตฌ๊ธ์ฝ๋ฉ 1. ๊ตฌ๊ธ ๋๋ผ์ด๋ธ ๋ง์ดํธ ํ๋ก์ ํธ ์ฒ์ ์์์ ๋ง์ดํธ! ๊ตฌ๊ธ ์ฝ๋ฉ์์ ์ง๋ ์๊ฐ ์ฌ์ฉํ๋ content/gdrive ํด๋๋ฅผ ์ธ์์์ผ์ฃผ๋ ์์ ์ ํด์ค๋ค. from google.colab import drive drive.mount('/content/gdrive') !ls -la "/content/gdrive/My Drive/darknet" ls ๋ ๊ฒฝ๋ก์ ๋๋ ํฐ๋ฆฌor ํ์ผ์ ๋ฆฌ์คํธ ์ถ๋ ฅ a ์ต์ : all์ ์ค์๋ง๋ก ๋ชจ๋ ํ์ผํ์์ ์ถ๋ ฅํฉ๋๋ค. l ์ต์ : long ์ ์ค์๋ง๋ก, ํ์ผ ์ถ๋ ฅ ํ์์ ๊ธด ๋ชฉ๋ก ํ์์ผ๋ก ์ถ๋ ฅํ๋ค. 2.cuDNN ๋ค์์ผ๋ก ์ฐ๋ฆฌ๊ฐ ํด์ค๊ฑด cuda ๊ด๋ จ ๋ชจ๋์ธ cuDNN ์ ๊ตฌ๊ธ๋๋ผ์ด๋ธ์์ colab์ usr/local/cuda ํด๋๋ก cuDNN์ ์์ถ์ ํธ๋ ๊ฒ์ ๋๋ค. !tar -x.. 2022. 11. 7. [YOLO]#1 YOLO๋ฅผ ํ์ฉํ ๊ฐ์ฒด ํ์ง (darknet install)&๊ตฌ๊ธ์ฝ๋ฉ 1. YOLO๋ฅผ Colabํ๊ฒฝ์์ ์ฌ์ฉํ๋ ์ด์ Colab ํ๊ฒฝ ์ฅ์ ์ฑ๋ฅ ์ข์ GPU๋ฅผ ๋ฌด๋ฃ๋ก ์ฌ์ฉ ๊ฐ๋ฅํ ์ ๊ณผ ํ๊ฒฝ ๊ตฌ์ถ์ด ๊ฐํธํ ์ ์ด๋ค. (=๋ช์ผ ๊ฑธ๋ฆฌ๋ ํ๊ฒฝ์ ๋จ ๋ช ์๊ฐ๋ง์ ๊ตฌ์ถํ ์ ์๋ค) ๋จ์ 1) ํ์ต ๋ฐ์ดํฐ๋ฅผ ๊ตฌ๊ธ ๋๋ผ์ด๋ธ์ ๋ฃ์ด์ผ ํ๋๋ฐ ์ฉ๋์ด ๋ถ์กฑํ๊ณ ๋๊ธฐํ ๋ฐ์์ด ๋๋ฆฌ๋ค. 2) ๋ฌด๋ฃ๋ก 12์๊ฐ๋ง ์ฌ์ฉ ๊ฐ๋ฅํ๊ธฐ ๋๋ฌธ์ ์ค๋ ์๊ฐ ํ์ต์ด ํ์ํ ๋ชจ๋ธ์ ํ๋ จํ๋๋ฐ ์ ์ฝ์ด ์๋ค. GPU ์ค์ 1. ๊ตฌ๊ธ ์ฝ๋ฉ(https://colab.research.google.com/) ์ ์ํ์ฌ '๋ฐํ์'>๋ฐํ์ ์ ํ ๋ณ๊ฒฝ > ํ๋์จ์ด ๊ฐ์๊ธฐ๋ฅผ "GPU" ๋ก ์ค์ ํ์ฌ ์ ์ฅ ๋ฒํผ์ ํด๋ฆญํด์ค๋๋ค. Colab์ Darknet ์ค์น 1. ๊ตฌ๊ธ ๋๋ผ์ด๋ธ ์ ๊ทผ from google.colab import drive .. 2022. 11. 6. ๋ฌด๋ฃ๋ก Yolo , Opencv ์ ๋ํด ๊ณต๋ถํ ์ ์๋ ์ฌ์ดํธ ๊นํ์์ yolo๋ฅผ ์ด์ฉํ ํ๋ก์ ํธ์๋ํด ์ฐพ์๋ณด๋ค๊ฐ https://github.com/pythonlessons/TensorFlow-2.x-YOLOv3 ์ ์ฌ์ดํธ๊ณผ ใฑใ ์ ๋ณด์ฌ์ READ.me ํ์ผ์ ์ฝ์ด๋ณด์๋ค. ๊ทธ๋ฐ๋ฐ ๋ง์ง๋ง ๋ด์ฉ์ค ์ฐธ๊ณ ํ? ์ฌ์ดํธ๋ค์ด ์์ด ๋ค์ด๊ฐ๋ณด๋ ๋ฌด๋ฃ๋ก ์๋ ค์ฃผ๋ ์ฌ์ดํธ๊ฐ ์์๋ค. https://pylessons.com/ Django Tutorial In these tutorials, I’m going to explain to you an easy way to train YOLOv3 and YOLOv4 on TensorFlow 2. Will give you examples with Google Colab, Rpi3, TensorRT and more... pylessons.com 2022. 4. 1. ์ด์ 1 2 ๋ค์ 728x90 ๋ฐ์ํ