keras-onnx
keras-onnx copied to clipboard
Convert tf.keras/Keras models to ONNX
I have a keras model converted to .onnx however when I attempt to insert it into Unity, it does not work. Any advice? I've tried keras2onnx and onnxmltools but alas...
 This is the comparision of raw VGG16 keras model inference time and the same model on onnx runtime. Why don't I see any performance advantages? There is extremely small...
During the conversion, LSTM bias is of dim [8] will be converted to [1, 16]. In this case wb [1,8] and rb[1,8] are initialized to zeros (if B is not...
Trying to use erosion_2d function of Tensorflow (TF 2.3.0) linked to Dilation2D operation (not implemented in onnx), and I got this error which obviously makes the conversion impossible. Is there...
Converting a tf-keras 2.2.0/2.3.0 model with multiple output tensors to onnx, I faced the following error: ``` ... in extract_outputs_from_inbound_nodes op_name = tsname_to_node(ts_.name) AttributeError: 'list' object has no attribute 'name'...
Hello everyone, I am trying to export a Keras model that has a SimpleRNN layer with stateful=True. This ensures that the last state is kept between subsequent samples. However, when...
Dear Developers, In https://github.com/Debottam/onnxExamples/blob/master/keras2onnx_Issue.ipynb I am getting an error from ``` def streched_tanh(x): beta = 5 return beta*K.tanh(x) ``` It will be great if you guys have a look at...
When trying to a LSTM network I am getting the following error with keras2onnx 1.6.5: --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) in ----> 1 onnx_model = keras2onnx.convert_keras(model, model.name) ~\Anaconda3\lib\site-packages\keras2onnx\main.py...
This is the initial step of the architecture i am using as mentioned in keras2onnx i have put input_shape for the conversion: class AlexNet(Sequential): def __init__(self, input_shape, num_classes): super().__init__() self.add(Conv2D(96,...
``` from tensorflow.keras import backend as K from tensorflow.keras.models import model_from_json import tensorflow as tf import keras2onnx sess = tf.Session() K.set_session(sess) K.set_learning_phase(0) json_file = open('ex_model.json', 'r') loaded_model_json = json_file.read() json_file.close()...