Open samrrr opened 1 year ago
It happens to mine, too
Although it doesn't seem to apply here, I'm sharing in the case someone is having the same problem as me. I was getting the same error when using the automatic1111 API, where I was trying to send a request to txt2img with an empty prompt. My server was setting the empty prompt "" to null in the json file that it sent to automatic1111, which caused the issue.
Is there an existing issue for this?
What happened?
Error completing request Arguments: ('task(ek01buqsdxtln3k)', 0, None, '', [], <PIL.Image.Image image mode=RGBA size=1024x512 at 0x204638A5C60>, None, None, None, None, None, None, 20, 0, 4, 0, 1, False, True, 1, 1, 7, 1.5, 0.75, -1.0, -1.0, 0, 0, 0, False, 512, 1024, 2, 0, 32, 0, '', '', '', [], 0, True, True, False, 0, -1, '
\n \n
\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 1, 'None', 'CFG Scale
should be 2 or lower.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, 'positive', 'comma', 0, False, False, '', 'Will upscale the image by the selected scale factor; use width and height sliders to set tile size
', 64, 0, 2, 1, '', 0, '', 0, '', True, False, False, False, 0) {} Traceback (most recent call last): File "D:\SD\SD_git\stable-diffusion-webui\modules\call_queue.py", line 56, in f res = list(func(*args, *kwargs)) File "D:\SD\SD_git\stable-diffusion-webui\modules\call_queue.py", line 37, in f res = func(args, **kwargs) File "D:\SD\SD_git\stable-diffusion-webui\modules\img2img.py", line 171, in img2img processed = process_images(p) File "D:\SD\SD_git\stable-diffusion-webui\modules\processing.py", line 486, in process_images res = process_images_inner(p) File "D:\SD\SD_git\stable-diffusion-webui\modules\processing.py", line 508, in process_images_inner assert p.prompt is not None AssertionErrorSteps to reproduce the problem
On img2img empty prompt.
What should have happened?
Random deviation image generated.
Commit where the problem happens
5c9f2bbb7473c7085dc961bbf81d5248a4859e90
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
LDSR | built-in | | Lora | built-in | | ScuNET | built-in | | SwinIR | built-in | | prompt-bracket-checker | built-in |Extension URL Version Update LDSR [built-in](http://127.0.0.1:7860/) Lora [built-in](http://127.0.0.1:7860/) ScuNET [built-in](http://127.0.0.1:7860/) SwinIR [built-in](http://127.0.0.1:7860/) prompt-bracket-checker [built-in](http://127.0.0.1:7860/) ### Console logs ```Shell venv "D:\SD\SD_git\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] Commit hash: 5c9f2bbb7473c7085dc961bbf81d5248a4859e90 Installing requirements for Web UI Launching Web UI with arguments: No module 'xformers'. Proceeding without it. Loading weights [6ce0161689] from D:\SD\SD_git\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors Creating model from config: D:\SD\SD_git\stable-diffusion-webui\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Applying cross attention optimization (Doggettx). Textual inversion embeddings loaded(0): Model loaded in 3.7s (create model: 0.6s, apply weights to model: 1.1s, apply half(): 0.6s, move model to device: 0.5s, load textual inversion embeddings: 0.8s). Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`. Startup time: 10.2s (import gradio: 2.4s, import ldm: 0.9s, other imports: 1.8s, load scripts: 0.9s, load SD checkpoint: 4.0s, create ui: 0.2s). Error completing request Arguments: ('task(4lfqfcs3j8ntd6e)', 0, None, '', [],
\n \n
\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 1, 'None', 'CFG Scale
should be 2 or lower.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, 'positive', 'comma', 0, False, False, '', 'Will upscale the image by the selected scale factor; use width and height sliders to set tile size
', 64, 0, 2, 1, '', 0, '', 0, '', True, False, False, False, 0) {} Traceback (most recent call last): File "D:\SD\SD_git\stable-diffusion-webui\modules\call_queue.py", line 56, in f res = list(func(*args, **kwargs)) File "D:\SD\SD_git\stable-diffusion-webui\modules\call_queue.py", line 37, in f res = func(*args, **kwargs) File "D:\SD\SD_git\stable-diffusion-webui\modules\img2img.py", line 171, in img2img processed = process_images(p) File "D:\SD\SD_git\stable-diffusion-webui\modules\processing.py", line 486, in process_images res = process_images_inner(p) File "D:\SD\SD_git\stable-diffusion-webui\modules\processing.py", line 508, in process_images_inner assert p.prompt is not None AssertionError Error completing request Arguments: ('task(6j1cxix7sr8ck8n)', 0, None, '', [],\n \n
\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 1, 'None', 'CFG Scale
should be 2 or lower.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, 'positive', 'comma', 0, False, False, '', 'Will upscale the image by the selected scale factor; use width and height sliders to set tile size
', 64, 0, 2, 1, '', 0, '', 0, '', True, False, False, False, 0) {} Traceback (most recent call last): File "D:\SD\SD_git\stable-diffusion-webui\modules\call_queue.py", line 56, in f res = list(func(*args, **kwargs)) File "D:\SD\SD_git\stable-diffusion-webui\modules\call_queue.py", line 37, in f res = func(*args, **kwargs) File "D:\SD\SD_git\stable-diffusion-webui\modules\img2img.py", line 171, in img2img processed = process_images(p) File "D:\SD\SD_git\stable-diffusion-webui\modules\processing.py", line 486, in process_images res = process_images_inner(p) File "D:\SD\SD_git\stable-diffusion-webui\modules\processing.py", line 508, in process_images_inner assert p.prompt is not None AssertionError Error completing request Arguments: ('task(ek01buqsdxtln3k)', 0, None, '', [],\n \n
\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 1, 'None', 'CFG Scale
should be 2 or lower.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, 'positive', 'comma', 0, False, False, '', 'Will upscale the image by the selected scale factor; use width and height sliders to set tile size
', 64, 0, 2, 1, '', 0, '', 0, '', True, False, False, False, 0) {} Traceback (most recent call last): File "D:\SD\SD_git\stable-diffusion-webui\modules\call_queue.py", line 56, in f res = list(func(*args, **kwargs)) File "D:\SD\SD_git\stable-diffusion-webui\modules\call_queue.py", line 37, in f res = func(*args, **kwargs) File "D:\SD\SD_git\stable-diffusion-webui\modules\img2img.py", line 171, in img2img processed = process_images(p) File "D:\SD\SD_git\stable-diffusion-webui\modules\processing.py", line 486, in process_images res = process_images_inner(p) File "D:\SD\SD_git\stable-diffusion-webui\modules\processing.py", line 508, in process_images_inner assert p.prompt is not None AssertionError ``` ### Additional information _No response_