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
Hi, I tried running the caffe2keras.py file to convert sample caffe model in the project (bvlc_googlenet.caffemodel) using CNTK backend with python 2.7. I get the following error upon running it:
Traceback (most recent call last):
File "caffe2keras.py", line 50, in
main(arguments)
File "caffe2keras.py", line 36, in main
debug=args.debug)
File "C:\Users\rubee\PycharmProjects\kerastest\keras\caffe\convert.py", line 50, in caffe_to_keras
tuple(input_dim[1:]), debug)
File "C:\Users\rubee\PycharmProjects\kerastest\keras\caffe\convert.py", line 300, in create_model
net_node[layer_nb] = LRN2D(alpha=alpha, k=k, beta=beta, n=n, name=name)(input_layers)
File "C:\Users\rubee\PycharmProjects\kerastest\venv\lib\site-packages\keras\engine\base_layer.py", line 460, in call
output = self.call(inputs, **kwargs)
File "C:\Users\rubee\PycharmProjects\kerastest\keras\caffe\extra_layers.py", line 26, in call
b, ch, r, c = input_dim
ValueError: need more than 3 values to unpack
According to this my input_dim array should have 4 dimensions. But it only has 3 dimensions according to the shape input that is (3,500,500). Can you kindly help me out what is wrong over here and what should be the 4th dimension.
Any help in this regard will be highly appreciated.
Looking forward to hear from you.
Regards,
Rabeea
The text was updated successfully, but these errors were encountered:
Hi, I tried running the caffe2keras.py file to convert sample caffe model in the project (bvlc_googlenet.caffemodel) using CNTK backend with python 2.7. I get the following error upon running it:
Traceback (most recent call last):
File "caffe2keras.py", line 50, in
main(arguments)
File "caffe2keras.py", line 36, in main
debug=args.debug)
File "C:\Users\rubee\PycharmProjects\kerastest\keras\caffe\convert.py", line 50, in caffe_to_keras
tuple(input_dim[1:]), debug)
File "C:\Users\rubee\PycharmProjects\kerastest\keras\caffe\convert.py", line 300, in create_model
net_node[layer_nb] = LRN2D(alpha=alpha, k=k, beta=beta, n=n, name=name)(input_layers)
File "C:\Users\rubee\PycharmProjects\kerastest\venv\lib\site-packages\keras\engine\base_layer.py", line 460, in call
output = self.call(inputs, **kwargs)
File "C:\Users\rubee\PycharmProjects\kerastest\keras\caffe\extra_layers.py", line 26, in call
b, ch, r, c = input_dim
ValueError: need more than 3 values to unpack
According to this my input_dim array should have 4 dimensions. But it only has 3 dimensions according to the shape input that is (3,500,500). Can you kindly help me out what is wrong over here and what should be the 4th dimension.
Any help in this regard will be highly appreciated.
Looking forward to hear from you.
Regards,
Rabeea
The text was updated successfully, but these errors were encountered: