TheLastBen / fast-stable-diffusion

fast-stable-diffusion + DreamBooth
MIT License
7.5k stars 1.31k forks source link

error when trying to use SD Upscale #322

Open demosch opened 1 year ago

demosch commented 1 year ago

Error completing request Arguments: (0, 'sks woman in river swamp flora by ivan aizovsky and francisco de goya, water', '', 'None', 'None', <PIL.Image.Image image mode=RGB size=1024x640 at 0x7F42EAE3C410>, {'image': <PIL.Image.Image image mode=RGBA size=1024x640 at 0x7F42EAE3CF10>, 'mask': <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=1024x640 at 0x7F42EAE3C310>}, None, None, 0, 150, 0, 4, 1, False, False, 1, 1, 7.5, 0.15, -1.0, -1.0, 0, 0, 0, False, 832, 832, 0, True, 48, 0, '', '', 7, '

\n', True, True, '', '', True, 50, True, 1, 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

', 96, 4, 1, '', 0, '', True, False, False) {} Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 185, in f res = list(func(*args, *kwargs)) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 54, in f res = func(args, *kwargs) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/img2img.py", line 135, in img2img processed = modules.scripts.scripts_img2img.run(p, args) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 282, in run processed = script.run(p, *script_args) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/scripts/sd_upscale.py", line 75, in run processed = processing.process_images(p) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/processing.py", line 427, in process_images res = process_images_inner(p) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/processing.py", line 487, in process_images_inner with torch.no_grad(), p.sd_model.ema_scope(): AttributeError: 'NoneType' object has no attribute 'ema_scope'

demosch commented 1 year ago

@TheLastBen

TheLastBen commented 1 year ago

did you update the repo ?

demosch commented 1 year ago

updated-still doenst work. im not sure if it has to do with the size of input image? its an 512 height, 832 wide picture.

TheLastBen commented 1 year ago

could be, try with a square image

demosch commented 1 year ago

tried aquare-still ema error

TheLastBen commented 1 year ago

I'll check it out

demosch commented 1 year ago

thanks alot. its an very important feauture for me.

Jboby1 commented 1 year ago

I'm getting a similar error when using the Img2Img Loopback script-- it halts after the first regeneration

TheLastBen commented 1 year ago

fixed, use the Colab from the official link to get the fixed version

demosch commented 1 year ago

thanks alot. trying out now

Jboby1 commented 1 year ago

All works again on my end, thank you!

Nayjest commented 1 year ago

OMG Thanks! It works! Wasted all day to find alternative workflow for upscale and now the best method finally works. Great!