Git Product home page Git Product logo

Comments (12)

contentis avatar contentis commented on July 30, 2024

This sounds like torch is running out of system memory. How much RAM do you have installed in your system? Can you retry with as few apps running as possible?

from stable-diffusion-webui-tensorrt.

KoyuKansou avatar KoyuKansou commented on July 30, 2024

This sounds like torch is running out of system memory. How much RAM do you have installed in your system? Can you retry with as few apps running as possible?

i have 16gb ddr5 and tried to run SD only, still had the same issue

from stable-diffusion-webui-tensorrt.

contentis avatar contentis commented on July 30, 2024

Can you open task manager and monitor the memory use? At this point, this is my best guess..

from stable-diffusion-webui-tensorrt.

KoyuKansou avatar KoyuKansou commented on July 30, 2024

Can you open task manager and monitor the memory use? At this point, this is my best guess..

yea... it exceeded 95% for few secs and then drop down
but now it crash instead
could be the onnx tho idk
image

from stable-diffusion-webui-tensorrt.

JTM2k avatar JTM2k commented on July 30, 2024

yeah i have/has the same issue, 32GB DDR4 8GB VRAM,

for some reason after creating for than 1 engine with "Export to TRT" python just wanted 25GB RAM allocated, after killing the "python.exe" which alone had 10GB of the RAM, restarting the webui and it worked

from stable-diffusion-webui-tensorrt.

KoyuKansou avatar KoyuKansou commented on July 30, 2024

so wondering if there's anyway to hard reduce the ram usage with the draw back of slower engine building?

from stable-diffusion-webui-tensorrt.

contentis avatar contentis commented on July 30, 2024

You could try setting diable_optimizations = True to reduce the VRAM consumption here: https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT/blob/main/exporter.py#L99

from stable-diffusion-webui-tensorrt.

KoyuKansou avatar KoyuKansou commented on July 30, 2024

You could try setting diable_optimizations = True to reduce the VRAM consumption here: https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT/blob/main/exporter.py#L99

image huh?

from stable-diffusion-webui-tensorrt.

contentis avatar contentis commented on July 30, 2024

Do not modify the if statement and just add a line above it as shown here:

diable_optimizations = True
if diable_optimizations:
 .....

from stable-diffusion-webui-tensorrt.

KoyuKansou avatar KoyuKansou commented on July 30, 2024

Do not modify the if statement and just add a line above it as shown here:

diable_optimizations = True
if diable_optimizations:
 .....

image
well thank you it actually work now~
is it possible to document this just in case someone gets the same issue?

from stable-diffusion-webui-tensorrt.

contentis avatar contentis commented on July 30, 2024

There is a chance this breaks things down the line when using LoRA. I'd need to test that first before recommending it.

If this doesn't break functionality, I could ad an "lowram" option in the UI.

from stable-diffusion-webui-tensorrt.

Foul-Tarnished avatar Foul-Tarnished commented on July 30, 2024

16gb vram and 16gb ram, ram was the issue

simply adding 32gb of pagefile/swap fixed the issue though

from stable-diffusion-webui-tensorrt.

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.