Repository: stable-diffusion-webui
Issue: [Bug]: Img2Img resolution keeps changing randomly
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?

with the new builds... for about 3 days now, in Img2Img, the resolution seems to be changing randomly.  I often work in the 512x768 space (or 768x512), and when I send images to img2img or inpainting... the resolution will often automatically shift to 608x920 or similar (one time it jumped to 1024).

### Steps to reproduce the problem

1. Go to .... img2img with an image. 
2.  send it to inpainting.  (or vice versa)
3. Press ....check resolution


### What should have happened?

resolution should match the original resolution.

### Commit where the problem happens

ea9bd9fc7409109adcd61b897abc2c8881161256

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

Windows, MacOS

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

Mozilla Firefox, Google Chrome, Apple Safari, Microsoft Edge

### Command Line Arguments

```Shell
--listen --xformers --api --enable-insecure-extension-access
```


### List of extensions


depth-image-io-for-SDWebui | https://github.com/AnonymousCervine/depth-image-io-for-SDWebui.git | behind
depthmap2mask | https://github.com/Extraltodeus/depthmap2mask | latest
embedding-inspector | https://github.com/tkalayci71/embedding-inspector.git | latest
sd_dreambooth_extension |   |  
sd_grid_add_image_number | https://github.com/AlUlkesh/sd_grid_add_image_number.git | latest
sd_smartprocess | https://github.com/d8ahazard/sd_smartprocess | latest
stable-diffusion-webui-instruct-pix2pix | https://github.com/Klace/stable-diffusion-webui-instruct-pix2pix.git | behind
stable-diffusion-webui-tokenizer | https://github.com/AUTOMATIC1111/stable-diffusion-webui-tokenizer.git | latest
ultimate-upscale-for-automatic1111 | https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git | latest



### Console logs

```Shell
venv "C:\AI\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: ea9bd9fc7409109adcd61b897abc2c8881161256
Installing requirements for Web UI


#######################################################################################################
Initializing Dreambooth
If submitting an issue on github, please provide the below text for debugging purposes:

Python revision: 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Dreambooth revision:
SD-WebUI revision:

Checking Dreambooth requirements...
[+] bitsandbytes version 0.35.0 installed.
[+] diffusers version 0.10.2 installed.
[+] transformers version 4.25.1 installed.
[+] xformers version 0.0.16rc425 installed.
[+] torch version 1.13.1+cu117 installed.
[+] torchvision version 0.14.1+cu117 installed.
#######################################################################################################

loading Smart Crop reqs from C:\AI\stable-diffusion-webui\extensions\sd_smartprocess\requirements.txt
Checking Smart Crop requirements.

Launching Web UI with arguments: --listen --xformers --api --enable-insecure-extension-access
Dreambooth API layer loaded
Loading weights [8194f84cdc] from C:\AI\stable-diffusion-webui\models\Stable-diffusion\realisticVisionV12_v12.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 xformers cross attention optimization.
Textual inversion embeddings loaded(7): bad-artist-anime, bad-artist, bad_prompt, bad_prompt_version2, MLKEmb, Style-Empire-neg, Style-Empire
Textual inversion embeddings skipped(8): AnalogFilm768-BW-Classic, AnalogFilm768-BW-Modern, AnalogFilm768-BW-Tintype, AnalogFilm768-BW-Vintage, AnalogFilm768-Old-School, AnalogFilm768, Neg_Facelift768, TungstenDispo
Model loaded in 4.1s (load weights from disk: 0.2s, create model: 0.4s, apply weights to model: 1.7s, apply half(): 0.3s, move model to device: 0.5s, load textual inversion embeddings: 1.0s).
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
        Tile 1/4
        Tile 2/4
        Tile 3/4
        Tile 4/4
100%|██████████████████████████████████████████████████████████████████████████████████| 27/27 [00:02<00:00, 10.36it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 27/27 [00:03<00:00,  7.82it/s]
        Tile 1/4
        Tile 2/4
        Tile 3/4
        Tile 4/4
100%|██████████████████████████████████████████████████████████████████████████████████| 27/27 [00:02<00:00, 10.46it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 27/27 [00:03<00:00,  7.74it/s]
        Tile 1/4
        Tile 2/4
        Tile 3/4
        Tile 4/4
100%|██████████████████████████████████████████████████████████████████████████████████| 27/27 [00:03<00:00,  7.40it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 27/27 [00:04<00:00,  5.99it/s]
        Tile 1/4
        Tile 2/4
        Tile 3/4
        Tile 4/4
100%|██████████████████████████████████████████████████████████████████████████████████| 27/27 [00:03<00:00,  7.27it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 27/27 [00:04<00:00,  5.92it/s]
```


### Additional information

_No response_