File size: 559 Bytes
3a6b652
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
빠른 테스트용 학습 스크립트 (5 에포크만)
"""

from ultralytics import YOLO
import torch

print("GPU 사용 가능:", torch.cuda.is_available())

# 모델 로드
model = YOLO('yolov8n.pt')

# 빠른 테스트 학습 (5 에포크만)
results = model.train(
    data='dataset_split/data.yaml',
    epochs=5,
    imgsz=640,
    batch=8,
    device='0' if torch.cuda.is_available() else 'cpu',
    project='test_run',
    name='quick_test',
    exist_ok=True,
)

print("\n테스트 학습 완료!")
print("결과 확인: test_run/quick_test/")