lllyasviel / lllyasviel/stable-diffusion-webui-forge

[Bug]: Can't Even Launch WebUI

Open
#657 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Checklist

- [X] The issue exists after disabling all extensions
- [X] 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?

Program is impossible to run without NVIDIA according to the error message
![image_2024-04-09_210946729](https://github.com/lllyasviel/stable-diffusion-webui-forge/assets/94816924/7614c7b0-9d82-45c9-ad5d-eb50974eccd3)

### Steps to reproduce the problem

1. Download package
2. Unzip/unpack
3. Attempt to run
4. Get attached error screen 1
![image_2024-04-10_002034565](https://github.com/lllyasviel/stable-diffusion-webui-forge/assets/94816924/e0801e94-0a84-4daf-a6be-fff017c5c07b)
5. Attempted to use after adding Command Line Argument
![image_2024-04-10_002343222](https://github.com/lllyasviel/stable-diffusion-webui-forge/assets/94816924/782a0935-0516-431c-938b-8406703600ef)
6. Get second error screen when running
![image](https://github.com/lllyasviel/stable-diffusion-webui-forge/assets/94816924/0a23719f-3bb4-4b6f-b358-eac2c190baf7)

### What should have happened?

WebUI should boot up in my browser and allow me to operate Forge

### What browsers do you use to access the UI ?

Google Chrome, Android, Other

### Sysinfo

Cannot get SystemInfo... Upon attempting to launch with the proper CommandLineArgs, I get:
![image_2024-04-09_211226287](https://github.com/lllyasviel/stable-diffusion-webui-forge/assets/94816924/c3a4a643-13d8-480a-8290-af5dca1125eb)

### Console logs

```Shell
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: f0.0.17v1.8.0rc-latest-276-g29be1da7
Commit hash: 29be1da7cf2b5dccfc70fbdd33eb35c56a31ffb7
Launching Web UI with arguments: --skip-torch-cuda-test
Traceback (most recent call last):
File "C:\Users\BigOt\Forge-UI\webui\launch.py", line 51, in
main()
File "C:\Users\BigOt\Forge-UI\webui\launch.py", line 47, in main
start()
File "C:\Users\BigOt\Forge-UI\webui\modules\launch_utils.py", line 541, in start
import webui
File "C:\Users\BigOt\Forge-UI\webui\webui.py", line 17, in
initialize_forge()
File "C:\Users\BigOt\Forge-UI\webui\modules_forge\initialization.py", line 50, in initialize_forge
import ldm_patched.modules.model_management as model_management
File "C:\Users\BigOt\Forge-UI\webui\ldm_patched\modules\model_management.py", line 122, in
total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
File "C:\Users\BigOt\Forge-UI\webui\ldm_patched\modules\model_management.py", line 91, in get_torch_device
return torch.device(torch.cuda.current_device())
File "C:\Users\BigOt\Forge-UI\system\python\lib\site-packages\torch\cuda\__init__.py", line 769, in current_device
_lazy_init()
File "C:\Users\BigOt\Forge-UI\system\python\lib\site-packages\torch\cuda\__init__.py", line 298, in _lazy_init
torch._C._cuda_init()
RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx
Press any key to continue . . .
```

### Additional information

Using an old laptop that can't use NVIDIA nor can I afford one (currently unemployed)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with modules_forge/initialization.py and ldm_patched/modules/model_management.py, then reproduce the launch command on the reported non-NVIDIA system. Trace the torch.cuda initialization path and identify the supported behavior for hardware without an NVIDIA driver. Done means the WebUI launches without this CUDA error, with appropriate coverage or verification for the affected hardware path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.