AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.4k stars 26.86k forks source link

[Bug]: When I hide the settings interface, the function to switch models becomes ineffective. #11769

Open YILING0013 opened 1 year ago

YILING0013 commented 1 year ago

Is there an existing issue for this?

What happened?

When I hide the settings interface, the function to switch models becomes ineffective.

Steps to reproduce the problem

  1. Go to settings and select "Hide Settings" in the user interface of the settings. Restart the program.
  2. Follow the steps to switch models, but the model switching fails.
  3. Open the config file, modify the "hidden_tabs" setting, save and restart the program. Try switching models again, and the model switch is successful.

What should have happened?

When I close the settings interface, it does not affect the model switching.

Version or Commit where the problem happens

394ffa7b0a7fff3ec484bcd084e673a8b301ccc8

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Windows

What device are you running WebUI on?

Other GPUs

Cross attention optimization

xformers

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

--theme dark --xformers --no-half-vae --opt-channelslast --api --autolaunch --listen --disable-safe-unpickle --no-gradio-queue --gradio-auth

List of extensions

No

Console logs

Loading weights [d124fc18f0] from E:\BaiduNetdiskDownload\sd-webui-aki\sd-webui-aki-v4.1\models\Stable-diffusion\AOM3.safetensors
Loading VAE weights specified in settings: cached anything-v4.0.vae.pt
Applying attention optimization: xformers... done.
Weights loaded in 3.6s (load weights from disk: 0.3s, apply weights to model: 2.4s, load VAE: 0.2s, move model to device: 0.6s).
Traceback (most recent call last):
  File "E:\BaiduNetdiskDownload\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\BaiduNetdiskDownload\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages\gradio\blocks.py", line 1326, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "E:\BaiduNetdiskDownload\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages\gradio\blocks.py", line 1242, in postprocess_data
    block = self.blocks[output_id]
KeyError: 4954

Additional information

No response

chrme commented 1 year ago

When you hide settings, it is not possible to change the model or other settings from the user interface, only through the command line and nothing else

mashb1t commented 1 year ago

same as https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11728