Skip to content

Commit

Permalink
Update quad_metric.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Liyulingyue committed May 25, 2024
1 parent afb949c commit 72c2510
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def measure(self, batch, output, box_thresh=0.6):
for i in range(pred_polygons.shape[0]):
if pred_scores[i] >= box_thresh:
# print(pred_polygons[i,:,:].tolist())
pred.append(dict(points=pred_polygons[i, :, :].astype(np.int32)))
pred.append(
dict(points=pred_polygons[i, :, :].astype(np.int32))
)
# pred = [dict(points=pred_polygons[i,:,:].tolist()) if pred_scores[i] >= box_thresh for i in range(pred_polygons.shape[0])]
results.append(self.evaluator.evaluate_image(gt, pred))
return results
Expand Down

0 comments on commit 72c2510

Please sign in to comment.