[Bug]: inpainting_mask_weight value in /sdapi/v1/options is only returned as 0 or 1
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
The setting of inpainting_mask_weight works fine from either web UI or via /sdapi/v1/options post however, the /sdapi/v1/options get will only return: 1 - if value is 1 0 - is value is less than 1
I have tested this via http://127.0.0.1:7860/docs#/default/get_config_sdapi_v1_options_get
Steps to reproduce the problem
- in web UI set Inpainting conditioning mask strength to 0.5 (or any a value between 0 and 1)
- interrogate /sdapi/v1/options via http://127.0.0.1:7860/docs#/default/get_config_sdapi_v1_options_get
- inpainting_mask_weight is 0
What should have happened?
/sdapi/v1/options should return inpainting_mask_weight value set previously also correctly displayed in the web UI
Commit where the problem happens
https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/5d14f282c2812888275902be4b552681f942dbfd
What platforms do you use to access the UI ?
No response
What browsers do you use to access the UI ?
No response
Command Line Arguments
--api
List of extensions
depthmap2mask | https://github.com/Extraltodeus/depthmap2mask | unknown stable-diffusion-webui-aesthetic-gradients | https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients | unknown stable-diffusion-webui-instruct-pix2pix | https://github.com/Klace/stable-diffusion-webui-instruct-pix2pix.git | unknown stable-diffusion-webui-pixelization | https://github.com/AUTOMATIC1111/stable-diffusion-webui-pixelization.git | unknown LDSR | built-in | Lora | built-in | ScuNET | built-in | SwinIR | built-in | prompt-bracket-checker | built-in
Console logs
remote: Enumerating objects: 90, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 90 (delta 43), reused 55 (delta 39), pack-reused 27
Unpacking objects: 100% (90/90), 36.75 KiB | 160.00 KiB/s, done.
From https://github.com/AUTOMATIC1111/stable-diffusion-webui
* branch master -> FETCH_HEAD
ce72af8..5d14f28 master -> origin/master
Updating ce72af8..5d14f28
Fast-forward
.github/ISSUE_TEMPLATE/bug_report.yml | 29 +++++++++++++----
javascript/extensions.js | 20 ++++++++++--
launch.py | 35 ++++++++++++++++++++
modules/extras.py | 17 +++++++---
modules/generation_parameters_copypaste.py | 2 +-
modules/paths.py | 2 +-
modules/sd_hijack.py | 2 ++
modules/sd_models.py | 4 +--
modules/sd_models_config.py | 51 +++++++++++++++++++++++++++---
modules/ui_extensions.py | 28 ++++++++++------
10 files changed, 156 insertions(+), 34 deletions(-)
venv "F:\StableDiffusion\stable-diffusion-webui-master\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)]
Commit hash: 5d14f282c2812888275902be4b552681f942dbfd
Installing requirements for Web UI
Launching Web UI with arguments: --api --api-log
No module 'xformers'. Proceeding without it.
==============================================================================
You are running torch 1.12.1+cu113.
The program is tested to work with torch 1.13.1.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded.
==============================================================================
Loading weights [f38f89a98a] from F:\StableDiffusion\stable-diffusion-webui-master\models\Stable-diffusion\Auditor_v1.ckpt
Creating model from config: F:\StableDiffusion\stable-diffusion-webui-master\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: F:\StableDiffusion\stable-diffusion-webui-master\models\VAE\vae-ft-mse-840000-ema-pruned.ckpt
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(4): rainaps-1650, rainaps-650, rainaps, Style-Empire
Textual inversion embeddings skipped(1): waterworksv2-5000
Model loaded in 6.0s (load weights from disk: 1.4s, create model: 0.5s, apply weights to model: 0.8s, apply half(): 0.7s, load VAE: 0.2s, move model to device: 1.2s, load textual inversion embeddings: 1.0s).
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
Additional information
No response
I didn't try to install all your extensions yet, but i very much doubt they could cause this.
Weird
UPD: Same thing with all listed extensions, works like expected for me.
OK, thanks for trying to repro, good to know. I will try a clean install and try again.
Closing as stale.