train.py 202 B

123456
  1. from ultralytics import YOLO
  2. # Load an official or custom model
  3. model = YOLO('yolov8s-seg.pt') # Load an official Detect model
  4. results = model.train(data='data.yaml', epochs=100, imgsz=640, batch=16)