# Build a YOLOv9c model from scratch
model = YOLO(‘yolov8n.yaml’)
Build a YOLOv9c model from pretrained weight
model = YOLO(‘yolov8n.pt’)
Display model information (optional)
model.info()
results=model.train(data=’data.yaml’, epochs=1, imgsz=640, lr0=0.01, batch=32, device=[0, 1], optimizer=’SGD’, val=False, plots=False)
how to print training class loss after this code?
If I write:
print(results)
output: none
BUt I want to see all the resutls such mAP, class loss, and others
New contributor
Rakib Ul Haque is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.