mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 11:12:35 +00:00
fix: the split_threshold
parameter does not work when running Split oversized images
This commit is contained in:
@@ -61,7 +61,7 @@ class ScriptPostprocessingSplitOversized(scripts_postprocessing.ScriptPostproces
|
|||||||
ratio = (pp.image.height * width) / (pp.image.width * height)
|
ratio = (pp.image.height * width) / (pp.image.width * height)
|
||||||
inverse_xy = True
|
inverse_xy = True
|
||||||
|
|
||||||
if ratio >= 1.0 and ratio > split_threshold:
|
if ratio >= 1.0 or ratio > split_threshold:
|
||||||
return
|
return
|
||||||
|
|
||||||
result, *others = split_pic(pp.image, inverse_xy, width, height, overlap_ratio)
|
result, *others = split_pic(pp.image, inverse_xy, width, height, overlap_ratio)
|
||||||
|
Reference in New Issue
Block a user