caffe-mobilenet_v2 icon indicating copy to clipboard operation
caffe-mobilenet_v2 copied to clipboard

segmentation fault

Open flyingmrwang opened this issue 7 years ago • 1 comments

Any idea for solving this? I just re-compiled caffe after merging your dw_conv. This shows when I use caffe timer on both cpu and gpu mode.

*** Aborted at 1520306614 (unix time) try "date -d @1520306614" if you are using GNU date *** PC: @ 0x7f8694ae4b06 caffe::ConvolutionDepthwiseLayer<>::LayerSetUp() *** SIGSEGV (@0x0) received by PID 31868 (TID 0x7f8695694ac0) from PID 0; stack trace: *** @ 0x7f869372a4b0 (unknown) @ 0x7f8694ae4b06 caffe::ConvolutionDepthwiseLayer<>::LayerSetUp() @ 0x7f8694ca29a5 caffe::Net<>::Init() @ 0x7f8694ca4a88 caffe::Net<>::Net() @ 0x40bc2a time() @ 0x407360 main @ 0x7f8693715830 __libc_start_main @ 0x407a19 _start @ 0x0 (unknown) Segmentation fault (core dumped)

flyingmrwang avatar Mar 06 '18 03:03 flyingmrwang

This conv_dw_layer.cpp does not implement a default value (should be 1) for 'stride'. So you have to explicitly add 'stride: 1' in the layer definition in your prototxt.

layer { name: "conv2_1/dwise" type: "Convolution" bottom: "conv2_1/expand/bn" top: "conv2_1/dwise" param { lr_mult: 1 decay_mult: 1 } convolution_param { num_output: 32 bias_term: false pad: 1 kernel_size: 3 group: 32 stride: 1 weight_filler { type: "msra" } engine: CAFFE } }

jkjung-avt avatar Apr 13 '18 06:04 jkjung-avt