updates
This commit is contained in:
parent
584e0a3be8
commit
3a2da49f82
2
test.py
2
test.py
|
@ -176,7 +176,7 @@ def test(
|
||||||
map = cocoEval.stats[1] # update mAP to pycocotools mAP
|
map = cocoEval.stats[1] # update mAP to pycocotools mAP
|
||||||
|
|
||||||
# Return results
|
# Return results
|
||||||
maps = np.zeros(nc)
|
maps = np.zeros(nc) + map
|
||||||
for i, c in enumerate(ap_class):
|
for i, c in enumerate(ap_class):
|
||||||
maps[c] = ap[i]
|
maps[c] = ap[i]
|
||||||
return (mp, mr, map, mf1, loss / len(dataloader)), maps
|
return (mp, mr, map, mf1, loss / len(dataloader)), maps
|
||||||
|
|
Loading…
Reference in New Issue