Skip to content

Commit

Permalink
Update quad_metric.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Liyulingyue authored May 25, 2024
1 parent d3c643c commit afb949c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ 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.int)))
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 afb949c

Please sign in to comment.