auto-verbose if nc <=20 (#1869)

This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-01-07 15:47:28 -08:00
1 parent fda8df7e88
commit 3e25f1e9e5
1 file changed
+1 -1
+1 -1
View File
@@ -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]))