keras-onnx
keras-onnx copied to clipboard
Convert tf.keras/Keras models to ONNX
Hi, I convert my keras model to onnx using keras2onnx. However, when I try to convert the onnx file to TensorRT file, I encountered the following warnning "Your ONNX model...
Hi, I have a binary classification model with this architecture: Built with tf.keras using tensorflow version 2.3.0 ```python def create_model_architecture(input_dimension, layers=[96], act='relu', dr=[0.10], batch_size_value=None): model = Sequential() model.add(Input(shape=(input_dimension,), batch_size=batch_size_value)) model.add(Dense(layers[0],...
I am having an issue when trying to convert my model to onnx. I see this error: `'KerasTensor' object has no attribute 'graph'` while trying to run this: `onnx_model =...
while loading a keras model with multiple lambda layers getting the following error Error in Node:mean_lambda_layer/Mean:0_unsqueeze : Node (mean_lambda_layer/Mean:0_unsqueeze) has input size 1 not in range [min=2, max=2]. The model...
Hi, I am trying to convert autokeras model to onnx, i get error ``` from autokeras import StructuredDataClassifier model = StructuredDataClassifier(max_trials=100) model.fit(x=X_train, y=y_train, validation_data=(X_valid, y_valid), epochs=1000, verbose=1) autoKeras_model = model.export_model()...
Dear maintainers When attempting to convert a model containing a `Dense` layer with a `hard_sigmoid` activation I stumbled upon the following error: `ValueError: Failed to create ONNX node. Undefined attribute...
The function _keras2onnx.convert_keras_ fails for models with >2GB tensors with error: ``` ValueError: Cannot create a tensor proto whose content is larger than 2GB. ``` ### Motivation I would like...
I'm trying to convert a MaskRCNN model (.h5) to .onnx with keras2onnx. **Execution code** `keras2onnx.convert_keras(model.keras_model, "test1.onnx", target_opset=11)` **Error message** `RuntimeError: Unexpected error on find the converter for op ` MaskRCNN's...
Hi, I have my my Mask-RCNN model weights (h5) and its based on ResNet101. I am unable to load my weights before converting them to ONNX. The example you provide,...
Dear keras2onnx mantainers, I am trying to convert a keras model to onnx format using your library, but I am having trouble. I first tried with my model, then I...