Merge pull request #15006 from imnodb/master

fix: the `split_threshold` parameter does not work when running Split oversized images
This commit is contained in:
AUTOMATIC1111 2024-02-26 07:16:42 +03:00
parent e651ca8adb
commit f97e3548e5
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class ScriptPostprocessingSplitOversized(scripts_postprocessing.ScriptPostproces
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)