Comments (12)
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.
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.
Can you open task manager and monitor the memory use? At this point, this is my best guess..
from stable-diffusion-webui-tensorrt.
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
from stable-diffusion-webui-tensorrt.
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.
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.
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.
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](https://private-user-images.githubusercontent.com/127967206/276866700-2c3e6571-e518-496c-b2f4-a373b6ac1047.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExNzA4OTEsIm5iZiI6MTcyMTE3MDU5MSwicGF0aCI6Ii8xMjc5NjcyMDYvMjc2ODY2NzAwLTJjM2U2NTcxLWU1MTgtNDk2Yy1iMmY0LWEzNzNiNmFjMTA0Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxNlQyMjU2MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lOGE4MTU4NTkzOGZmZThkNWQ2ODNhNjE3MmFmYTlmMTYyMWQxNGM0MzA0NjZlMzJiOTc1MTA5NjU0MDE3MzNkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.3ELTk5Xht9_JHCcKWJPjCPn7Hdnhu7PfZg6rLpSw5WE)
from stable-diffusion-webui-tensorrt.
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.
Do not modify the if statement and just add a line above it as shown here:
diable_optimizations = True if diable_optimizations: .....
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.
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.
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)
- Does tensorRT support direct use of apis, and what are the parameters? HOT 1
- how to generate json config file in the LoRA tab. HOT 1
- [branch: Controlnet_V2] ONNX IR model version conflict, how do i downgrade?
- [E] 3: getPluginCreator could not find plugin: InstanceNormalization_TRT version: 1 when building engine with latest TRT_VERSION="10.0.0b6"
- No config file found for You can generate it in the LoRA tab. HOT 3
- Advise to add promt token check in warning report
- [Feature Request] Add a Command Line Interface for the exporter process.
- AttributeError: 'tensorrt_bindings.tensorrt.ICudaEngine' object has no attribute 'get_profile_shape' HOT 2
- How to process a batch of images with ControlNet TensorRT in img2img ?
- Latest version of automatic1111 wont start with this extension installed. HOT 2
- AttributeError: 'NoneType' object has no attribute 'device_memory' HOT 8
- Error Code 3: API Usage Error (Parameter check failed
- Export LoRA to onnx depending on cyberrealistic_v31 can't fit to v1-5-pruned-emaonly_cnet_1846e6c3c239531e.trt
- TensorRT doesn't install on fresh A1111 install on Ubuntu, stuck at install after copy/paste de git link HOT 10
- TensorRT doesn't find Loras from subdirectories HOT 2
- TensorTR extension is building engine with wrong parameters
- may a name mistake in beta version (utilities.py)
- Engines not loading with text size larger than 75 HOT 1
- SD3 TensoRRT (sd3-clip-t5xxlfp8) works perfectly but cannot get SDXL ... HOT 1
- ONNX Export Error: Tensors on Different Devices (CPU and CUDA) HOT 1
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-tensorrt.