|
|
@ -75,7 +75,7 @@ def test(data,
|
|
|
|
seen = 0
|
|
|
|
seen = 0
|
|
|
|
model.eval()
|
|
|
|
model.eval()
|
|
|
|
_ = model(torch.zeros((1, 3, imgsz, imgsz), device=device)) if device.type != 'cpu' else None # run once
|
|
|
|
_ = model(torch.zeros((1, 3, imgsz, imgsz), device=device)) if device.type != 'cpu' else None # run once
|
|
|
|
names = model.module.names if hasattr(model, 'module') else model.names
|
|
|
|
names = model.names if hasattr(model, 'names') else model.module.names
|
|
|
|
coco91class = coco80_to_coco91_class()
|
|
|
|
coco91class = coco80_to_coco91_class()
|
|
|
|
s = ('%20s' + '%12s' * 6) % ('Class', 'Images', 'Targets', 'P', 'R', 'mAP@.5', 'mAP@.5:.95')
|
|
|
|
s = ('%20s' + '%12s' * 6) % ('Class', 'Images', 'Targets', 'P', 'R', 'mAP@.5', 'mAP@.5:.95')
|
|
|
|
p, r, f1, mp, mr, map50, map, t0, t1 = 0., 0., 0., 0., 0., 0., 0., 0., 0.
|
|
|
|
p, r, f1, mp, mr, map50, map, t0, t1 = 0., 0., 0., 0., 0., 0., 0., 0., 0.
|
|
|
|