Downloads · 30 days
0
SeieunYoo/yolov8n-custom-1
yolov8n-custom-1 is a machine learning model from SeieunYoo. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated May 26, 2024
Repo size
12.7 MB
Likes
0
Public
Click a slice to open those files.
.pt12.5 MB · 66%
From the Hugging Face model README

Loss

# 이미지 3만장 학습
import torch
from ultralytics import YOLO
# 사전 학습된 YOLOv5 모델 로드
model = YOLO('yolov8n.pt')
# 학습 설정
epochs = 3
data_path = 'data/data.yaml'
img_size = 640
batch_size = 10
project_name = 'yolov8n_custom'
project_dir = 'runs/train'
# 사용자 정의 학습 함수
def train_yolov8(model, data_path, img_size, batch_size, epochs, project_name, project_dir):
results = model.train(
data=data_path,
imgsz=img_size,
epochs=epochs,
batch=batch_size,
name=project_name,
project=project_dir,
warmup_epochs=1.0,
box=0.02,
mosaic=0.5,
)
# 모델 학습
train_yolov8(model, data_path, img_size, batch_size, epochs, project_name, project_dir)