Repository: stable-diffusion-webui
Issue: [Bug]: Maximum Sampling Steps Less Than What I set
Labels: asking-for-help-with-local-system-issues

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [ ] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

I configured my A1111 to have a maximum of 500 steps, but after todays update, it's set to 150, on the ui-config json, everything was how it should be, my sampling steps were set to 500 steps.

### Steps to reproduce the problem

1. Go to webui
2. Go to where it says 'Sampling Steps'
3. move the slider

### What should have happened?

Obviously should have let me use the slider above 150 steps

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

Brave

### Sysinfo

[sysinfo-2024-04-13-12-33.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/14967407/sysinfo-2024-04-13-12-33.json)


### Console logs

```Shell
remote: Enumerating objects: 12, done.
remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 12 (delta 3), reused 9 (delta 2), pack-reused 0
Unpacking objects: 100% (12/12), 40.47 KiB | 65.00 KiB/s, done.
From https://github.com/AUTOMATIC1111/stable-diffusion-webui
   bef51aed..adadb4e3  master            -> origin/master
   ac8ffb34..ff6f4680  dev               -> origin/dev
   88f70ce6..adadb4e3  release_candidate -> origin/release_candidate
 * [new tag]           v1.9.0            -> v1.9.0
Updating bef51aed..adadb4e3
Fast-forward
 .eslintrc.js                                       |   2 +
 .github/workflows/on_pull_request.yaml             |  10 +-
 .github/workflows/run_tests.yaml                   |  10 +-
 .gitignore                                         |   1 +
 CHANGELOG.md                                       | 144 +++++++++++-
 README.md                                          |   1 +
 _typos.toml                                        |   5 +
 extensions-builtin/LDSR/sd_hijack_ddpm_v1.py       |   8 +-
 extensions-builtin/Lora/lyco_helpers.py            |   2 +-
 extensions-builtin/Lora/network.py                 |  34 ++-
 extensions-builtin/Lora/network_oft.py             |  14 +-
 extensions-builtin/Lora/networks.py                |  11 +-
 extensions-builtin/Lora/ui_edit_user_metadata.py   |   2 +
 extensions-builtin/Lora/ui_extra_networks_lora.py  |   2 +-
 .../canvas-zoom-and-pan/javascript/zoom.js         |  53 +++--
 .../canvas-zoom-and-pan/scripts/hotkey_config.py   |   4 +-
 .../scripts/extra_options_section.py               |   8 +-
 .../scripts/postprocessing_autosized_crop.py       |   0
 .../scripts}/postprocessing_caption.py             |   0
 .../postprocessing_create_flipped_copies.py        |   0
 .../scripts}/postprocessing_focal_crop.py          |   0
 .../scripts}/postprocessing_split_oversized.py     |   0
 .../soft-inpainting/scripts/soft_inpainting.py     |  28 ++-
 html/extra-networks-copy-path-button.html          |   2 +-
 html/extra-networks-edit-item-button.html          |   2 +-
 html/extra-networks-metadata-button.html           |   2 +-
 html/extra-networks-pane-dirs.html                 |   8 +
 html/extra-networks-pane-tree.html                 |   8 +
 html/extra-networks-pane.html                      |  64 ++++--
 javascript/aspectRatioOverlay.js                   |  12 +-
 javascript/dragdrop.js                             |  27 ++-
 javascript/edit-attention.js                       |   8 +
 javascript/extraNetworks.js                        | 177 ++++++++++-----
 javascript/imageviewer.js                          |  12 +-
 javascript/profilerVisualization.js                | 207 +++++++++--------
 javascript/resizeHandle.js                         |  37 +++-
 javascript/ui.js                                   |   7 +-
 modules/api/api.py                                 |  12 +-
 modules/cache.py                                   |  92 ++++----
 modules/call_queue.py                              |   4 +-
 modules/cmd_args.py                                |   5 +-
 modules/codeformer_model.py                        |   2 +-
 modules/devices.py                                 |   2 +-
 modules/extensions.py                              |  63 +++++-
 modules/extra_networks.py                          |   2 +-
 modules/hypernetworks/hypernetwork.py              |   1 +
 modules/images.py                                  |  38 +++-
 modules/img2img.py                                 |  29 ++-
 modules/infotext_utils.py                          |  56 +++--
 modules/infotext_versions.py                       |   4 +
 modules/initialize.py                              |   5 +-
 modules/initialize_util.py                         |   7 +
 modules/launch_utils.py                            |   2 +-
 modules/mac_specific.py                            |   2 +-
 modules/modelloader.py                             |   6 +-
 modules/models/diffusion/ddpm_edit.py              |   8 +-
 modules/options.py                                 |   3 +
 modules/paths_internal.py                          |   2 +-
 modules/postprocessing.py                          |  14 +-
 modules/processing.py                              |  97 ++++++--
 modules/processing_scripts/comments.py             |   7 +
 modules/processing_scripts/sampler.py              |  45 ++++
 modules/rng.py                                     |   4 +-
 modules/script_callbacks.py                        | 245 +++++++++++++++------
 modules/script_loading.py                          |   9 +
 modules/scripts.py                                 | 141 +++++++-----
 modules/scripts_postprocessing.py                  |   6 +-
 modules/sd_emphasis.py                             |   4 +-
 modules/sd_hijack_clip.py                          |  10 +-
 modules/sd_models.py                               |  22 +-
 modules/sd_models_xl.py                            |   4 +-
 modules/sd_samplers.py                             |  73 +++++-
 modules/sd_samplers_cfg_denoiser.py                |   2 +-
 modules/sd_samplers_common.py                      |  15 +-
 modules/sd_samplers_kdiffusion.py                  |  88 +++-----
 modules/sd_schedulers.py                           |  43 ++++
 modules/shared.py                                  |  32 +--
 modules/shared_items.py                            |  42 ++++
 modules/shared_options.py                          |  20 +-
 modules/shared_state.py                            |   4 +-
 modules/styles.py                                  |   3 +-
 modules/textual_inversion/autocrop.py              |   4 +-
 modules/textual_inversion/dataset.py               |   5 +-
 modules/textual_inversion/image_embedding.py       |   6 +-
 modules/textual_inversion/textual_inversion.py     |   2 +-
 modules/txt2img.py                                 |   5 +-
 modules/ui.py                                      |  48 ++--
 modules/ui_common.py                               |  33 +--
 modules/ui_components.py                           |   2 +-
 modules/ui_extensions.py                           |   7 +-
 modules/ui_extra_networks.py                       | 144 +++++++++---
 modules/ui_extra_networks_user_metadata.py         |  10 +-
 modules/ui_loadsave.py                             |   2 +
 modules/ui_postprocessing.py                       |   2 +-
 modules/ui_prompt_styles.py                        |   2 +-
 modules/ui_settings.py                             |  12 +-
 modules/upscaler.py                                |   5 +-
 modules/upscaler_utils.py                          |   4 +-
 modules/util.py                                    |  75 +++++++
 pyproject.toml                                     |   6 +-
 requirements.txt                                   |   1 +
 requirements_versions.txt                          |   1 +
 scripts/outpainting_mk_2.py                        |   2 +-
 scripts/postprocessing_codeformer.py               |   2 +-
 scripts/postprocessing_gfpgan.py                   |   2 +-
 scripts/postprocessing_upscale.py                  |  74 +++++--
 scripts/xyz_grid.py                                |  18 +-
 style.css                                          |  52 ++++-
 webui.sh                                           |  25 ++-
 109 files changed, 1957 insertions(+), 781 deletions(-)
 create mode 100644 _typos.toml
 rename scripts/processing_autosized_crop.py => extensions-builtin/postprocessing-for-training/scripts/postprocessing_autosized_crop.py (100%)
 rename {scripts => extensions-builtin/postprocessing-for-training/scripts}/postprocessing_caption.py (100%)
 rename {scripts => extensions-builtin/postprocessing-for-training/scripts}/postprocessing_create_flipped_copies.py (100%)
 rename {scripts => extensions-builtin/postprocessing-for-training/scripts}/postprocessing_focal_crop.py (100%)
 rename {scripts => extensions-builtin/postprocessing-for-training/scripts}/postprocessing_split_oversized.py (100%)
 create mode 100644 html/extra-networks-pane-dirs.html
 create mode 100644 html/extra-networks-pane-tree.html
 create mode 100644 modules/processing_scripts/sampler.py
 create mode 100644 modules/sd_schedulers.py
venv "D:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.0
Commit hash: adadb4e3c7382bf3e4f7519126cd6c70f4f8557b
Installing requirements
Launching Web UI with arguments: --medvram
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
converting cache: 100%|██████████████████████████████████████████████████████████████| 830/830 [00:08<00:00, 93.71it/s]
CivitAI Browser+: Aria2 RPC started
Loading weights [835313f462] from D:\stable-diffusion-webui\models\Stable-diffusion\mklanArtVersion_mklan221plusart.safetensors
[LyCORIS]-WARNING: LyCORIS legacy extension is now loaded, if you don't expext to see this message, please disable this extension.
Creating model from config: D:\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_base.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 118.5s (initial startup: 0.2s, prepare environment: 32.3s, import torch: 14.4s, import gradio: 8.2s, setup paths: 7.8s, initialize shared: 0.9s, other imports: 5.3s, list SD models: 31.3s, load scripts: 1.9s, initialize extra networks: 0.2s, create ui: 14.7s, gradio launch: 0.8s).
changing setting sd_model_checkpoint to meinamix_meinaV11.safetensors: AttributeError
Traceback (most recent call last):
  File "D:\stable-diffusion-webui\modules\options.py", line 165, in set
    option.onchange()
  File "D:\stable-diffusion-webui\modules\call_queue.py", line 13, in f
    res = func(*args, **kwargs)
  File "D:\stable-diffusion-webui\modules\initialize_util.py", line 181, in <lambda>
    shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: sd_models.reload_model_weights()), call=False)
  File "D:\stable-diffusion-webui\modules\sd_models.py", line 860, in reload_model_weights
    sd_model = reuse_model_from_already_loaded(sd_model, checkpoint_info, timer)
  File "D:\stable-diffusion-webui\modules\sd_models.py", line 793, in reuse_model_from_already_loaded
    send_model_to_cpu(sd_model)
  File "D:\stable-diffusion-webui\modules\sd_models.py", line 662, in send_model_to_cpu
    if m.lowvram:
AttributeError: 'NoneType' object has no attribute 'lowvram'

Traceback (most recent call last):
  File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1077, in call_function
    assert block_fn.fn, f"function with index {fn_index} not defined."
AssertionError: function with index 439 not defined.
Traceback (most recent call last):
  File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1077, in call_function
    assert block_fn.fn, f"function with index {fn_index} not defined."
AssertionError: function with index 439 not defined.
Loading VAE weights specified in settings: D:\stable-diffusion-webui\models\VAE\fixFP16ErrorsSDXLLowerMemoryUse_v10.safetensors
Applying attention optimization: Doggettx... done.
Model loaded in 205.2s (load weights from disk: 10.1s, create model: 1.2s, apply weights to model: 179.0s, apply half(): 0.2s, load VAE: 10.9s, hijack: 0.1s, load textual inversion embeddings: 0.3s, calculate empty prompt: 3.2s).
Reusing loaded model mklanArtVersion_mklan221plusart.safetensors [835313f462] to load meinamix_meinaV11.safetensors
Calculating sha256 for D:\stable-diffusion-webui\models\Stable-diffusion\meinamix_meinaV11.safetensors: 54ef3e3610eee7f0f6c9f9b82eee26aa404598512d800494d1db344e3bc560b1
Loading weights [54ef3e3610] from D:\stable-diffusion-webui\models\Stable-diffusion\meinamix_meinaV11.safetensors
Creating model from config: D:\stable-diffusion-webui\configs\v1-inference.yaml
Loading VAE weights specified in settings: D:\stable-diffusion-webui\models\VAE\fixFP16ErrorsSDXLLowerMemoryUse_v10.safetensors
Applying attention optimization: Doggettx... done.
Model loaded in 2.4s (create model: 0.6s, apply weights to model: 1.2s, load VAE: 0.2s, calculate empty prompt: 0.2s).
Total progress:   0%|                                                                           | 0/40 [00:00<?, ?it/s]
 50%|█████████████████████████████████████████                                         | 10/20 [00:20<00:20,  2.07s/it]
Total progress:  25%|████████████████▌                                                 | 10/40 [00:25<01:15,  2.51s/it]
Loading VAE weights specified in settings: D:\stable-diffusion-webui\models\VAE\klF8Anime2VAE_klF8Anime2VAE.ckpt81s/it]
Applying attention optimization: Doggettx... done.
VAE weights loaded.
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:35<00:00,  1.79s/it]
tiled upscale: 100%|███████████████████████████████████████████████████████████████████| 30/30 [00:03<00:00,  8.63it/s]
 60%|█████████████████████████████████████████████████▏                                | 12/20 [02:11<01:27, 10.94s/it]
Total progress:  80%|████████████████████████████████████████████████████▊             | 32/40 [03:17<00:49,  6.18s/it]
Reusing loaded model meinamix_meinaV11.safetensors [54ef3e3610] to load bloodorangemixSFWSoft_bloodnightorangemix.safetensors
Calculating sha256 for D:\stable-diffusion-webui\models\Stable-diffusion\bloodorangemixSFWSoft_bloodnightorangemix.safetensors: 8fd5b18bbebfed024b7051bc7704c760b8eb53cae783431c7c3e96531805ee0d
Loading weights [8fd5b18bbe] from D:\stable-diffusion-webui\models\Stable-diffusion\bloodorangemixSFWSoft_bloodnightorangemix.safetensors
Loading VAE weights specified in settings: D:\stable-diffusion-webui\models\VAE\klF8Anime2VAE_klF8Anime2VAE.ckpt
Applying attention optimization: Doggettx... done.
Weights loaded in 14.0s (calculate hash: 12.5s, apply weights to model: 0.6s, load VAE: 0.8s).
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00,  3.41it/s]
tiled upscale: 100%|█████████████████████████████████████████████████████████████████████| 9/9 [00:01<00:00,  8.83it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:13<00:00,  1.51it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 40/40 [00:24<00:00,  1.66it/s]
Loading VAE weights specified in settings: D:\stable-diffusion-webui\models\VAE\clearvae_v23.safetensors:00,  1.58it/s]
Applying attention optimization: Doggettx... done.
VAE weights loaded.
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00,  3.88it/s]
tiled upscale: 100%|█████████████████████████████████████████████████████████████████████| 9/9 [00:01<00:00,  8.62it/s]
  5%|████▏                                                                              | 1/20 [00:01<00:30,  1.62s/it]
Total progress:  52%|██████████████████████████████████▋                               | 21/40 [00:14<00:13,  1.45it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00,  3.34it/s]
tiled upscale: 100%|█████████████████████████████████████████████████████████████████████| 9/9 [00:01<00:00,  7.43it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:13<00:00,  1.44it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 40/40 [00:25<00:00,  1.59it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 15/15 [00:08<00:00,  1.80it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 15/15 [00:08<00:00,  1.80it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 65/65 [00:31<00:00,  2.07it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 65/65 [00:31<00:00,  2.05it/s]
Restarting UI...100%|██████████████████████████████████████████████████████████████████| 65/65 [00:31<00:00,  2.11it/s]
Closing server running on port: 7860
CivitAI Browser+: Aria2 RPC restarted
[LyCORIS]-WARNING: LyCORIS legacy extension is now loaded, if you don't expext to see this message, please disable this extension.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 10.4s (list SD models: 6.7s, load scripts: 1.9s, create ui: 1.5s, gradio launch: 0.2s).
Restarting UI...
Closing server running on port: 7860
CivitAI Browser+: Aria2 RPC restarted
[LyCORIS]-WARNING: LyCORIS legacy extension is now loaded, if you don't expext to see this message, please disable this extension.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 2.6s (list SD models: 0.1s, load scripts: 1.3s, create ui: 1.0s, gradio launch: 0.1s).
Saving backup of webui/extension state to D:\stable-diffusion-webui\config_states\2024_04_13-05_21_01_Backup (pre-update).json.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.0
Commit hash: adadb4e3c7382bf3e4f7519126cd6c70f4f8557b
Launching Web UI with arguments: --medvram
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
CivitAI Browser+: Aria2 RPC started
Loading weights [8fd5b18bbe] from D:\stable-diffusion-webui\models\Stable-diffusion\bloodorangemixSFWSoft_bloodnightorangemix.safetensors
[LyCORIS]-WARNING: LyCORIS legacy extension is now loaded, if you don't expext to see this message, please disable this extension.
Creating model from config: D:\stable-diffusion-webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 42.5s (prepare environment: 12.3s, import torch: 10.8s, import gradio: 5.3s, setup paths: 4.6s, initialize shared: 0.8s, other imports: 3.6s, list SD models: 0.6s, load scripts: 1.8s, create ui: 1.8s, gradio launch: 1.1s).
Loading VAE weights specified in settings: D:\stable-diffusion-webui\models\VAE\clearvae_v23.safetensors
Applying attention optimization: Doggettx... done.
Model loaded in 3.9s (create model: 0.8s, apply weights to model: 2.4s, load VAE: 0.2s, calculate empty prompt: 0.3s).
```


### Additional information

Everything is updated.