fashion-cls / train.py
crapthings's picture
Create train.py
291fa50 verified
raw
history blame
216 Bytes
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)