Comments (14)
What model did you encounter this issue on?
from stable-diffusion-webui-tensorrt.
works with revanimated and .15 trained models, does not work with SDXL or variations atm
from stable-diffusion-webui-tensorrt.
What model did you encounter this issue on?
it's a random error, my guess is that it could be related to non-English characters in model filename or memory issues. Someone also suggested to disable xformers to reduce the chance of ONNX errors
from stable-diffusion-webui-tensorrt.
I don't know much about pytorch, etc, but I've consistently gotten this error when first trying to Export Engine:
ValueError: Unsupported ONNX opset version: 17
since trying to install the extension last night. Is this related to the model I'm using?
from stable-diffusion-webui-tensorrt.
Can you do a pip freeze and send your installed onnx version. My first assumption would be that you need to update onnx
from stable-diffusion-webui-tensorrt.
Thanks for the super quick response:
$ cat freeze.txt
absl-py==1.3.0
addict==2.4.0
aiohttp==3.8.3
aiosignal==1.2.0
antlr4-python3-runtime==4.9.3
anyio==3.6.2
async-timeout==4.0.2
attrs==22.1.0
basicsr==1.4.2
bcrypt==4.0.1
cachetools==5.2.0
certifi==2022.9.24
cffi==1.15.1
chardet==4.0.0
charset-normalizer==2.1.1
clean-fid==0.1.29
click==8.1.3
colorama==0.4.6
coloredlogs==15.0.1
contourpy==1.0.6
cryptography==38.0.3
cycler==0.11.0
diffusers==0.3.0
einops==0.4.1
facexlib==0.2.5
fairscale==0.4.4
fastapi==0.86.0
ffmpy==0.3.0
filelock==3.8.0
filterpy==1.4.5
flatbuffers==22.10.26
font-roboto==0.0.1
fonts==0.0.3
fonttools==4.38.0
frozenlist==1.3.1
fsspec==2022.10.0
future==0.18.2
gfpgan==1.3.8
gitdb==4.0.9
GitPython==3.1.27
google-auth==2.14.0
google-auth-oauthlib==0.4.6
gradio==3.9
grpcio==1.50.0
h11==0.12.0
httpcore==0.15.0
httpx==0.23.0
huggingface-hub==0.10.1
humanfriendly==10.0
idna==2.10
imageio==2.22.3
importlib-metadata==5.0.0
inflection==0.5.1
invisible-watermark==0.1.5
Jinja2==3.1.2
jsonmerge==1.8.0
jsonschema==4.17.0
kiwisolver==1.4.4
kornia==0.6.7
lark==1.1.2
linkify-it-py==1.0.3
llvmlite==0.39.1
lmdb==1.3.0
Markdown==3.4.1
markdown-it-py==2.1.0
MarkupSafe==2.1.1
matplotlib==3.6.2
mdit-py-plugins==0.3.1
mdurl==0.1.2
mpmath==1.2.1
multidict==6.0.2
networkx==2.8.8
numba==0.56.4
numpy==1.23.3
nvidia-cublas-cu11==2022.4.8
nvidia-cublas-cu117==11.10.1.25
nvidia-cuda-nvrtc-cu11==2022.4.8
nvidia-cuda-nvrtc-cu117==11.7.50
nvidia-cuda-runtime-cu11==2022.4.25
nvidia-cuda-runtime-cu117==11.7.60
nvidia-pyindex==1.0.9
oauthlib==3.2.2
omegaconf==2.2.3
onnx==1.12.0
onnx-graphsurgeon==0.3.27
onnxruntime==1.13.1
opencv-python==4.6.0.66
orjson==3.8.1
packaging==21.3
pandas==1.5.1
paramiko==2.12.0
piexif==1.1.3
Pillow==9.2.0
protobuf==3.19.6
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.21
pycryptodome==3.15.0
pydantic==1.10.2
pyDeprecate==0.3.2
pydub==0.25.1
PyNaCl==1.5.0
pyparsing==3.0.9
pyreadline3==3.4.1
pyrsistent==0.19.2
python-dateutil==2.8.2
python-multipart==0.0.5
pytorch-lightning==1.7.7
pytz==2022.6
PyWavelets==1.4.1
PyYAML==6.0
realesrgan==0.3.0
regex==2022.10.31
requests==2.25.1
requests-oauthlib==1.3.1
resize-right==0.0.2
rfc3986==1.5.0
rsa==4.9
scikit-image==0.19.2
scipy==1.9.3
six==1.16.0
smmap==5.0.0
sniffio==1.3.0
starlette==0.20.4
sympy==1.11.1
tb-nightly==2.11.0a20221106
tensorboard==2.10.1
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorrt==9.0.1.post11.dev4
tensorrt-bindings==9.0.1.post11.dev4
tensorrt-libs==9.0.1.post11.dev4
tifffile==2022.10.10
timm==0.4.12
tokenizers==0.12.1
torch==1.13.0
torchdiffeq==0.2.3
torchmetrics==0.10.2
torchvision==0.14.0
tqdm==4.64.1
transformers==4.19.2
typing_extensions==4.4.0
uc-micro-py==1.0.1
urllib3==1.26.12
uvicorn==0.19.0
websockets==10.4
Werkzeug==2.2.2
yapf==0.32.0
yarl==1.8.1
zipp==3.10.0
from stable-diffusion-webui-tensorrt.
Could you try running pip install onnx --upgrade
from stable-diffusion-webui-tensorrt.
Seems it updated:
Successfully installed onnx-1.14.1 protobuf-4.24.4
I restarted a1111, but still get the same error though.
from stable-diffusion-webui-tensorrt.
What model are you using? I'm best guessing at this point, as this seems to be a torch onnx related issue.
from stable-diffusion-webui-tensorrt.
sd 1.5 (v1-5-pruned-emaonly.ckpt [cc6cb27103])
I appreciate the help so far... I'll keep poking around, don't want to waste your time. Thanks!
from stable-diffusion-webui-tensorrt.
I have the same model and it works fine
from stable-diffusion-webui-tensorrt.
Must be something I already had installed in the past mucking it up... I updated exporter.py to set opset=14 under export_onnx, and it works now.
from stable-diffusion-webui-tensorrt.
can always delete and start over or do a clean install of 1111 in another directory with just this extension
from stable-diffusion-webui-tensorrt.
Must be something I already had installed in the past mucking it up... I updated exporter.py to set opset=14 under export_onnx, and it works now.
What does it do ? For me it was already at 17, changing it to 14 didn't fix anything (not that I know what I'm doing)
from stable-diffusion-webui-tensorrt.
Related Issues (20)
- 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 12
- 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
- ValueError: __len__() should return >= 0
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.