Skip to content

Commit

Permalink
Fix the logic of min text area in PostProcess of PseNet (#1983)
Browse files Browse the repository at this point in the history
  • Loading branch information
baonguyenduy2002 authored Sep 12, 2023
1 parent 8b429ab commit 606ac68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmocr/models/textdet/postprocessors/pse_postprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get_text_instances(self, pred_results: torch.Tensor,
area = points.shape[0]
score_instance = np.mean(score[labels == i])
if not (area >= self.min_text_area
or score_instance > self.score_threshold):
and score_instance > self.score_threshold):
continue

polygon = self._points2boundary(points)
Expand Down

0 comments on commit 606ac68

Please sign in to comment.