Can you load onnx files with external dependency weight files? (DirectML problem) #14222
Unanswered
elephantpanda
asked this question in
Other Q&A
Replies: 2 comments 1 reply
-
onnx file are limited to 2Gb. It is a limitation of protobuf. Which version of onnxruntime are you using? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I updated this into an "issue". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I downloaded an Onnx which had external weight and bias files.
Can c# onnxruntime load them if I just load the onnx file like this:
InferenceSession("unet.onnx")
I tried it but I'm getting a
Exception(5) tid(24b4) 80070057 The parameter is incorrect.
BTW the one I'm trying to load is here:
https://huggingface.co/bes-dev/stable-diffusion-v1-4-onnx/tree/main
unet.tar.gz
(inside this tar file is an unet.onnx and lots of weights and bias files).
If it is not possible, is there a tool to combine all these files into a single onnx?
Beta Was this translation helpful? Give feedback.
All reactions