Coder Social home page Coder Social logo

Comments (7)

AUTOMATIC1111 avatar AUTOMATIC1111 commented on April 28, 2024

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.

hentailord85ez avatar hentailord85ez commented on April 28, 2024

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%.

2022-09-03_00-25

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.

orionaskatu avatar orionaskatu commented on April 28, 2024

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.

AUTOMATIC1111 avatar AUTOMATIC1111 commented on April 28, 2024

Let's see if this changes anything.

from stable-diffusion-webui.

orionaskatu avatar orionaskatu commented on April 28, 2024

You nailed it!
The VRAM usage is now stable and no more OOMs, thanks !
image

from stable-diffusion-webui.

AUTOMATIC1111 avatar AUTOMATIC1111 commented on April 28, 2024

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.

hentailord85ez avatar hentailord85ez commented on April 28, 2024

Just tested it; it's stable for me too. Thanks for the the fix :)

from stable-diffusion-webui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.