AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Latest update causes error on launch #13619

Open dieselino0 opened 1 year ago

dieselino0 commented 1 year ago

Is there an existing issue for this?

What happened?

Launched the cmd file with this error showing up

Traceback (most recent call last): File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\launch.py", line 48, in <module> main() File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\launch.py", line 44, in main start() File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\launch_utils.py", line 681, in start webui.webui() File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\webui.py", line 52, in webui initialize.initialize() File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\initialize.py", line 75, in initialize initialize_rest(reload_script_modules=False) File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\initialize.py", line 103, in initialize_rest sd_models.list_models() File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\sd_models.py", line 207, in list_models if jit_model_list is not None: UnboundLocalError: local variable 'jit_model_list' referenced before assignment Press any key to continue . . .

Steps to reproduce the problem

  1. Launch webui
  2. Update starts
  3. Error shows

What should have happened?

Launched normally after the update

Sysinfo

Traceback (most recent call last): File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\launch.py", line 48, in <module> main() File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\launch.py", line 44, in main start() File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\launch_utils.py", line 681, in start webui.webui() File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\webui.py", line 52, in webui initialize.initialize() File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\initialize.py", line 75, in initialize initialize_rest(reload_script_modules=False) File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\initialize.py", line 103, in initialize_rest sd_models.list_models() File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\sd_models.py", line 207, in list_models if jit_model_list is not None: UnboundLocalError: local variable 'jit_model_list' referenced before assignment Press any key to continue . . .

What browsers do you use to access the UI ?

No response

Console logs

D:\AUTOMATIC1111\stable-diffusion-webui-directml>git pull
Already up to date.
venv "D:\AUTOMATIC1111\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
fatal: No names found, cannot describe anything.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.6.0
Commit hash: f5c31ac10da7eba201862f4ba0dc338d69db4098
Launching Web UI with arguments: --opt-sub-quad-attention --upcast-sampling
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Traceback (most recent call last):
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\launch.py", line 48, in <module>
    main()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\launch.py", line 44, in main
    start()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\launch_utils.py", line 681, in start
    webui.webui()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\webui.py", line 52, in webui
    initialize.initialize()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\initialize.py", line 75, in initialize
    initialize_rest(reload_script_modules=False)
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\initialize.py", line 103, in initialize_rest
    sd_models.list_models()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\sd_models.py", line 207, in list_models
    if jit_model_list is not None:
UnboundLocalError: local variable 'jit_model_list' referenced before assignment
Press any key to continue . . .

Additional information

No response

maxxsteal commented 1 year ago

Same here...

johanruda commented 1 year ago

Same here... Ran fine earlier tonight

CLAW1200 commented 1 year ago

Same here, rolling back to previous version for now

Senecaflowers commented 1 year ago

Also same. Not pulling model list.

Senecaflowers commented 1 year ago

Also same. Not pulling model list.

I am not a coder or anything like it. So, I did get the debug to work using: --ui-debug-mode in the webui-user.bat.

Once in AUTOMATIC1111, it still doesn't generate the model list, but if I use the Reload UI button at the bottom, it will populate.

This line shows in the CMD: ERROR: Exception in ASGI application

Xiques-L commented 1 year ago

Same here, ran fine last night

Jaya101010 commented 1 year ago

Same thing here as well. Been using it all day and after a restart i'm getting this error

PhillipMacOffee commented 1 year ago

Quick fix: in modules\sd_models,py, add jit_model_list = None as line 189, after optimized_model_list = None with the same indentation.

Xiques-L commented 1 year ago

Quick fix: in modules\sd_models,py, add jit_model_list = None as line 189, after optimized_model_list = None with the same indentation.

OMG its work! tysm!

Jaya101010 commented 1 year ago

Quick fix: in modules\sd_models,py, add jit_model_list = None as line 189, after optimized_model_list = None with the same indentation.

Can confirm this worked, thanks!!

tombrau commented 1 year ago

Can confirm this worked for me after a new/clean install

For3aib commented 1 year ago

Quick fix: in modules\sd_models,py, add jit_model_list = None as line 189, after optimized_model_list = None with the same indentation.

Legend, thank you