lshqqytiger / stable-diffusion-webui-amdgpu

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

[Bug]: AttributeError: module 'diffusers.schedulers' has no attribute 'scheduling_lcm' #461

Closed Ael07 closed 1 month ago

Ael07 commented 1 month ago

Checklist

What happened?

I deleted the Venv file and did a Git pull for the last version, all went well but the launch of the webui breaks at the last step;

I'm also using directml version with AMD GPU ... it was working well before one of the updates....

C:\Users\~\stable-diffusion-webui-directml>git pull Already up to date. venv "C:\Users\~\stable-diffusion-webui-directml\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.3-amd-11-g88c12241 Commit hash: 88c122412fb198ea8a5112c8a276ca1c33090caf no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. C:\Users\~\stable-diffusion-webui-directml\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning: pytorch_lightning.utilities.distributed.rank_zero_only has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from pytorch_lightning.utilities instead. rank_zero_deprecation( Launching Web UI with arguments: --medvram --use-directml --no-half --precision full --opt-sub-quad-attention --opt-split-attention-v1 --theme dark --autolaunch --disable-safe-unpickle --disable-nan-check --skip-torch-cuda-test


launch.py 48 main()

launch.py 44 main start()

launch_utils.py 695 start import webui

webui.py 13 initialize.imports()

initialize.py 36 imports shared_init.initialize()

shared_init.py 30 initialize directml_do_hijack()

init.py 69 directml_do_hijack import modules.dml.hijack # noqa: F401

init.py 4 import modules.dml.hijack.diffusers

diffusers.py 189 ) -> Union[diffusers.schedulers.scheduling_lcm.LCMSchedulerOutput, Tuple]:

AttributeError: module 'diffusers.schedulers' has no attribute 'scheduling_lcm' Press any key to continue . . .

Steps to reproduce the problem

1 delete venv file 2 launch webui user bat file with git pull for last version 3 breaks at the launch of the webui

What should have happened?

launch of a working webui

What browsers do you use to access the UI ?

No response

Sysinfo

sysinfo-2024-05-12-20-46.json

Console logs

C:\Users\~\stable-diffusion-webui-directml>git pull
Already up to date.
venv "C:\Users\~\stable-diffusion-webui-directml\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.3-amd-11-g88c12241
Commit hash: 88c122412fb198ea8a5112c8a276ca1c33090caf
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
C:\Users\~\stable-diffusion-webui-directml\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning: `pytorch_lightning.utilities.distributed.rank_zero_only` has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from `pytorch_lightning.utilities` instead.
  rank_zero_deprecation(
Launching Web UI with arguments: --medvram --use-directml --no-half --precision full --opt-sub-quad-attention --opt-split-attention-v1 --theme dark --autolaunch --disable-safe-unpickle --disable-nan-check --skip-torch-cuda-test

------------------------------------------------------------------------------------------------------------------------
launch.py 48 <module>
main()

launch.py 44 main
start()

launch_utils.py 695 start
import webui

webui.py 13 <module>
initialize.imports()

initialize.py 36 imports
shared_init.initialize()

shared_init.py 30 initialize
directml_do_hijack()

__init__.py 69 directml_do_hijack
import modules.dml.hijack # noqa: F401

__init__.py 4 <module>
import modules.dml.hijack.diffusers

diffusers.py 189 <module>
) -> Union[diffusers.schedulers.scheduling_lcm.LCMSchedulerOutput, Tuple]:

AttributeError:
module 'diffusers.schedulers' has no attribute 'scheduling_lcm'
Press any key to continue . . .

Additional information

No response

Ael07 commented 1 month ago

I re installed directml stable diffusion, it is working perfectly on CPU but not GPU, issue reported