From a3d6e4de98d22c4b49b6a7f1398869bf9667afe5 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 7 Jan 2021 15:47:28 -0800 Subject: [PATCH] auto-verbose if nc <=20 (#1869) --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index de63d365b0ee..9c8d3b28bb03 100644 --- a/test.py +++ b/test.py @@ -226,7 +226,7 @@ def test(data, print(pf % ('all', seen, nt.sum(), mp, mr, map50, map)) # Print results per class - if verbose and nc > 1 and len(stats): + if (verbose or (nc <= 20 and not training)) and nc > 1 and len(stats): for i, c in enumerate(ap_class): print(pf % (names[c], seen, nt[c], p[i], r[i], ap50[i], ap[i]))