Comments (1)
When this occurs on Windows, it appears to cause a crash rather than noise:
[2023-12-23 20:16:06,568] ERROR: onnx-web worker: directml MainThread onnx_web.chain.pipeline: error while running stage pipeline, 1 retries left
Traceback (most recent call last):
File "onnx_web\chain\pipeline.py", line 227, in __call__
File "onnx_web\chain\source_txt2img.py", line 144, in run
File "diffusers\pipelines\stable_diffusion\pipeline_onnx_stable_diffusion.py", line 433, in __call__
File "diffusers\pipelines\stable_diffusion\pipeline_onnx_stable_diffusion.py", line 433, in <listcomp>
File "onnx_web\diffusers\patches\vae.py", line 79, in __call__
File "diffusers\pipelines\onnx_utils.py", line 60, in __call__
File "onnxruntime\capi\onnxruntime_inference_collection.py", line 220, in run
onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Add node. Name:'/decoder/mid_block/attentions.0/Add_1' Status Message: D:\a\_work\1\s\onnxruntime\core\providers\dml\DmlExecutionProvider\src\MLOperatorAuthorImpl.cpp(2759)\onnxruntime_pybind11_state.pyd!00007FF863B5DDF2: (caller: 00007FF863B5DB05) Exception(4) tid(5d98) 80070057 The parameter is incorrect.
I believe this is the same issue, and the different error message is due to DirectML.
I've written a new SD converter that uses the same optimum.main_export call that the SDXL converter is using, which seems to work on most models. Currently testing on the models included in the pre-converted set:
- Cetus
- fails on both v4 and Whalefall
- Dreamshaper
- works on v8
- Elegant Entropy
- works on v1.4
- Faetastic
- fails on v2
- Juggernaut
- not setup yet, not tested
- ReV Animated
- works on v1.2.2-EOL
Based on the fact that some models fail to convert with both methods, it seems like there might be an issue with the model or somewhere upstream. All of the failing models (Cetus and Faetastic) convert correctly when using pipeline: txt2img-legacy
and ONNX_WEB_CONVERT_EXTRACT=TRUE
(which is the default again).
from onnx-web.
Related Issues (20)
- cannot use multiple wildcards in the same token
- torch 2.1.1 with ROCM 5.4.2 throws errors about missing MIopen.so
- blending images > 512px causes parts of the image to be repeated HOT 1
- generating multiple images with the same parameters in the same second confuses the web UI
- using the controlnet pipeline without a controlnet selected throws an error
- Documentation: setup-guide.md missing steps/information HOT 2
- grid mode images do not have metadata
- include correction and upscaling model hashes in metadata
- add support for 1x upscaling models
- add support for more ESRGAN models
- Windows launch scripts are not downloading LoRA networks
- v0.12.0 release checklist
- add horizontal UI layout for wide monitors
- add support for the horde-safety plugin
- read previous parameters from img2img and inpainting sources
- images are lost when using grid mode with batch size > 1
- drag and drop images and metadata files onto the web UI to load their parameters
- using multistep schedulers with panorama causes an error
- MIssing External Data File 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 onnx-web.