Skip to content

Commit

Permalink
Fixed polygon detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Barman committed Jan 6, 2021
1 parent 29374bd commit 799421d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dh_segment_torch/post_processing/geometries/polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ def apply(
found_polygons = sorted(
found_polygons, key=lambda poly: poly.area, reverse=True
)
return found_polygons[: min(self.max_boxes, len(found_polygons))]
return found_polygons[: min(self.max_polygons, len(found_polygons))]

0 comments on commit 799421d

Please sign in to comment.