NVIDIA / Stable-Diffusion-WebUI-TensorRT

TensorRT Extension for Stable Diffusion Web UI
MIT License
1.92k stars 146 forks source link

v0.2.1 Linux install not working - Windows working fine #295

Open FurkanGozukara opened 8 months ago

FurkanGozukara commented 8 months ago

I did a fresh install on Windows and Ubuntu

Windows works fine - that annoying no dll found error returned back but can be fixed

However on Ubuntu, waiting forever. I mean literally forever and no progress

Did a fresh install there as well

Python 3.10.13

Anyone tried newest version?

here is the pip freeze

accelerate==0.21.0
aenum==3.1.15
aiofiles==23.2.1
aiohttp==3.9.3
aiosignal==1.3.1
altair==5.2.0
antlr4-python3-runtime==4.9.3
anyio==3.7.1
async-timeout==4.0.3
attrs==23.2.0
blendmodes==2022
certifi==2024.2.2
charset-normalizer==3.3.2
clean-fid==0.1.35
click==8.1.7
clip==1.0
contourpy==1.2.0
cycler==0.12.1
deprecation==2.1.0
einops==0.4.1
exceptiongroup==1.2.0
facexlib==0.3.0
fastapi==0.94.0
ffmpy==0.3.2
filelock==3.13.1
filterpy==1.4.5
fonttools==4.49.0
frozenlist==1.4.1
fsspec==2024.2.0
ftfy==6.1.3
gitdb==4.0.11
GitPython==3.1.32
gradio==3.41.2
gradio_client==0.5.0
h11==0.12.0
httpcore==0.15.0
httpx==0.24.1
huggingface-hub==0.21.4
idna==3.6
imageio==2.34.0
importlib_metadata==7.0.2
importlib_resources==6.3.0
inflection==0.5.1
Jinja2==3.1.3
jsonmerge==1.8.0
jsonschema==4.21.1
jsonschema-specifications==2023.12.1
kiwisolver==1.4.5
kornia==0.6.7
lark==1.1.2
lazy_loader==0.3
lightning-utilities==0.10.1
llvmlite==0.42.0
MarkupSafe==2.1.5
matplotlib==3.8.3
mpmath==1.3.0
multidict==6.0.5
networkx==3.2.1
numba==0.59.0
numpy==1.26.2
nvidia-cublas-cu11==11.11.3.6
nvidia-cuda-nvrtc-cu11==11.8.89
nvidia-cuda-runtime-cu11==11.8.89
nvidia-cudnn-cu11==8.9.4.25
omegaconf==2.2.3
open-clip-torch==2.20.0
opencv-python==4.9.0.80
orjson==3.9.15
packaging==24.0
pandas==2.2.1
piexif==1.1.3
Pillow==9.5.0
protobuf==3.20.0
psutil==5.9.5
pydantic==1.10.14
pydub==0.25.1
pyparsing==3.1.2
python-dateutil==2.9.0.post0
python-multipart==0.0.9
pytorch-lightning==1.9.4
pytz==2024.1
PyWavelets==1.5.0
PyYAML==6.0.1
referencing==0.33.0
regex==2023.12.25
requests==2.31.0
resize-right==0.0.2
rpds-py==0.18.0
safetensors==0.4.2
scikit-image==0.21.0
scipy==1.12.0
semantic-version==2.10.0
sentencepiece==0.2.0
six==1.16.0
smmap==5.0.1
sniffio==1.3.1
spandrel==0.1.6
starlette==0.26.1
sympy==1.12
tensorrt==9.0.1.post11.dev4
tensorrt-bindings==9.0.1.post11.dev4
tensorrt-libs==9.0.1.post11.dev4
tifffile==2024.2.12
timm==0.9.16
tokenizers==0.13.3
tomesd==0.1.3
toolz==0.12.1
torch==2.1.2+cu121
torchdiffeq==0.2.3
torchmetrics==1.3.1
torchsde==0.2.6
torchvision==0.16.2+cu121
tqdm==4.66.2
trampoline==0.1.2
transformers==4.30.2
triton==2.1.0
typing_extensions==4.10.0
tzdata==2024.1
urllib3==2.2.1
uvicorn==0.28.0
wcwidth==0.2.13
websockets==11.0.3
yarl==1.9.4
zipp==3.18.0
Rabcor commented 7 months ago

Yeah, same issue on arcch, it doesn't just 'not work' it literally breaks A1111's webui on linux, you have to uninstall it after any attempt to install it for the webui to run again, it's pretty extreme. It was also like this when I was trying to use it many months ago.

philiprollins commented 6 months ago

The extension is trying to use launch.py but seems to be hiccuping somewhere, I run it manually in the venv.

Change the stable-diffusion-webui/extensions/Stable-Diffusion-WebUI-TensorRT/install.py imports to be as follows

import sys
sys.path.append("/PATH_TO_SD/stable-diffusion-webui")
import launch

...rest of install.py...

Replace PATH_TO_SD with your path of course, then run ./../venv/bin/python3.10 install.py from within the Stable-Diffusion-WebUI-TensorRT folder