This commit is contained in:
Glenn Jocher 2019-07-20 17:09:43 +02:00
parent a179af6729
commit 3512f7ff61
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ def test(cfg,
jdict.append({'image_id': image_id, jdict.append({'image_id': image_id,
'category_id': coco91class[int(d[6])], 'category_id': coco91class[int(d[6])],
'bbox': [float3(x) for x in box[di]], 'bbox': [float3(x) for x in box[di]],
'score': float(format('%.5f', d[4]))}) 'score': float(format('.5f', d[4]))})
# Clip boxes to image bounds # Clip boxes to image bounds
clip_coords(pred, (height, width)) clip_coords(pred, (height, width))