from ultralytics import YOLO # Load a model model = YOLO('best.pt') # load a pretrained model (recommended for training) # Train the model results = model.train(data='./classify1', epochs=100, imgsz=640,batch=128)