提交 c6f347b8 编写于 作者: A AUTOMATIC

fix ruined SD upscale

上级 7b7f7e93
......@@ -35,8 +35,9 @@ class Script(scripts.Script):
seed = p.seed
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)
else:
img = init_img
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册