Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SD upscale is broken ? #1348

Closed
MiguelRita opened this issue Sep 30, 2022 · 5 comments
Closed

SD upscale is broken ? #1348

MiguelRita opened this issue Sep 30, 2022 · 5 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@MiguelRita
Copy link

Describe the bug
SD Upscale is not working anymore

To Reproduce
Steps to reproduce the behavior:

  1. Go to img2img
  2. Feed a image from upload or from txt2img
  3. Run the script SD upscaling

ERROR Log

img2img: a flower
Error completing request
Arguments: (0, 'a flower', '', 'None', 'None', <PIL.Image.Image image mode=RGB size=512x512 at 0x2A6D38D75B0>, None, None, None, 0, 20, 0, 4, 0, False, False, 1, 1, 7, 0.75, -1.0, -1.0, 0, 0, 0, False, 512, 512, 0, False, 32, 0, '', '', 7, '', '', 1, 50, 0, False, 4, 1, '

Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8

', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, None, '', '

Will upscale the image to twice the dimensions; use width and height sliders to set tile size

', 64, 13, 1, 'Euler a,Euler,LMS,Heun,DPM2,DPM2 a,DDIM,PLMS', 4, '', True, False) {}
Traceback (most recent call last):
File "F:\Development#Personal\13 - StableDiffusion\stable-diffusion-webui-1111\modules\ui.py", line 153, in f
res = list(func(*args, **kwargs))
File "F:\Development#Personal\13 - StableDiffusion\stable-diffusion-webui-1111\webui.py", line 63, in f
res = func(*args, **kwargs)
File "F:\Development#Personal\13 - StableDiffusion\stable-diffusion-webui-1111\modules\img2img.py", line 117, in img2img
processed = modules.scripts.scripts_img2img.run(p, *args)
File "F:\Development#Personal\13 - StableDiffusion\stable-diffusion-webui-1111\modules\scripts.py", line 159, in run
processed = script.run(p, *script_args)
File "F:\Development#Personal\13 - StableDiffusion\stable-diffusion-webui-1111\scripts\sd_upscale.py", line 37, in run
img = upscaler.upscale(init_img, init_img.width * 2, init_img.height * 2)
AttributeError: 'UpscalerData' object has no attribute 'upscale'

Captura de ecrã 2022-09-30 091931

@MiguelRita MiguelRita added the bug-report Report of a bug, yet to be confirmed label Sep 30, 2022
@MiguelRita MiguelRita changed the title SD upscale is broken SD upscale is broken ? Sep 30, 2022
@MiguelRita
Copy link
Author

Just did a new fresh install from the Master branch, the issue still persists. Sad times for upscaling !

@Rogal80
Copy link

Rogal80 commented Sep 30, 2022

I Have same issue and with Txt2Img using higres.fix when in settings I turn on anything for upscalers
image

@13700k
Copy link

13700k commented Sep 30, 2022

Arguments: (0, 'a man with a black shirt and a black tie and a black shirt and a white wall and a white wall', '', 'None', 'None', <PIL.Image.Image image mode=RGB size=512x512 at 0xD2D720>, None, None, None, 0, 20, 0, 4, 0, False, False, 1, 1, 7, 0.75, -1.0, -1.0, 0, 0, 0, False, 512, 512, 0, False, 32, 0, '', '', 0, '', '', 1, 50, 0, False, 4, 1, '

Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8

', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, None, '', '

Will upscale the image to twice the dimensions; use width and height sliders to set tile size

', 64, 0, '', '', 100, 0, 0, True, '

If you like my work, please consider showing your support on Patreon. Thank you! ❤

', 1, '', 4, '', True, False) {}
Traceback (most recent call last):
File "C:\SD\stable-diffusion-webui\modules\ui.py", line 153, in f
res = list(func(*args, **kwargs))
File "C:\SD\stable-diffusion-webui\webui.py", line 63, in f
res = func(*args, **kwargs)
File "C:\SD\stable-diffusion-webui\modules\img2img.py", line 119, in img2img
processed = process_images(p)
File "C:\SD\stable-diffusion-webui\modules\processing.py", line 333, in process_images
p.init(all_prompts, all_seeds, all_subseeds)
File "C:\SD\stable-diffusion-webui\modules\processing.py", line 586, in init
image = images.resize_image(self.resize_mode, image, self.width, self.height)
File "C:\SD\stable-diffusion-webui\modules\images.py", line 229, in resize_image
res = resize(im, width, height)
File "C:\SD\stable-diffusion-webui\modules\images.py", line 217, in resize
assert len(upscalers) > 0, f"could not find upscaler named {opts.upscaler_for_img2img}"
AssertionError: could not find upscaler named Real-ESRGAN 4x plus

@MiguelRita
Copy link
Author

This is now fixed!

@UnaiGar
Copy link

UnaiGar commented Oct 7, 2022

how do you repair this error:
AssertionError: couldn not find upscaler named Real-ESRGAN 4x plus????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

4 participants