mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-05 03:32:37 +00:00
fix ruined SD upscale
This commit is contained in:
@@ -35,8 +35,9 @@ class Script(scripts.Script):
|
|||||||
seed = p.seed
|
seed = p.seed
|
||||||
|
|
||||||
init_img = p.init_images[0]
|
init_img = p.init_images[0]
|
||||||
|
init_img = images.flatten(init_img, opts.img2img_background_color)
|
||||||
|
|
||||||
if (upscaler.name != "None"):
|
if upscaler.name != "None":
|
||||||
img = upscaler.scaler.upscale(init_img, scale_factor, upscaler.data_path)
|
img = upscaler.scaler.upscale(init_img, scale_factor, upscaler.data_path)
|
||||||
else:
|
else:
|
||||||
img = init_img
|
img = init_img
|
||||||
|
Reference in New Issue
Block a user