Skip to content

Commit

Permalink
Merge pull request #15006 from imnodb/master
Browse files Browse the repository at this point in the history
fix: the `split_threshold` parameter does not work when running Split oversized images
  • Loading branch information
AUTOMATIC1111 authored Feb 26, 2024
2 parents e3a8dc6 + ed594d7 commit 2b7ddcb
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 2b7ddcb

Please sign in to comment.