From 6bd2c2252345fb5cab631eb3d8cb0bc3714586c3 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 9 Jul 2019 21:11:53 +0200 Subject: [PATCH] updates --- test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index e2282c86..bd4f2675 100644 --- a/test.py +++ b/test.py @@ -54,7 +54,7 @@ def test( seen = 0 model.eval() coco91class = coco80_to_coco91_class() - print(('%20s' + '%10s' * 6) % ('Class', 'Images', 'Targets', 'P', 'R', 'mAP', 'F1')) + print(('%30s' + '%10s' * 6) % ('Class', 'Images', 'Targets', 'P', 'R', 'mAP', 'F1')) loss, p, r, f1, mp, mr, map, mf1 = 0., 0., 0., 0., 0., 0., 0., 0. jdict, stats, ap, ap_class = [], [], [], [] for batch_i, (imgs, targets, paths, shapes) in enumerate(tqdm(dataloader, desc='Computing mAP')): @@ -150,7 +150,7 @@ def test( mp, mr, map, mf1 = p.mean(), r.mean(), ap.mean(), f1.mean() # Print results - pf = '%20s' + '%10.3g' * 6 # print format + pf = '%30s' + '%10.3g' * 6 # print format print(pf % ('all', seen, nt.sum(), mp, mr, map, mf1)) # Print results per class