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

Error when converting places205VGG to keras #29

Open
nabilasan opened this issue Mar 7, 2017 · 0 comments
Open

Error when converting places205VGG to keras #29

nabilasan opened this issue Mar 7, 2017 · 0 comments

Comments

@nabilasan
Copy link

nabilasan commented Mar 7, 2017

Hello everybody,

I would like to convert Places250CNN and hybridCNN (http://places.csail.mit.edu/downloadCNN.html) to keras model but i found this error. Can you help me please.

====================
Total params: 135,063,501
Trainable params: 135,063,501
Non-trainable params: 0


LOADING WEIGHTS
Traceback (most recent call last):
File "caffe2keras.py", line 43, in
main(args)
File "caffe2keras.py", line 32, in main
model = convert.caffe_to_keras(args.load_path+'/'+args.prototxt, args.load_path+'/'+args.caffemodel, debug=args.debug)
File "/home/nabila/keras/keras/caffe/convert.py", line 64, in caffe_to_keras
load_weights(model, weights)
File "/home/nabila/keras/keras/caffe/convert.py", line 455, in load_weights
model.get_layer(layer.name).set_weights(weights[layer.name])
File "/home/nabila/keras/keras/engine/topology.py", line 966, in set_weights
str(weights)[:50] + '...')
ValueError: You called set_weights(weights) on layer "conv1_1" with a weight list of length 2, but the layer was expecting 0 weights. Provided weights: [array([[[[ -6.61635473e-02, -6.69440255e-02, -2...

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