You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
====================
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...
The text was updated successfully, but these errors were encountered:
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...The text was updated successfully, but these errors were encountered: