์๋ช
๋ํ๊ต SW-PBL ํ๋ก์ ํธ
- email address : opea5954@gmail.com
- Demo Video : https://youtu.be/o9u2amtgCto
Yolov5์ Tensorflow Lite๋ฅผ ๊ธฐ๋ฐ์ผ๋กํ ๋ ์ํผ ์ถ์ฒ ์ดํ๋ฆฌ์ผ์ด์
- Yolov5๋ก ํ์ตํ ์์ฌ๋ฃ ํ์ง ๋ชจ๋ธ์ ์ด์ฉํ์ฌ ์ค์๊ฐ์ผ๋ก ์์ฌ๋ฃ ํ์ง
- ํ์ฌ๊น์ง ์ธ์ํ ์์ฌ๋ฃ ์ค ๊ฐ์ฅ ์ฐ๊ด์ฑ ๋์ ์๋ฆฌ๋ฅผ ์ค์๊ฐ์ผ๋ก ์ ๊ณต
- ์ฐ๊ด์ฑ ๋์ ์๋ฆฌ์ ๋ ์ํผ๋ฅผ ๋ณผ ์ ์๋ ์ฌ์ดํธ ๋งํฌ ์ ๊ณต
- Google colaboratory
- Yolov5
- Tensorflow 1.15.2v
- Android Studio @3.5.3
- Class : 11
- ๋ง๋, ๊ฐ์, ๋ฌ๊ฑ, ์ํ, ๋ญ๊ณ ๊ธฐ, ๋ผ์ง๊ณ ๊ธฐ, ๋ํ, ์๊ณ ๊ธฐ, ๊น์น, ํ, ์ฝฉ๋๋ฌผ
- Images : 905
- TRAIN/TEST SPLIT(100%)
- Train : 631(70%)
- Valid : 179(20%)
- Test : 95(10%)
Dataset download : https://drive.google.com/file/d/1TMjSp__xeLrYLKl-XmWTIy10e4tXcjHB/view?usp=sharing
- yolov5 ์ค์น
!git clone https://github.com/zldrobit/yolov5.git
- requirements.txt ์ค์น
%cd /content/yolov5/
pip install -r requirements.txt
- Model ํ์ต
!python train.py --img 416 --batch 16 --epochs 300 --data /content/data.yaml --cfg ./models/yolov5s.yaml --weights yolov5s.pt --name food_ingredients_model
(์๊ธฐ๋ถํด ์๋๋ก์ด๋ ์ฐ๋) 4. https://github.com/zldrobit/yolov5 ์ด๋ models/tf.py ํ์ผ์ colab์ /content/models/ ๋๋ ํฐ๋ฆฌ์ ์ ์ฅ
- ํ์ต๋ ๊ฐ์ค์น ํ์ผ(.pt)๋ฅผ .tflite๋ก ๋ณํ
!PYTHONPATH=. python models/tf.py --weights runs/train/food_ingredients_model/weights/best.pt --cfg models/yolov5s.yaml --img 320
-
yolov5 app ๋ณ๊ฒฝ yolov5์ app์ ๋ด์ฉ์ https://github.com/Q-100/ingredients-classification.git ๋ก ๋ณ๊ฒฝ
-
assets์ Model Training์์ ํ์ตํ best-fp16.tflite ํ์ผ ์ ์ฅ ๋๋ weight(.tflite) https://drive.google.com/file/d/1lvwR8SvFC8moYsfMrxvUV1SeIQBPFx1L/view?usp=sharing ์ ์ฅ
-
์คํ ^^
DetectorActivity.java