-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexError: list index out of range
in parse_tflite_graph
#2055
Comments
I'm guessing that No idea what's going on there. |
Yes, your guess is correct. When tf2onnx is processing one node TFL_ASSIGN_VARIABLE, the output of this node is None which is not expected. How did you generate this tflite file? By Tensorflow? If so, how about filing an issue in TensorFlow repo to check if such tflite file is correct, based on the origin tf model? |
Hey @fatcat-z, thanks for your reply! The Google Lyra team says that are unable to release their original TF models, but they did try doing a conversion straight to ONNX, and it apparently worked: Unfortunately they aren't able to release those ONNX models yet. I'm wondering whether there are any other paths toward getting an ONNX model from this tflite model, given these unusual circumstances? Ah, so I stopped half-way through writing this comment and tried hackily patching tf2onnx to avoid this problem, but looks like it's blocked on another problem anyway: So maybe the best option is to wait for the Lyra devs to release the "directly converted" ONNX files? |
Thank you for your detailed descriptions and efforts. At this moment, probably the best option is as you suggested to wait for that released ONNX file. We will take a quick look at these 2 unsupported ops to see if we can figure it out soon so you can move forward. |
Close this since it was resolved in issue #2059 . |
Describe the bug
As shown in this Colab notebook, I get the following error when trying to convert this tflite file to ONNX:
Urgency
No hard deadlines. It is blocking conversion of Google's newly open-sourced Lyra v2 to ONNX so that it can work in web browsers.
System information
To Reproduce
https://colab.research.google.com/gist/josephrocca/0581baa153235adf9a3e6560203edc80/lyra-v2-soundstream-tflite-to-onnx-conversion-error-indexerror-list-index-out-of-range.ipynb#scrollTo=_Our00mFGN_J
Additional Context
These issues appear to be related by the title, but looking into the specifics of the error message, I don't think they're related:
The text was updated successfully, but these errors were encountered: