Repository: stable-diffusion-webui
Issue: [Bug]: RuntimeError: The size of tensor a (128) must match the size of tensor b (64) at non-singleton dimension 3
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?

When trying to upscale an image the following error is displayed:
RuntimeError: The size of tensor a (128) must match the size of tensor b (64) at non-singleton dimension 3

### Steps to reproduce the problem

1. Go to img2img
2. Place image
3. Press Generate

### What should have happened?

The image should be enlarged by 4x with improved detail I guess

### Commit where the problem happens

7cea280a8fd9b7e3cc65a1719d6371d69013c9bb

### What platforms do you use to access UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
--xformers --no-half --medvram --opt-split-attention
```


### Additional information, context and logs

```
Loading config from: D:\AI\stable-diffusion-webui\models\Stable-diffusion\x4-upscaler-ema.yaml
LatentUpscaleDiffusion: Running in v-prediction mode
DiffusionWrapper has 473.40 M params.
Loading weights [5c5661de] from D:\AI\stable-diffusion-webui\models\Stable-diffusion\x4-upscaler-ema.ckpt
Applying xformers cross attention optimization.
Model loaded.
Loaded a total of 0 textual inversion embeddings.
Embeddings:
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Error completing request
Arguments: (0, '', '', 'None', 'None', <PIL.Image.Image image mode=RGB size=128x128 at 0x238BD5EC910>, None, None, None, None, 0, 20, 0, 4, 0, 1, False, False, 1, 1, 7, 0.75, -1.0, -1.0, 0, 0, 0, False, 512, 512, 0, False, 32, 0, '', '', 0, '<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, '<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, 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, '', True, False, False) {}
Traceback (most recent call last):
  File "D:\AI\stable-diffusion-webui\modules\call_queue.py", line 45, in f
    res = list(func(*args, **kwargs))
  File "D:\AI\stable-diffusion-webui\modules\call_queue.py", line 28, in f
    res = func(*args, **kwargs)
  File "D:\AI\stable-diffusion-webui\modules\img2img.py", line 152, in img2img
    processed = process_images(p)
  File "D:\AI\stable-diffusion-webui\modules\processing.py", line 464, in process_images
    res = process_images_inner(p)
  File "D:\AI\stable-diffusion-webui\modules\processing.py", line 567, in process_images_inner
    samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength, prompts=prompts)
  File "D:\AI\stable-diffusion-webui\modules\processing.py", line 905, in sample
    samples = self.sampler.sample_img2img(self, self.init_latent, x, conditioning, unconditional_conditioning, image_conditioning=self.image_conditioning)
  File "D:\AI\stable-diffusion-webui\modules\sd_samplers.py", line 458, in sample_img2img
    xi = x + noise * sigma_sched[0]
RuntimeError: The size of tensor a (128) must match the size of tensor b (64) at non-singleton dimension 3
```