Closed tjasmin111 closed 12 months ago
SG version? Colab env or script run?
Yes from super gradients. It's a python script.
A trainer.test
call does not print metrics. It returns a dictionary of metrics: test_metrics = trainer.test(...)
.
So if you want to see then you have to print them manually:
test_metrics = trainer.test(...)
print(test_metrics)
Thanks. But When I print it, it just prints Recall and mAP and such for ALL classes. I want a more detailed one (just like YOLO) reporting these for each class. Is there a way to do that?
Can you provide an example of expected output?
Something like this, per class:
Class Images Instances Box(P R mAP50 mAP50-95): 100%|██████████
all 468 1128 0.789 0.75 0.816 0.632
Object1 468 345 0.845 0.836 0.869 0.763
Object2 468 743 0.733 0.664 0.762 0.501
Speed: 0.3ms preprocess, 1.6ms inference, 0.0ms loss, 0.5ms postprocess per image
Add the include_classwise_ap=True
in the DetectionMetrics_050
Thanks. It only adds the AP@0.50 for classes, not Precision, F1, etc. It would benefit from a more detailed list, as a feature request. Also, it says class0, class1! Would be better to show the actual name of class.
💡 Your Question
I want to test the trained yolo nas model, but when running it like below, it doesn't print anything, no metrics. How can I enable printing all those metrics here?
Versions
No response