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

Parse Nested Keras Network Configuration #39

Open
YuyaKobayashi opened this issue Jan 11, 2019 · 0 comments
Open

Parse Nested Keras Network Configuration #39

YuyaKobayashi opened this issue Jan 11, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@YuyaKobayashi
Copy link
Collaborator

Convertion of
DenseASPP_0_epoch.h5.zip
failed with the below error message.

INFO: Start parsing. Network type:KERAS
INFO: Parsing Keras network.
Traceback (most recent call last):
  File "../dv-sdk/tool/convertor.py", line 134, in <module>
    custom_layer, dim_override)
  File "/home/yuya.kobayashi/git_repo/dv-sdk/tool/cnn_convertor/cnn_parser.py", line 37, in parse_network
    parser_keras.parse_keras_network(network, network_data)
  File "/home/yuya.kobayashi/git_repo/dv-sdk/tool/cnn_convertor/parser_keras.py", line 601, in parse_keras_network
    parse_keras_network2(network, netdef, netweight, need_flip)
  File "/home/yuya.kobayashi/git_repo/dv-sdk/tool/cnn_convertor/parser_keras.py", line 444, in parse_keras_network2
    if is_channel_first:
UnboundLocalError: local variable 'is_channel_first' referenced before assignment

This is because config->layers in the network definetion JSON does not contain layer directly but contain Sequential object that contains layers.

@YuyaKobayashi YuyaKobayashi added the bug Something isn't working label Jan 11, 2019
@YuyaKobayashi YuyaKobayashi added enhancement New feature or request and removed bug Something isn't working labels Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant