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 am trying to load caffe_weights .caffemodel file into keras. But getting some errors...
Converting model...
CREATING MODEL
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/rajeev/nabila/keras/keras/caffe/convert.py", line 43, in caffe_to_keras
debug)
File "/home/rajeev/nabila/keras/keras/caffe/convert.py", line 305, in create_model
raise RuntimeError('layer type', type_of_layer, 'used in this model is not currently supported')
RuntimeError: ('layer type', 'deconvolution', 'used in this model is not currently supported')
Is deconvulation layer is not supported till now??
Any help please.
Thanks in Advance.
The text was updated successfully, but these errors were encountered:
I've got the deconv layer working in a separate implementation and I'll be submitting a PR sometime in the next 3-4 days. I'm just ironing out some issues with input layers and the caffe crop layer conversion. So be sure to check back by the end of the week!
Okay quick update regarding this.. I had been working on a separate heavily modified implantation of Marc's repository so wasn't able to make any commits earlier. Now I've started integrating into the his original implementation. This is what I got-
Create_model is able to handle deconv and the weird caffe crop layer.
Input_dim was coming in as an empty tuple to I modified the implementation to take the input dimensions from the first data layer.
I'm able to copy over weights.
I'm able to convert a fully convolutional neutral network built for semantic segmentation (voc-fcn8s) from shelhammers repo and run an inference on it.
The output is a little different from the standard caffe output. Still working on it :P
EDIT. I'll add a sample output to this post in a while.
Sorry for the delay guys :P
HI, I am trying to load caffe_weights .caffemodel file into keras. But getting some errors...
Converting model...
CREATING MODEL
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/rajeev/nabila/keras/keras/caffe/convert.py", line 43, in caffe_to_keras
debug)
File "/home/rajeev/nabila/keras/keras/caffe/convert.py", line 305, in create_model
raise RuntimeError('layer type', type_of_layer, 'used in this model is not currently supported')
RuntimeError: ('layer type', 'deconvolution', 'used in this model is not currently supported')
Is deconvulation layer is not supported till now??
Any help please.
Thanks in Advance.
The text was updated successfully, but these errors were encountered: