Comments (10)
Manually install all pip packages mentioned in the install.py of the trt plugin in your python virtual environment, and then comment out the part about pip uninstalling cudnn in install.py before starting webui.sh. The above method works for me.
from stable-diffusion-webui-tensorrt.
Manually install all pip packages mentioned in the install.py of the trt plugin in your python virtual environment, and then comment out the part about pip uninstalling cudnn in install.py before starting webui.sh. The above method works for me.
So do you mean I should install this extension manually by doing a git clone of this repository in the extensions folder ? then manually install the dependencies, then comment pip uninstalling cudnn in install.py that is located in the newly created folder inside the extensions folder ? I tried that but the webui never started, and stops after basic initialization, it doesn't even start the gradio server interface
I did the extension route, then after a few minutes, killed the webui.sh, followed the instructions and reran the webui.sh. Or you can do the get clone
command in the extension folder to save time. Got it working!
from stable-diffusion-webui-tensorrt.
Manually install all pip packages mentioned in the install.py of the trt plugin in your python virtual environment, and then comment out the part about pip uninstalling cudnn in install.py before starting webui.sh. The above method works for me.
So do you mean I should install this extension manually by doing a git clone of this repository in the extensions folder ? then manually install the dependencies, then comment pip uninstalling cudnn in install.py that is located in the newly created folder inside the extensions folder ? I tried that but the webui never started, and stops after basic initialization, it doesn't even start the gradio server interface
I did the extension route, then after a few minutes, killed the webui.sh, followed the instructions and reran the webui.sh. Or you can do the
get clone
command in the extension folder to save time. Got it working!
What @sup2069 is saying is to go into the extensions
folder and run the git clone
on the repo. Then comment out the problem code. I think the problem comes form Nvidia making this extension for Windos users. So, when you run webui.sh it tries running some .exe
commands that work natively on Windows but when using WSL or Linux it just causes problems. I'm by no means a pro, and that this might not actuly be the resons why it's not working without some modifications, but this is my leading theory.
My fix
When you Open the install.py
with a Text editor like VS Code
or Notepad
you'll find on line (on line 34) that says "if launch.is_installed("nvidia-cudnn-cu11"):"
this the part @sup2069 wants you to comment out (Place a # in front to comment it out). I had some other problems after I got it fully loaded, and brought up the web environment.
I ran into a new error where when I tried to make some TRTs it started saying that some of the packages were not installed and would soft fail. I tried to fix this by going back into the install.py
and forcing it to install some of the packages. As of now, I can not make any TRTs. I tried several fixes here on GitHub, but after several hours I have returned empty-handed.
I'm running this on Ubuntu in WSL, using Forge (RIP).
from stable-diffusion-webui-tensorrt.
same on ubuntu it stucks forever
from stable-diffusion-webui-tensorrt.
same
from stable-diffusion-webui-tensorrt.
I am running into the same issue but on Debian Sid:
RTX 3090
A1111 version 1.9.0-RC-7-gradadb4e3
python: 3.10.10
torch 2.3.0+cu121
xformers: 0.0.26.post1
gradio: 3.41.2
64GB Ram
12th Gen Intel(R) Core(TM) i9-12900K
from stable-diffusion-webui-tensorrt.
I solved this problem and pubislihed installers for runpod and massed compute (Ubuntu)
Runpod installer : https://www.patreon.com/posts/1-click-for-sd-86438018
Massed compute installer (Ubuntu Linux) :
https://www.patreon.com/posts/massed-compute-105735932
It is a shame that 2 trillion dollar company doesn't care
Also my installers install a fork that supports Lora perfectly for TensorRT
from stable-diffusion-webui-tensorrt.
Too bad your stuff is behind a paywall.. it's not very open source friendly imho
from stable-diffusion-webui-tensorrt.
Manually install all pip packages mentioned in the install.py of the trt plugin in your python virtual environment, and then comment out the part about pip uninstalling cudnn in install.py before starting webui.sh. The above method works for me.
So do you mean I should install this extension manually by doing a git clone of this repository in the extensions folder ? then manually install the dependencies, then comment pip uninstalling cudnn in install.py that is located in the newly created folder inside the extensions folder ? I tried that but the webui never started, and stops after basic initialization, it doesn't even start the gradio server interface
from stable-diffusion-webui-tensorrt.
I found this post that helped me fix the issue.
#204 (comment)
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 1
- 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 find Loras from subdirectories HOT 1
- 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)
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.