Skip to content

Convert Caffe Net to CNNdroid faild #36

Description

@Kison-Y

There is my Net file of Caffe (prototext file)

name: "face_12c"
input: "X"
input_dim: 1
input_dim: 3
input_dim: 12
input_dim: 12

layer {
name: "conv1"
type: "Convolution"
bottom: "X"
top: "conv1"
convolution_param {
num_output: 10
kernel_size: 3
}
}
layer {
name: "relu1"
type: "PReLU"
bottom: "conv1"
top: "conv1"
}
layer {
name: "pool1"
type: "Pooling"
bottom: "conv1"
top: "pool1"
pooling_param {
pool: MAX
kernel_size: 2
stride: 2
}
}

When I use the script 'SavePycaffeModelInMessagePack.py' to convert it to CNNdroid file, it make errors
Getting parameters: conv1 Getting parameters: relu1 Traceback (most recent call last): File "SavePycaffeModelInMessagePack.py", line 55, in <module> params = get_params(net) File "SavePycaffeModelInMessagePack.py", line 41, in get_params net_params[key] = [net.params[key][0].data, net.params[key][1].data] IndexError: Index out of range
I have read the document and make sure there was no wrong for the parameters. There seems to be something wrong when it converted the relu1 layer. So, how to solve this problem?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions