Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#15417 from light-and-ray/fix_upscaler_2
Browse files Browse the repository at this point in the history
Fix upscaler 2: add missed max_side_length
  • Loading branch information
AUTOMATIC1111 authored Mar 31, 2024
2 parents 859f0f6 + 0a7d1e7 commit aa4a451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/postprocessing_upscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def process(self, pp: scripts_postprocessing.PostprocessedImage, upscale_enabled
pp.info["Postprocess upscaler"] = upscaler1.name

if upscaler2 and upscaler_2_visibility > 0:
second_upscale = self.upscale(pp.image, pp.info, upscaler2, upscale_mode, upscale_by, upscale_to_width, upscale_to_height, upscale_crop)
second_upscale = self.upscale(pp.image, pp.info, upscaler2, upscale_mode, upscale_by, max_side_length, upscale_to_width, upscale_to_height, upscale_crop)
upscaled_image = Image.blend(upscaled_image, second_upscale, upscaler_2_visibility)

pp.info["Postprocess upscaler 2"] = upscaler2.name
Expand Down

0 comments on commit aa4a451

Please sign in to comment.