keras-onnx
keras-onnx copied to clipboard
Convert tf.keras/Keras models to ONNX
This logic seems to be reversed and is preventing converting TensorFlow 2.3 models. See [#659](https://github.com/onnx/keras-onnx/issues/659)
Tensorflow version: 2.2 Keras onnx version: 1.7.0 Description: Slicing does not produce the same shape output after conversion if a variable is used as index. code snippet ``` input =...
Hi, I am trying to convert a YOLO keras model (created with: [TensorFlow-2.x-YOLOv3](https://github.com/pythonlessons/TensorFlow-2.x-YOLOv3)) to ONNX using the following code: ```python yolo = Load_Yolo_model() # TensorFlow-2.x-YOLOv3 specific onnx_model = keras2onnx.convert_keras(yolo, yolo.name)...
Here is the [gist](https://colab.research.google.com/gist/Silb78dg/d578160ba15531bd4d04985422110280/feature_columns.ipynb) I'm following this tutorial [Feature_columns](https://www.tensorflow.org/tutorials/structured_data/feature_columns). At the end of the notebook: 1. Save the model 2. Install keras2onnx 3. Reload the model and convert It failed...
Dear experts, Could you have a look to this keras model which giving following error while converting to onnx. GitHub link: https://github.com/Debottam/MachinLearningEx/blob/master/deboDeep.ipynb ``` ValueError:You passed in an iterable attribute but...
Issue: When trying to convert the attached model using the following script import tensorflow as tf import onnx import keras2onnx keras_model = tf.keras.models.load_model(mobilenet_ssd.h5, compile=False) model_proto = keras2onnx.convert_keras(keras_model, target_opset=11) with open(outfile,...
While converting inception v3 model from onnx to keras, I got the following errors: File "/home/ubuntu/anaconda3/envs/pyprofiling/lib/python3.6/site-packages/onnx2keras/reshape_layers.py", line 87, in convert_gather raise AttributeError('Can\'t gather from tf tensor.') AttributeError: Can't gather from...
Hi, I'm trying your library because I need to convert a keras model to onnx. When I run a script using the main function, it shows the next error: `ValueError:...
I am trying to convert a Keras model developed with Tensorflow 2.3.1. When converting the model using `onnx_model = keras2onnx.convert_keras(model, 'fasttext-onnx', debug_mode=1)` I get the error in the title. Following...
I am trying to convert the YOLOv3 model from https://github.com/qqwweee/keras-yolo3 to ONNX. The README on https://github.com/onnx/keras-onnx/tree/master/applications/yolov3 states the following: > The original keras model was coming from: https://github.com/qqwweee/keras-yolo3, clone the...