lshqqytiger / stable-diffusion-webui-amdgpu

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

[Bug]: AttributeError: module 'modules.dml' has no attribute 'initialize' #296

Closed OperationTwelve closed 4 months ago

OperationTwelve commented 9 months ago

Is there an existing issue for this?

What happened?

Saw the update to try and fix the tuple error and after update I get this when trying to start. AttributeError: module 'modules.dml' has no attribute 'initialize'

Steps to reproduce the problem

  1. Update
  2. Try to start

What should have happened?

Should start and have magic rainbows and pudding everywhere. But it doesn't start lol, Whoever is reading this, I appreciate you.

Sysinfo

--dump-info didnt work so I am using the same one from about an hour ago sysinfo-2023-10-07-16-27.txt

What browsers do you use to access the UI ?

No response

Console logs

venv "F:\SD\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: 61dcd857e04b831fd8b43cf85ceeb23b29860001
Launching Web UI with arguments: --api --lowvram --no-half --skip-torch-cuda-test --upcast-sampling --autolaunch
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Traceback (most recent call last):
  File "F:\SD\stable-diffusion-webui-directml\launch.py", line 48, in <module>
    main()
  File "F:\SD\stable-diffusion-webui-directml\launch.py", line 44, in main
    start()
  File "F:\SD\stable-diffusion-webui-directml\modules\launch_utils.py", line 679, in start
    import webui
  File "F:\SD\stable-diffusion-webui-directml\webui.py", line 13, in <module>
    initialize.imports()
  File "F:\SD\stable-diffusion-webui-directml\modules\initialize.py", line 34, in imports
    shared_init.initialize()
  File "F:\SD\stable-diffusion-webui-directml\modules\shared_init.py", line 25, in initialize
    dml.initialize()
AttributeError: module 'modules.dml' has no attribute 'initialize'
Press any key to continue . . .

Additional information

You got this!

bluefalconeer commented 9 months ago

Same issue. Was working fine this morning, I was trying to do some inpainting and the mask stayed blurred. Googled for fixes and saw some set COMMANDLINE_ARGS= argument suggestions for AMD GPUs, put them in webui-user.bat file and restarted SD. Proceeded to get following error even after removing them.

C:\Users\laval\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui-directml>webui-user.bat
Already up to date.
venv "C:\Users\laval\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
fatal: No names found, cannot describe anything.
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: 1.6.0
Commit hash: 61dcd857e04b831fd8b43cf85ceeb23b29860001
Launching Web UI with arguments: --no-half --precision full --no-half-vae --opt-split-attention
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Traceback (most recent call last):
  File "C:\Users\laval\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui-directml\launch.py", line 48, in <module>
    main()
  File "C:\Users\laval\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui-directml\launch.py", line 44, in main
    start()
  File "C:\Users\laval\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui-directml\modules\launch_utils.py", line 679, in start
    import webui
  File "C:\Users\laval\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui-directml\webui.py", line 13, in <module>    initialize.imports()
  File "C:\Users\laval\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui-directml\modules\initialize.py", line 34, in imports
    shared_init.initialize()
  File "C:\Users\laval\OneDrive\Desktop\Stable Diffusion\stable-diffusion-webui-directml\modules\shared_init.py", line 25, in initialize
    dml.initialize()
AttributeError: module 'modules.dml' has no attribute 'initialize'
Press any key to continue . . .
ride5k commented 9 months ago

this is from the latest commit which was to fix a different issue. as it typically goes! ;)

rexorp commented 9 months ago

yeah, same here. AMD RX580...

edit: I guess I will just roll back to the previous release. Really getting tired of updates breaking SD.

patientx commented 9 months ago

same, and amd also was working a few hours ago before the update

ehpanzer commented 9 months ago

Same issue

FiddleDeDee-Glitch commented 9 months ago

Sames

kamenkadze commented 9 months ago

to same with RX6900

vle99 commented 9 months ago

The last commit introduced the error. You can resolve it by checking out the penultimate commit.

MonoGitsune commented 9 months ago

The last commit introduced the error. You can resolve it by checking out the penultimate commit.

how does one do that exactly?... sorry, i am very very beginner at coding

vle99 commented 9 months ago

git checkout f9356881

bluefalconeer commented 9 months ago

@MonoGitsune Go to folder containing SD. Right click on folder and "Open Git Bash here" it will open a console. Type in "git checkout f935688"

If you have Git Pull line in your webui-user.bat file you will get "you are not currently on branch" line when you start up SD but it will still run it will just be a longer start up. You can remove the line for now to not check for updates since you are off main branch and it will start up SD faster.

When the issue is fixed you can open up Git Bash again and type in "git checkout master" and it will resync you back on to main branch with all commits.

pnotisdev commented 9 months ago

Has this been fixed?

OperationTwelve commented 9 months ago

Has this been fixed?

Yes it has :)