https://github.com/ultralytics/yolov5
GitHub - ultralytics/yolov5: YOLOv5 ๐ in PyTorch > ONNX > CoreML > TFLite
YOLOv5 ๐ in PyTorch > ONNX > CoreML > TFLite. Contribute to ultralytics/yolov5 development by creating an account on GitHub.
github.com
GitHub YOLOv5
conda env list
ํน์๋ ์ด์ ์ ์์ฑ๋ ๊ฒ ์๋ ๋ด์คฌ๊ตฌ
๋ณ๋ค๋ฅธ ์ ๊ฒฝ์ธ ๊ฒ ์์ด์
conda create --name yolov5_test python=3.9.5
(python์ ๋ฒ์ ๋ช !)
yolov5_test ์ด๋ฆ์ผ๋ก ์์ฑํด์คฌ๋ค
ํ๊ฒฝ ํ์ฑํํ๊ธฐ
์ผ๋ฐ cmd์ฐฝ์์๋ activate yolov5_test ๋ง ์จ์ฃผ๋ฉด ๋๋๋ฐ,
ํ์์ ์์๋ conda activate yolov5_test ๋ผ๊ณ ์จ์ฃผ์ด์ผ ํ๋ค
ํ์์ ์์ ์์ธ์ง ์๋๋ ๊ฒ ๊ฐ์
cmd์์ ํด์ฃผ์๋ค
PyTorch ํํ์ด์ง์์ ์ปค์คํ ํด ๋ค์ด๋ฐ์ ์ ์๋๋ฐ
์ผ๋จ ๋ด ๋ ธํธ๋ถ์ GPU๊ฐ ์์ด์ .......... CPU๋ก... ์ด๋ํด
์ผ๋ฅธ ๋งฅ๋ถ์๋........
์ด๊ฐ ์์ผ๋ฉด ์๋ชธ์ผ๋ก
GPU๊ฐ ์์ผ๋ฉด CPU๋ก
(....๊ณผ์ฐ ๊ด์ฐฎ์...?)
์ผ๋จ ๋ค์ด ์๋ฃ
์ด์ฒ๋ผ ๋ผ๋ฒจ๋ง์ด ๋์ด์์ ๊ฒฝ์ฐ ๋ฌธ์ ์์ง๋ง,
๋ผ๋ฒจ๋ง์ด ๋์ด์์ง ์์ ๊ฒฝ์ฐ ์ง์ ๋ฐ์ดํฐ์ ์ ๋ง๋ค์ด ์ค์ผ ํจ
https://github.com/tzutalin/labelImg
GitHub - tzutalin/labelImg: ๐๏ธ LabelImg is a graphical image annotation tool and label object bounding boxes in images
๐๏ธ LabelImg is a graphical image annotation tool and label object bounding boxes in images - GitHub - tzutalin/labelImg: ๐๏ธ LabelImg is a graphical image annotation tool and label object bounding b...
github.com
์ด ๋ ์ฌ์ฉํ ํ๋ก๊ทธ๋จ
์ด๋ฐ์์ผ๋ก ๋ฒ์๋ฅผ ์ฃผ๋ฉด ๋ผ๋ฒจ๋งํ ์ ์๋ค
์์ ๋๋ ํ ๋ฆฌ ์ค์ ํด์คฌ๋ค
git clone ํด์ ๊ฐ์ ธ์ค๊ธฐ
ํ๋ก๊ทธ๋จ ์ฌ์ฉํ๋ ค๋ฉด ์ด๊ฒ๋ค์ ์ค์นํด์ผ ํ๋ค๊ณ ํ๋ค
conda install pyqt=5
conda install -c anaconda lxml
pyrcc5 -o libs/resources.py resources.qrc
์ด์ฉํด ๋ค์ด๋ฐ๊ธฐ
pyrcc5 -o libs/resources.py resources.qrc
์์ ์ด๋ฐ ์๋ฌ๊ฐ ๋๋๋ฐ์
https://github.com/tzutalin/labelImg/issues/568
Missing File · Issue #568 · tzutalin/labelImg
So i am on windows and i have gotten to the point where you put in 'pyrcc5 -o line/resources.py resources.qrc' but when i plug that in to my command prompt it just says 'C:\Users\grace\...
github.com
๊ด๋ จ ๊นํ๋ธ ์ด์
resources.qrc ๋ labelimg์ ์๋ ํ์ผ์ด๊ณ
์ด ํ์ผ์ ๋๋ ํ ๋ฆฌ๊ฐ ์ด๋์๋์ง ์ฐพ์์ ํ๋กฌํํธ์์ ๋๋ ํ ๋ฆฌ ๋ณ๊ฒฝํ๋ผ๋ ๊ฒ ๊ฐ๋ค
๋๋ ํ ๋ฆฌ ๋ณ๊ฒฝํ๊ณ ๋ช ๋ น์ด ๋ฃ์ด์ฃผ๋๊น ๋๋ค
์ด ๋ช ๋ น์ ํด์ค์ผ ๋ฆฌ์์ค ๋ฑ๋ก๋๊ณ ํ๋ก๊ทธ๋จ ์ธ ์ ์๋ค๊ณ ํ๋ค
ํํ ์๋ ์ฒ ์กฐ์...
python labelImg.py
์ ๋ช ๋ น์ด ์ ๋ ฅํ๋๊น ์ ๋๋ก Qt ๋ํ๋ฌ๋ค
ํ๋ก๊ทธ๋จ ์ฌ์ฉ์ ์ด๋ฐ ์์ผ๋ก ํด๋ ๊ตฌ์ฑํ๋ฉด ๋๋ค
images์๋ ๋ผ๋ฒจ๋ง ํ ์ด๋ฏธ์ง๋ค,
labels์๋ ๋ผ๋ฒจ๋ง ํ ๊ฐ๋ค,
videos์๋ ๋์ค์ ํ ์คํธํ ์์๋ค,
predefined์๋ ์๋ ์ฌ์ง์ฒ๋ผ!
python3 labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE_PATH]
๊ฐ๊ฐ์ ๊ฒฝ๋ก ๊ฐ์ ์ ๋ ฅํด์ฃผ๋ฉด ๋๋ค
ํ๋ก๊ทธ๋จ ์ฐฝ์์ ๋ผ๋ฒจ๋ง์ ํ ํ์ YOLO๋ก ์์ด์ฝ์ ๋ณ๊ฒฝํด์ฃผ๊ณ Saveํ๋ฉด
๊ด๋ จ ๋ฐ์ดํฐ๋ค์ด ์ ๋ฆฌ๋๋ค
yolov5 ์ค์น
์์ฑ๋ ํด๋์ ์ด๋ฐ ํ์ผ๋ค์ด ์๊ฒผ๋ค
์๋ก์ด ๋ชจ๋ธ์ ํธ๋ ์ด๋ํ ๊ฒฝ์ฐ train.py ์ฌ์ฉํ๋ฉด ๋๋ค
pip3 install -r requirements.txt
requirements.txt ์์ ๋ด์ฉ๋ค ๋ค์ด๋ฐ์์คฌ๋ค
์ฌ๋ฏธ๋ก ์น์์์ธ์ง ๋จธํ์ธ์ง ๊ตฌ๋ณํด์ฃผ๋ ๊ฑฐ ํ์ต์์ผ๋ณผ๊ป์ฉ
just for fun,,,,,,,,,,,,
์ ์ ๊ธฐํ
๋ฐ์ด๋ฉ๋ฐ์ค ๊ทธ๋ ค์ฃผ๊ณ YOLO๋ก ๋ฐ๊พธ๊ณ Save
๊ณผ์ฐ ์น์์์ ๋จธํ์ ๊ตฌ๋ถํ ์ ์์ ๊ฒ์ธ๊ฐ ~_~
lable ๊ฐ์ด ์๋ก์ผ ์๊ฒผ๋ค
๋ค์ผ๋ฉ ๊ณ์!
'CS > AI | CV' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Yolov4 Object detection on Linux (0) | 2022.02.18 |
---|---|
YOLOv5 in PyTorch - Train Custom Data #2 (0) | 2022.02.17 |
Face Recognition - Progressive Web App ์ ์ (0) | 2021.10.30 |
Tensorflow Lite Digit Classifier ์ค์ต (0) | 2021.10.25 |
Hybrid app ๊ฐ๋ฐ Ionic (0) | 2021.10.21 |