updates
This commit is contained in:
parent
51eb173416
commit
6f0086103c
3
test.py
3
test.py
|
@ -44,8 +44,6 @@ def test(
|
|||
outputs, mAPs, mR, mP, TP, confidence, pred_class, target_class = [], [], [], [], [], [], [], []
|
||||
AP_accum, AP_accum_count = np.zeros(nC), np.zeros(nC)
|
||||
for batch_i, (imgs, targets) in enumerate(dataloader):
|
||||
|
||||
with torch.no_grad():
|
||||
output = model(imgs.to(device))
|
||||
output = non_max_suppression(output, conf_thres=conf_thres, nms_thres=nms_thres)
|
||||
|
||||
|
@ -134,6 +132,7 @@ if __name__ == '__main__':
|
|||
opt = parser.parse_args()
|
||||
print(opt, end='\n\n')
|
||||
|
||||
with torch.no_grad():
|
||||
mAP = test(
|
||||
opt.cfg,
|
||||
opt.data_cfg,
|
||||
|
|
Loading…
Reference in New Issue