Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing converter for LRN #62

Closed
igormp opened this issue Apr 29, 2020 · 4 comments
Closed

Missing converter for LRN #62

igormp opened this issue Apr 29, 2020 · 4 comments

Comments

@igormp
Copy link

igormp commented Apr 29, 2020

After trying to convert the AlexNet model from onnx (found here), I got the following error:

KeyError                                  Traceback (most recent call last)
 in 
      1 onnx_model = onnx.load('bvlcalexnet-9.onnx')
      2 print("onnx model loaded")
----> 3 model = onnx_to_keras(onnx_model, ['data_0'])

~/.local/lib/python3.8/site-packages/onnx2keras/converter.py in onnx_to_keras(onnx_model, input_names, input_shapes, name_policy, verbose, change_ordering)
    172             logger.debug('... found all, continue')
    173 
--> 174         AVAILABLE_CONVERTERS[node_type](
    175             node,
    176             node_params,

KeyError: 'LRN'

Any ideas on how to get this to work?

@vibhuagrawal14
Copy link

I'm getting the same error. Were you able to get this to work somehow?

@gmalivenko
Copy link
Owner

Hello @igormp , @vibhuagrawal14 .
I will add support of this layer in the nearest future.

@gmalivenko
Copy link
Owner

I added experimental support of LRN.

@igormp during testing the model bvlcalexnet-9.onnx was converted with error value: 0.0005662161, please update onnx2keras package and try to convert the model again.

@igormp
Copy link
Author

igormp commented Jun 1, 2020

Tried it out quickly and everything seems to be ok. Thanks for the fix!

@igormp igormp closed this as completed Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants