Repository: stable-diffusion-webui
Issue: [Bug]: outpainting result is black
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?

i tried to outpaint a generated image by transferring it to im2img and select outpaint script (tried both) and select to expand to up a certain amount of pixel.

the preview during the generation looks very fine but at the end the generated image has just noise (outpaint mk2) or black (poor mans outpaint) at the expanded area. So the thing seems to work in principle but something goes wrong at the end.

### Steps to reproduce the problem

(1. generate some image)
2. load img/paramerters to img2img
3. select script outpaint (either one of the two)
4. select direction only up (didn't test with other combinations)
5. generate

--> the live preview shows an outpainted image
--> after finish the enlarged image is stored with only noise or black in the expanded areas
(also the preview area shows the generated broken image)

### What should have happened?

the correctly reconstructed outpainted image should be stored and displayed

### Commit where the problem happens

dfeee786f903e392dbef1519c7c246b9856ebab3

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Mozilla Firefox

### Command Line Arguments

```Shell
no
```


### List of extensions

controlnet - but is not used while observing this problem


sd-webui-controlnet 	https://github.com/Mikubill/sd-webui-controlnet.git 	c73c9451 (Mon Mar 13 17:16:47 2023) 	unknown
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
c:\AI\stable-diffusion-webui>webui-user.bat
venv "c:\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Commit hash: dfeee786f903e392dbef1519c7c246b9856ebab3
Installing requirements for Web UI

Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
Loading weights [6ce0161689] from C:\AI\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Creating model from config: C:\AI\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 4.1s (create model: 0.5s, apply weights to model: 0.8s, apply half(): 0.8s, move model to device: 0.7s, load textual inversion embeddings: 1.2s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 20.5s (import gradio: 2.8s, import ldm: 1.0s, other imports: 2.8s, list extensions: 0.1s, setup codeformer: 0.1s, load scripts: 1.7s, load SD checkpoint: 4.4s, create ui: 7.4s, gradio launch: 0.1s).
Poor man's outpainting will process a total of 1 images tiled as 1x2.
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:49<00:00,  1.97s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 25/25 [00:50<00:00,  2.01s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 25/25 [00:50<00:00,  2.01s/it]
```


### Additional information

_No response_