stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: BROKEN txt2img: UnboundLocalError: local variable 'decoded_samples' referenced before assignment
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
Tried to generate txt2img
Steps to reproduce the problem
- Go to txt2img tab enter prompt
- Press "generate"
- See error: 100%|██████████████████████████████████████████████████████████████████████████████████| 35/35 [00:05<00:00, 5.94it/s] Error completing request2:15, 6.19it/s] Arguments: ('Amazing female ancient egyptian ', 'jpeg artifacts, i', 'None', 'None', 35, 1, True, False, 1, 1, 11, -1.0, -1.0, 0, 0, 0, False, 768, 1216, True, 0.7, 0, 0, 0, 0.9, 5, '0.0001', False, 'None', '', 0.1, False, False, False, None, '', 'Illustration', 'svg', True, True, False, 0.5, True, 16, True, 16, 1, '', 0, '', True, True, False, 1.0, 2.0, 'a painting in', 'style', 'picture frame, portrait photo', None) {} Traceback (most recent call last): File "F:!AI\StableDiffusion\stable-diffusion-webui\modules\ui.py", line 185, in f res = list(func(*args, **kwargs)) File "F:!AI\StableDiffusion\stable-diffusion-webui\webui.py", line 63, in f res = func(*args, **kwargs) File "F:!AI\StableDiffusion\stable-diffusion-webui\modules\txt2img.py", line 48, in txt2img processed = process_images(p) File "F:!AI\StableDiffusion\stable-diffusion-webui\modules\processing.py", line 426, in process_images res = process_images_inner(p) File "F:!AI\StableDiffusion\stable-diffusion-webui\modules\processing.py", line 519, in process_images_inner samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength) File "F:!AI\StableDiffusion\stable-diffusion-webui\modules\processing.py", line 688, in sample decoded_samples, UnboundLocalError: local variable 'decoded_samples' referenced before assignment
What should have happened?
no errror throwhn and image beeign generated
Commit where the problem happens
35c45df28b303a05d56a13cb56d4046f08cf8c25
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
No response
Additional information, context and logs
No response
Same thing started happening to me after this morning's git pull.
This is a duplicate of #3888 . Disable "Upscale latent space image when doing hires. fix" in settings and apply settings to be able to generate images again.
There is a fix in https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/3923, hopefully it will get merged soon but as of now you'll have to do it manually
Duplicate of #3888
I have a error that says, UnboundLocalError: local variable 'extra_network_data' referenced before assignment
How would i fix this?