Skip to content

Commit

Permalink
fix: the split_threshold parameter does not work when running Split…
Browse files Browse the repository at this point in the history
… oversized images
  • Loading branch information
imnodb authored Feb 23, 2024
1 parent cf2772f commit ed594d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/postprocessing_split_oversized.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def process(self, pp: scripts_postprocessing.PostprocessedImage, enable, split_t
ratio = (pp.image.height * width) / (pp.image.width * height)
inverse_xy = True

if ratio >= 1.0 and ratio > split_threshold:
if ratio >= 1.0 or ratio > split_threshold:
return

result, *others = split_pic(pp.image, inverse_xy, width, height, overlap_ratio)
Expand Down

0 comments on commit ed594d7

Please sign in to comment.