lllyasviel / lllyasviel/stable-diffusion-webui-forge
[Bug]: after sleep mode Forge freezes the computer
- 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
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet
### What happened?
When my computer goes to sleep mode with Forge open, doing anything in Forge after it wakes up freezes the computer.
If instead I close Forge and open it again however it's ok. So going to sleep mode must be doing something to Forge's memory.
This does not happen with Automatic1111, only with Forge.
### Steps to reproduce the problem
1. Open Forge
2. Let the computer go to sleep mode
3. Wake up the computer
4. Try to generate anything
### What should have happened?
Not freezing and working as usual.
### What browsers do you use to access the UI ?
Mozilla Firefox
### Sysinfo
[sysinfo-2024-04-25-13-32.json](https://github.com/lllyasviel/stable-diffusion-webui-forge/files/15110747/sysinfo-2024-04-25-13-32.json)
### Console logs
```Shell
Once the computer is frozen I can't see the console anymore, but here is how it starts.
Python 3.10.14 (main, Mar 20 2024, 16:10:51) [MSC v.1939 64 bit (AMD64)]
Version: f0.0.17v1.8.0rc-latest-276-g29be1da7
Commit hash: 29be1da7cf2b5dccfc70fbdd33eb35c56a31ffb7
Launching Web UI with arguments: --xformers --skip-torch-cuda-test
Total VRAM 12288 MB, total RAM 32677 MB
WARNING:xformers:A matching Triton is not available, some optimizations will not
be enabled.
Error caught was: No module named 'triton'
xformers version: 0.0.20
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3060 : native
Hint: your device supports --pin-shared-memory for potential speed improvements.
Hint: your device supports --cuda-malloc for potential speed improvements.
Hint: your device supports --cuda-stream for potential speed improvements.
VAE dtype: torch.bfloat16
CUDA Stream Activated: False
D:\apps\stable-diffusion\Forge\system\python\lib\site-packages\torchvision\io\im
age.py:13: UserWarning: Failed to load image Python extension: '[WinError 127] L
a procédure spécifiée est introuvable'If you don't plan on using image functiona
lity from `torchvision.io`, you can ignore this warning. Otherwise, there might
be something wrong with your environment. Did you have `libjpeg` or `libpng` ins
talled before building `torchvision` from source?
warn(
Using xformers cross attention
==============================================================================
You are running torch 2.0.1+cu118.
The program is tested to work with torch 2.1.2.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded, as well as
there are reports of issues with training tab on the latest version.
Use --skip-version-check commandline argument to disable this check.
==============================================================================
================================================================================
=
You are running xformers 0.0.20.
The program is tested to work with xformers 0.0.23.post1.
To reinstall the desired version, run with commandline flag --reinstall-xformers
.
Use --skip-version-check commandline argument to disable this check.
================================================================================
=
ControlNet preprocessor location: D:\apps\stable-diffusion\Forge\webui\models\Co
ntrolNetPreprocessor
Loading weights [af91612fad] from D:\apps\stable-diffusion\Forge\webui\models\St
able-diffusion\XL\pmamXLPhredMadeAnother_v10.safetensors
2024-04-25 15:44:45,978 - ControlNet - INFO - ControlNet UI callback registered.
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
model_type EPS
UNet ADM Dimension 2816
Startup time: 26.1s (prepare environment: 0.8s, import torch: 9.7s, import gradi
o: 1.9s, setup paths: 1.9s, initialize shared: 0.2s, other imports: 1.1s, list S
D models: 0.5s, load scripts: 7.1s, create ui: 2.3s, gradio launch: 0.4s).
```
### Additional information
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Begin by reproducing the reported sleep and wake sequence with Forge open, then inspect the console behavior when generation is attempted afterward. The report names no source file or test; done means Forge continues generating after wake without freezing the computer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning, operating-systems, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100