Skip to content

Commit 8556f8c

Browse files
authored
processed_image_ids record logic changed, thanks to @mnslarcher
1 parent 6105867 commit 8556f8c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

coco_eval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ def evaluate_coco(img_path, set_name, image_ids, coco, model, threshold=0.05):
8282
anchors, regression, classification,
8383
regressBoxes, clipBoxes,
8484
threshold, nms_threshold)
85-
86-
processed_image_ids.append(image_id)
87-
85+
8886
if not preds:
8987
continue
9088

89+
processed_image_ids.append(image_id)
90+
9191
preds = invert_affine(framed_metas, preds)[0]
9292

9393
scores = preds['scores']

0 commit comments

Comments
 (0)