Comments (7)
That's strange. I'm not getting any leaks. Task Manager's GPU memory usage says pretty much the same. I generated 10 batches with 4 images each, vram usage goes to 22.7 when images are generated then to about 11 i guess that's when GFPGAN is working, and then 10.6.
from stable-diffusion-webui.
I will add that I am on Linux (Nvidia official drivers), however I don't assume that to be the problem as Python & co. are platform agnostic.
Although official Linux instructions are not in the README, just following the python-specific steps should give the same outcome. The only difference I would imagine is not being able to use the .cmd .
The last message in issue #9 (after it was closed) also mentioned of the bug happening after the fix PR. I assume that they are not using Linux too, although I might be wrong and it is just a Linux specific issue.
My settings are vanilla, I've only changed the sliders provided in the text2img & img2txt panes.
I've attached a screenshot of the output of nvtop while generating images.
Green line is compute utilization %, orange is VRAM%.
Edit: I have tested GFPGAN functionality on that certain other UI fork, and it does not leak VRAM, which eases the fear that it's my shoddy installation of Linux.
from stable-diffusion-webui.
I'm also on Linux (RTX 2070 8GB) and I have a similar issue, tested on a batch count of 9.
Without GFPGAN VRAM usage is stable, but with GFPGAN it keeps growing.
I don't get an OOM but the generation is stuck after the 6th image and VRAM is not cleared.
I'll try to do more tests to figure out what's going on.
For the record I launch with theses params to prevent OOMs --lowvram --always-batch-cond-uncond
and I use my own fork (very slightly modified, I'll try with the original webui).
Edit: With the unmodified webui.py I get an OOM after the 6th image with GFPGAN.
Edit 2: Without --always-batch-cond-uncond
it uses a lot less VRAM but I still get an OOM after few images with increased resolution. I'll try --medvram
and without options.
Edit 3: Same issue with --medvram
and no options, I'll try on Windows tomorrow if I can.
from stable-diffusion-webui.
Let's see if this changes anything.
from stable-diffusion-webui.
You nailed it!
The VRAM usage is now stable and no more OOMs, thanks !
from stable-diffusion-webui.
This is upsetting. This means GFPGAN leaks memory if you create one, dump it, and then create another. I was hoping to not keep it in memory for low VRAM users.
from stable-diffusion-webui.
Just tested it; it's stable for me too. Thanks for the the fix :)
from stable-diffusion-webui.
Related Issues (20)
- [Feature Request]: No Image data blocks found HOT 1
- API calls in version 1.8 cannot pass input images in the format of http://, https://[Bug]:
- The image generated by the paint upload has a black background HOT 6
- [Bug]: Installing controlnet extension breaks WebUI HOT 25
- EinopsError: Error while processing rearrange-reduction pattern while using AnimateDiff
- [Bug]: 'no module 'xformers'. Processing without' on fresh installation of v1.9.0 HOT 5
- [Bug]: TimeoutError/error code: 2/Couldn't install torch HOT 9
- [Bug]: ControlNet breaks my WebUI HOT 10
- [Bug]: clone main, but webui can't complete installation: error pydantic HOT 1
- [Bug]: No visible mov2mov and others features like reactor HOT 2
- Fix: Control-Net; ImportError; Undefined; pydantic; insightface
- [Bug]: Linux: SDXL-based models fail to load, PyTorch error HOT 4
- [Bug]: Unable to select a checkpoint model when starting from a clean or existing installation. HOT 6
- [Dev PSA] PyCharm >= 2023.3.3 Debugger possible issue
- [Bug]: NameError loading styles.py (initializing the StyleDatabase) on dev branch HOT 2
- [Bug]: Any error happening after 'commit hash : XXXX' is not related to the launcher. Please report them on Automatic1111's github instead : HOT 1
- [Feature Request]: Add a scheduler pattern to the filename save options now that it has been removed from the sampler in 1.9.0 HOT 1
- [Bug]: AttributeError: 'NoneType' object has no attribute 'lowvram' HOT 3
- [Bug]: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
- [Bug]: Dev Branch 'KDiffusionSampler' object has no attribute 'trajectory_enable' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-diffusion-webui.