"ts/nni_manager/yarn.lock" did not exist on "10df6801c80b45bee244256fd75bc5434a832275"
train_multi.py 288 Bytes
Newer Older
dengjb's avatar
dengjb committed
1
2
3
4
5
6
7
from ultralytics import YOLO

# Load a model
model = YOLO("yolov8s.yaml",)  # build a new model from scratch
#model = YOLO("yolov8s.pt")  # load a pretrained model (recommended for training with a new dataset)
# Use the model
model.train(data="coco.yaml", epochs=100,device=[0, 1, 2, 3])