seg_train.py 202 B

12345678
  1. from ultralytics import YOLO
  2. # Load a model
  3. model = YOLO('yolov8n-seg.pt') # build a new model from YAML
  4. # Train the model
  5. results = model.train(data='seg_magnet.yaml', epochs=150, imgsz=640)