model = YOLO(“yolov8n.pt”)
metrics=model.val(data=’data.yaml’, split=’test’)
how to access the class loss or box loss from the variable metrics ? (urgently needed )?
I can only access this variables but I need wither box or cls loss ?
how to get it
`# Validate the model
metrics = model.val() # no arguments needed, dataset and
settings remembered
metrics.box.map # map50-95
metrics.box.map50 # map50
metrics.box.map75 # map75
metrics.box.maps # a list contains map50-95 of each category`
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.