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

Problem in converting V2 models #24

Open
divamgupta opened this issue Dec 25, 2016 · 0 comments
Open

Problem in converting V2 models #24

divamgupta opened this issue Dec 25, 2016 · 0 comments

Comments

@divamgupta
Copy link

I was trying to convert the following model.

https://github.com/yjxiong/caffe/tree/action_recog/models/action_recognition

Both these models are working fine with the main and latest version of caffe via python interface.

I got the following error:


LOADING WEIGHTS
Traceback (most recent call last):
  File "caffe2keras.py", line 45, in <module>
    main(args)
  File "caffe2keras.py", line 34, in main
    model = convert.caffe_to_keras(args.load_path+'/'+args.prototxt, args.load_path+'/'+args.caffemodel, debug=args.debug)
  File "/usr/local/lib/python2.7/dist-packages/Keras-1.2.0-py2.7.egg/keras/caffe/convert.py", line 62, in caffe_to_keras
    weights = convert_weights(param_layers, v, debug)
  File "/usr/local/lib/python2.7/dist-packages/Keras-1.2.0-py2.7.egg/keras/caffe/convert.py", line 395, in convert_weights
    nb_filter = int(blobs[0].shape.dim[0])
  File "/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/containers.py", line 64, in __getitem__
    return self._values[key]
IndexError: list index out of range

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

1 participant