Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#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 and ruchej committed Sep 30, 2024
1 parent b4ded9c commit d533526
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 d533526

Please sign in to comment.