C.W.K.
Stream
Lesson 03 of 06 · published

Object detection — YOLOv8

~8 min · keras-cv

Level 0Keras 도제
0 XP0/97 lessons0/20 achievements
0/120 XP to next level120 XP to go0% complete

from keras_hub.models import YOLOV8Detector; model = YOLOV8Detector.from_preset('yolo_v8_xs_pascalvoc') — 한 줄로 사전학습 detection. xs / s / m / l / xl size variant.

predict 후 dict 반환 — {'boxes': ..., 'classes': ..., 'confidence': ...}. Non-max-suppression (NMS) 자동. fine-tune 시 backbone freeze + head 만 학습하면 자기 dataset 의 detection 빠르게.

Code

# Load YOLOV8 with COCO pretrained weights
detector = keras_cv.models.YOLOV8Detector.from_preset(
    "yolo_v8_m_coco",  # xs, s, m, l, xl sizes
)

# Run inference
predictions = detector.predict(images)
# predictions["boxes"] → bounding box coordinates
# predictions["classes"] → class IDs
# predictions["confidence"] → confidence scores

External links

Exercise

PASCAL VOC pretrained YOLOv8s 로드. test image 5 개 predict. matplotlib 으로 bbox 시각화. false positive 1 개, missed detection 1 개 메모.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.