Repository: stable-diffusion-webui
Issue: assert p.prompt is not None
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### 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, '<ul>\n<li><code>CFG Scale</code> should be 2 or lower.</li>\n</ul>\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 1, 'None', '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', '<p style="margin-bottom:0.75em">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>', 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

### Steps 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

```Shell
@echo off

set PYTHON="C:\Users\nikit\AppData\Local\Programs\Python\Python310\python.exe"
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=

call webui.bat
```


### List of extensions

<html>
<body>
<!--StartFragment-->




LDSR | built-in |   |  
Lora | built-in |   |  
ScuNET | built-in |   |  
SwinIR | built-in |   |  
prompt-bracket-checker | built-in |  

<br class="Apple-interchange-newline"><!--EndFragment-->
</body>
</html>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, '', [], <PIL.Image.Image image mode=RGBA size=4096x2048 at 0x20463839630>, 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, 0, 0, 32, 0, '', '', '', [], 0, True, True, False, 0, -1, '<ul>\n<li><code>CFG Scale</code> should be 2 or lower.</li>\n</ul>\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 1, 'None', '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', '<p style="margin-bottom:0.75em">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>', 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, '', [], <PIL.Image.Image image mode=RGBA size=4096x2048 at 0x204638A4CA0>, 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, '<ul>\n<li><code>CFG Scale</code> should be 2 or lower.</li>\n</ul>\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 1, 'None', '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', '<p style="margin-bottom:0.75em">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>', 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, '', [], <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, '<ul>\n<li><code>CFG Scale</code> should be 2 or lower.</li>\n</ul>\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 1, 'None', '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', '<p style="margin-bottom:0.75em">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>', 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_