You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to convert my tfjs graph model to keras. For this, I converted my model tfjs in onnx using the "tf2onnx" git.
And now, I need to use this git (.onnx to .h5).
But here, the error, I am currently facing:
Here my code I'm using:
import onnx
from onnx2keras import onnx_to_keras
onnx_model = onnx.load('model.onnx')
input_all = [node.name for node in onnx_model.graph.input] #get the name of my inputs
k_model = onnx_to_keras(onnx_model, input_all)
Can someone have an idea on how can I resolve this?
Thank you!
The text was updated successfully, but these errors were encountered:
Setting the name_policy was crucial to get it working. Might be that you want to do something similar, but I would try printing the node names to see if you are able to extract them. Might be that something went wrong during tfjs -> onnx conversion.
Hi everybody,
I'd like to convert my tfjs graph model to keras. For this, I converted my model tfjs in onnx using the "tf2onnx" git.
And now, I need to use this git (.onnx to .h5).
But here, the error, I am currently facing:
Here my code I'm using:
Can someone have an idea on how can I resolve this?
Thank you!
The text was updated successfully, but these errors were encountered: