diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-02-26 04:16:42 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2024-02-26 04:35:42 +0000 |
commit | f97e3548e54cfc914c195d6d4d48792e4d021261 (patch) | |
tree | 087ccc34b35bac7eafbf33995b4e3a1ca20e3ac0 /scripts | |
parent | e651ca8adb00b14704aa564dbeb0bef5f8698f0a (diff) | |
download | stable-diffusion-webui-gfx803-f97e3548e54cfc914c195d6d4d48792e4d021261.tar.gz stable-diffusion-webui-gfx803-f97e3548e54cfc914c195d6d4d48792e4d021261.tar.bz2 stable-diffusion-webui-gfx803-f97e3548e54cfc914c195d6d4d48792e4d021261.zip |
Merge pull request #15006 from imnodb/master
fix: the `split_threshold` parameter does not work when running Split oversized images
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/postprocessing_split_oversized.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/postprocessing_split_oversized.py b/scripts/postprocessing_split_oversized.py index c4a03160..133e199b 100644 --- a/scripts/postprocessing_split_oversized.py +++ b/scripts/postprocessing_split_oversized.py @@ -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)
|