File ".../PycharmProjects/ONNX/lanenet/onnx2Keras.py", line 6, in <module>
k_model = onnx_to_keras(onnx_model, ['lanenet/input_tensor'],name_policy='renumerate')
File "...\anaconda3\lib\site-packages\onnx2keras\converter.py", line 174, in onnx_to_keras
keras_names
File "...\tools\anaconda3\lib\site-packages\onnx2keras\convolution_layers.py", line 212, in convert_convtranspose
if params['group'] > 1:
KeyError: 'group'
I commented the line 213-214 to pass the if statement if params['group'] > 1: but the next error received is:
Traceback (most recent call last):
File ".../ONNX/lanenet/onnx2Keras.py", line 6, in <module>
k_model = onnx_to_keras(onnx_model, ['lanenet/input_tensor'],name_policy='renumerate')
File "...\anaconda3\lib\site-packages\onnx2keras\converter.py", line 174, in onnx_to_keras
keras_names
File "...\tools\anaconda3\lib\site-packages\onnx2keras\convolution_layers.py", line 237, in convert_convtranspose
input_0.set_shape(input_0._keras_shape)
AttributeError: 'Tensor' object has no attribute '_keras_shape'
I tried to convert the LaneNet-Lane-Detection model (https://github.com/MaybeShewill-CV/lanenet-lane-detection) from TensorFlow to ONNX and then to Keras.
But I received the following error:
Other details: I printed the value of params
In params I don't have
'group' , 'pads'
You can access the ONNX model here: https://drive.google.com/file/d/1RvCjc05T5kRoy6VOBS4o9vZV6hQkOOjl/view?usp=sharing
I commented the line 213-214 to pass the if statement
if params['group'] > 1:
but the next error received is: