Views
No views yet
1from ultralytics import YOLO
2
3# Load the model
4model = YOLO('path_to_model.pt')
5
6# Perform detection on an image
7results = model('path_to_image.jpg')1from ultralytics import YOLO
2
3# Load a model
4model = YOLO("yolov8n.pt").to('cuda')
5# Train the model
6results = model.train(data="data.yaml", epochs=100)



