Skip to content
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

run ncnn2mem show err as: find_blob_index_by_name data failed #393

Closed
frankieGitHub opened this issue May 10, 2018 · 2 comments
Closed

run ncnn2mem show err as: find_blob_index_by_name data failed #393

frankieGitHub opened this issue May 10, 2018 · 2 comments

Comments

@frankieGitHub
Copy link

Hi,
i use the pretrain caffe mobilefacenet convert to NCNN, that is OK. But when i use ncnn2mem, error as:

./ncnn2mem mobilefacenet.param mobilefacenet.parm.bin mobilefacenet.id.h mobilefacenet.mem.h

find_blob_index_by_name data failed
段错误 (核心已转储)

could you do me a favor, thanks.

PS.
the head of mobilefacenet_deploy.prototxt as:

name:"Caffe_MobileFaceNet"

input: "data"
input_dim: 1
input_dim: 3
input_dim: 112
input_dim: 96

############## CNN Architecture ###############

layer {
name: "conv1"
type: "Convolution"
bottom: "data"
top: "conv1"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 64
kernel_size: 3
stride: 2
pad: 1
weight_filler {
type: "xavier"
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
name: "conv1/bn"
type: "BatchNorm"
bottom: "conv1"
top: "conv1"
param {
lr_mult: 0
decay_mult: 0
}
param {
lr_mult: 0
decay_mult: 0
}
param {
lr_mult: 0
decay_mult: 0
}
}

@lvpchen
Copy link

lvpchen commented May 10, 2018

Change
input: "data"
input_dim: 1
input_dim: 3
input_dim: 112
input_dim: 96
To
layer {
name: "data"
type: "Input"
top: "data"
input_param { shape: { dim: 1 dim: 3 dim: 112 dim: 96 } }
}

@frankieGitHub
Copy link
Author

that is works.
thanks. @lvpchen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants