-
Notifications
You must be signed in to change notification settings - Fork 13
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
'layer type' data not supported #7
Comments
The converter only supports
I've attached a working |
okay, so I changed the input layer and now I am getting this error: CREATING MODEL any ideas? |
I am trying to use your code to convert DeepYeast from the caffe model zoo to keras. I followed instructions for conversion running this command
python -m caffe2keras M:\Caffe_CPU\DeepYeast\HOwt_png_vgg_A_bn_deploy.prototxt M:\Caffe_CPU\DeepYeast\HOwt_png_vgg_A_bn_iter_130000.caffemodel deepyeastKeras.h5
and changing the deploy file from:
name: "HOwt_png_quick"
input: "data"
input_shape {
dim: 100
dim: 3
dim: 64
dim: 64
}
layer {
name: "conv1_1"
type: "Convolution"
bottom: "data"
top: "conv1_1"
convolution_param {
num_output: 64
pad: 1
kernel_size: 3
stride: 1
weight_filler {
type: "xavier"
}
bias_filler {
type: "constant"
}
}
}
........
to this:
name: "HOwt_png_quick"
input: "data"
input_dim: 100
input_dim:3
input_dim:64
input_dim:64
layer{
name:"data"
type: "data"
top: "data"
top:"label"
}
layer {
name: "conv1_1"
type: "Convolution"
bottom: "data"
top: "conv1_1"
convolution_param {
num_output: 64
pad: 1
kernel_size: 3
stride: 1
weight_filler {
type: "xavier"
}
bias_filler {
type: "constant"
}
}
}
and get this error:
Using Theano backend.
Converting model...
CREATING MODEL
Traceback (most recent call last):
File "C:\Users\xx\AppData\Local\Continuum\anaconda3\envs\dlen35\lib\runpy.py", "main", mod_spec) File "C:\Users\xx\AppData\Local\Continuum\anaconda3\envs\dlen35\lib\runpy.py",
exec(code, run_globals)
File "M:\Caffe_CPU\caffe2keras\caffe2keras_main_.py", line 32, in
main() File "M:\Caffe_CPU\caffe2keras\caffe2keras_main_.py", line 22, in main
model = convert.caffe_to_keras(args.prototxt, args.caffemodel, args.debug)
File "M:\Caffe_CPU\caffe2keras\caffe2keras\convert.py", line 358, in caffe_to_keras tuple(config.input_dim[1:]))
File "M:\Caffe_CPU\caffe2keras\caffe2keras\convert.py", line 483, in create_model
'used in this model is not currently supported')
RuntimeError: ('layer type', 'data', 'used in this model is not currently supported')
I just don't understand what it is I am doing wrong. Any ideas?
Original deploy file can be found here http://kodu.ut.ee/~leopoldp/2016_DeepYeast/code/caffe_model/
The text was updated successfully, but these errors were encountered: