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

caffe2ncnn 段错误 (核心已转储) #629

Closed
guo253 opened this issue Oct 28, 2018 · 2 comments
Closed

caffe2ncnn 段错误 (核心已转储) #629

guo253 opened this issue Oct 28, 2018 · 2 comments

Comments

@guo253
Copy link

guo253 commented Oct 28, 2018

Hi,
Code is downloaded today.

1.build
$ cd
$ mkdir -p build
$ cd build
$ cmake ..
$ make -j4

2.alexnet deploy.prototxt bvlc_alexnet.caffemodel are downloaded here
https://github.com/BVLC/caffe/tree/master/models/bvlc_alexnet
http://dl.caffe.berkeleyvision.org/bvlc_alexnet.caffemodel

3.copy these two files to ncnn_root/build/tools/caffe

--[Error is coming:]

4../caffe2ncnn deploy.prototxt bvlc_alexnet.caffemodel
段错误 (核心已转储)

or
./caffe2ncnn deploy.prototxt bvlc_alexnet.caffemodel alexnet.param alexnet.bin
段错误 (核心已转储)

What's wrong here? Thanks!

@guo253
Copy link
Author

guo253 commented Oct 28, 2018

name: "AlexNet"
layer {
name: "data"
type: "Input"
top: "data"
input_param { shape: { dim: 1 dim: 3 dim: 227 dim: 227 } }
}
layer {
name: "conv1"
type: "Convolution"
bottom: "data"
top: "conv1"
param {
lr_mult: 1
decay_mult: 1
}

.......

@guo253
Copy link
Author

guo253 commented Oct 28, 2018

Solved!
The layer 'data' can not be converted manually, you should convert it using upgrade_net_proto_text and upgrade_net_proto_binary after download.

This issue was closed.
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

1 participant