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]: Webui doesn't start #15410

Closed
4 of 6 tasks
NotSoCommonSense opened this issue Mar 29, 2024 · 6 comments
Closed
4 of 6 tasks

[Bug]: Webui doesn't start #15410

NotSoCommonSense opened this issue Mar 29, 2024 · 6 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@NotSoCommonSense
Copy link

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

Webui doesn't start.

Happens even on fresh install. I'm using directml. I've tried adding --skip-torch-cuda-test to webui-user.bat to no avail.

My older installation (~April 2023) worked fine but some extensions I wanted to use supposedly needed a newer version of the webui.

Steps to reproduce the problem

  1. Start webui.
  2. ???

What should have happened?

WebUI should have started.

What browsers do you use to access the UI ?

Microsoft Edge

Sysinfo

sysinfo-2024-03-29-20-05.json

Console logs

`venv "C:\Users\user\Downloads\Vine Street Rumble-20230402T231554Z-001\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.8.0-RC
Commit hash: ce3d044680100834e862bee6fefb413bfc835ece
Traceback (most recent call last):
  File "C:\Users\Damirko\Downloads\Vine Street Rumble-20230402T231554Z-001\launch.py", line 48, in <module>
    main()
  File "C:\Users\Damirko\Downloads\Vine Street Rumble-20230402T231554Z-001\launch.py", line 39, in main
    prepare_environment()
  File "C:\Users\Damirko\Downloads\Vine Street Rumble-20230402T231554Z-001\modules\launch_utils.py", line 571, in prepare_environment
    raise RuntimeError(
RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
Press any key to continue . . .`

Additional information

I'm kind of dumb as a rock when it comes to this stuff, so please try to explain it very simply if possible and elaborate, thank you

@NotSoCommonSense NotSoCommonSense added the bug-report Report of a bug, yet to be confirmed label Mar 29, 2024
@NotSoCommonSense
Copy link
Author

Never mind, tried adding --skip-torch-cuda-test again and it worked. Flabbergasted.

@Miisa1
Copy link

Miisa1 commented Mar 30, 2024

Never mind, tried adding --skip-torch-cuda-test again and it worked. Flabbergasted.

how did u do this im having the same problem

@NotSoCommonSense
Copy link
Author

NotSoCommonSense commented Mar 30, 2024

Never mind, tried adding --skip-torch-cuda-test again and it worked. Flabbergasted.

how did u do this im having the same problem

Right click webui-user.bat, click edit, then add --skip-torch-cuda-test after COMMANDLINE_ARGS=

However that does force SD to use the CPU making generation extremely slow. This worked for me to make it use the GPU again: https://www.reddit.com/r/StableDiffusion/comments/18vmkon/comment/khpbnvo/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

@Miisa1
Copy link

Miisa1 commented Mar 30, 2024

ur the best bro thanks!

@Miisa1
Copy link

Miisa1 commented Mar 30, 2024

i spoke to soon :( when i tried to generate the image it wouldnt and now after changing the args it says this: launch.py: error: unrecognized arguments: --use-directml

@Miisa1
Copy link

Miisa1 commented Mar 30, 2024

once i removed --use-directml i get this prompted: Stable diffusion model failed to load
Exception in thread Thread-16 (load_model):
Traceback (most recent call last):
File "C:\Users\Maxton Clements\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\Maxton Clements\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "D:\ai things\webui\modules\initialize.py", line 153, in load_model
devices.first_time_calculation()
File "D:\ai things\webui\modules\devices.py", line 267, in first_time_calculation
linear(x)
File "D:\ai things\webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\ai things\webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1527, in call_impl
return forward_call(*args, **kwargs)
File "D:\ai things\webui\extensions-builtin\Lora\networks.py", line 500, in network_Linear_forward
return originals.Linear_forward(self, input)
File "D:\ai things\webui\venv\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: "addmm_impl_cpu
" not implemented for 'Half'

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
Projects
None yet
Development

No branches or pull requests

2 participants