Skip to content

Commit

Permalink
fix ruined SD upscale
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Dec 25, 2022
1 parent 7b7f7e9 commit c6f347b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/sd_upscale.py
Expand Up @@ -35,8 +35,9 @@ def run(self, p, _, overlap, upscaler_index, scale_factor):
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
Expand Down

0 comments on commit c6f347b

Please sign in to comment.