Skip to content

Commit

Permalink
auto-verbose if nc <=20 (ultralytics#1869)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored Jan 7, 2021
1 parent fda8df7 commit 3e25f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))

Expand Down

0 comments on commit 3e25f1e

Please sign in to comment.