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 MarcBS, I am trying to convert this model, at first I got error that no module fft found for from theano.tensor.fft import ifft in backend/theano_backend.py even though import theano.tensor was working, So I commented this line thinking it was of no use (edge of being novice -- Itried adding path and installing theano apart from keras(origional) etc)
After that following error came up while I do not think there is any shape argument required (please note that .caffemodel file is also named 'keras' only )
qayyum@qayyum:~/keras/keras/caffe$ python caffe2keras.py -load_path '/home/qayyum/colorization/' -prototxt 'colorization_deploy_v2.prototxt' -caffemodel 'keras' Using Theano backend. Converting model... CREATING MODEL 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 "/home/qayyum/keras/keras/caffe/convert.py", line 43, in caffe_to_keras debug) File "/home/qayyum/keras/keras/caffe/convert.py", line 149, in create_model net_node[layer_nb] = Input(shape=dim, name=name) File "/home/qayyum/keras/keras/engine/topology.py", line 1083, in Input 'shapedoes not include the batch ' AssertionError: Please provide to Input either ashapeor abatch_shapeargument. Note thatshapedoes not include the batch dimension.
The text was updated successfully, but these errors were encountered:
Referring to the theano.tensor.fft module, it was included in version 0.9.X of Theano. Please make sure you are using an updated version of Theano (see bleeding edge installation instructions here).
Regarding the other error, @MarcBS will probably give you a better answer than me :)
Hi MarcBS, I am trying to convert this model, at first I got error that
no module fft found
forfrom theano.tensor.fft import ifft
inbackend/theano_backend.py
even thoughimport theano.tensor
was working, So I commented this line thinking it was of no use (edge of being novice -- Itried adding path and installing theano apart from keras(origional) etc)After that following error came up while I do not think there is any shape argument required (please note that .caffemodel file is also named 'keras' only )
qayyum@qayyum:~/keras/keras/caffe$ python caffe2keras.py -load_path '/home/qayyum/colorization/' -prototxt 'colorization_deploy_v2.prototxt' -caffemodel 'keras' Using Theano backend. Converting model... CREATING MODEL 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 "/home/qayyum/keras/keras/caffe/convert.py", line 43, in caffe_to_keras debug) File "/home/qayyum/keras/keras/caffe/convert.py", line 149, in create_model net_node[layer_nb] = Input(shape=dim, name=name) File "/home/qayyum/keras/keras/engine/topology.py", line 1083, in Input '
shapedoes not include the batch ' AssertionError: Please provide to Input either a
shapeor a
batch_shapeargument. Note that
shapedoes not include the batch dimension.
The text was updated successfully, but these errors were encountered: