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 committed Jan 7, 2021
1 parent d65f359 commit a3d6e4d
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 a3d6e4d

Please sign in to comment.