Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: inpainting_mask_weight value in /sdapi/v1/options is only returned as 0 or 1 #7325

Closed
1 task done
adunato opened this issue Jan 28, 2023 · 3 comments
Closed
1 task done
Labels
bug-report Report of a bug, yet to be confirmed cannot-reproduce I can't reproduce this, so I can't fix it. Add steps for reproduction and remove this tag.

Comments

@adunato
Copy link

adunato commented Jan 28, 2023

Is there an existing issue for this?

  • 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

  1. in web UI set Inpainting conditioning mask strength to 0.5 (or any a value between 0 and 1)
  2. interrogate /sdapi/v1/options via http://127.0.0.1:7860/docs#/default/get_config_sdapi_v1_options_get
  3. 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

5d14f28

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

@adunato adunato added the bug-report Report of a bug, yet to be confirmed label Jan 28, 2023
@mezotaken
Copy link
Collaborator

mezotaken commented Jan 28, 2023

I didn't try to install all your extensions yet, but i very much doubt they could cause this.
GIF 28 01 2023 20-48-15
Weird
UPD: Same thing with all listed extensions, works like expected for me.

@mezotaken mezotaken added the cannot-reproduce I can't reproduce this, so I can't fix it. Add steps for reproduction and remove this tag. label Jan 28, 2023
@adunato
Copy link
Author

adunato commented Jan 28, 2023

OK, thanks for trying to repro, good to know. I will try a clean install and try again.

@catboxanon
Copy link
Collaborator

Closing as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed cannot-reproduce I can't reproduce this, so I can't fix it. Add steps for reproduction and remove this tag.
Projects
None yet
Development

No branches or pull requests

3 participants