flutter는 YOLOv5, YOLOv8지원
이전 버전들에 비해 경량화, 성능이 좋은 YOLOv8 선택
YOLOv8n부터 학습
from ultralytics import YOLO
import os
os.environ['KMP_DUPLICATE_LIB_OK'] = 'TRUE' # 라이브러리 충돌 방지
model = YOLO('yolov8n.pt')
# 모델 학습
model.train(data='...\\\\street-facilities\\\\street-facilities.yaml', epochs=50, imgsz=640)
데이터 구성
0 : 점자블록 파손부 | 1 : 보도블럭 파손부 | 2: 자전거도로 파손부 | |
---|---|---|---|
Train set | 2706 | 6686 | 5514 |
Validation set | 507 | 1537 | 1247 |
Test set | 53 | 1425 | 1216 |