Spaces:
Sleeping
Sleeping
File size: 322 Bytes
9457184 c5cff55 9457184 1b65107 9457184 c5cff55 9457184 c5cff55 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from ultralytics import YOLO
import os
# Define the correct path to config.yaml (in the root directory)
config_path = '/app/config.yaml'
# Load YOLO model
model = YOLO("yolo11n.yaml") # You can choose a different model type like yolo5n, yolo6n, etc.
# Train the model
results = model.train(data=config_path, epochs=1)
|