caffe icon indicating copy to clipboard operation
caffe copied to clipboard

segmentation fault (core dumped) after updating

Open chen3902 opened this issue 12 years ago • 4 comments

I have successfully trained a CNN using my own dataset. However, yesterday, after updating the caffe to its latest version, without altering the architecture of network, the training data is the same as previously, it reports segmentation fault when running the train.sh. Why it report segmentation fault on the latest caffe version? Thank you!

chen3902 avatar Oct 23 '14 13:10 chen3902

I come across the question that segmentation fault.Do you solve the question?

tjusxh avatar Nov 15 '14 08:11 tjusxh

Have you tried to make clean and then to make again? Have you tried to train the given examples? This might help to identify where it might be the bug. Also, posting other information might help.

cNikolaou avatar Nov 15 '14 13:11 cNikolaou

@cNikolaou
I add local connection as https://github.com/BVLC/caffe/pull/1271. name: "LeNet" layers { name: "face" type: DATA top: "data" top: "label" data_param { source: "data/face/regionFaceSmallOne_lmdb" backend: LMDB batch_size: 32 } transform_param { scale: 0.00390625 } include: { phase: TRAIN } } layers { name: "face" type: DATA top: "data" top: "label" data_param { source: "data/face/regionFaceSmallOneTest_lmdb" backend: LMDB batch_size: 100 } transform_param { scale: 0.00390625 } include: { phase: TEST } }

layers { name: "conv1" type: CONVOLUTION bottom: "data" top: "conv1" blobs_lr: 1 blobs_lr: 2 convolution_param { num_output: 20 kernel_size: 4 stride: 1 weight_filler { type: "xavier" } bias_filler { type: "constant" } } } layers { name: "pool1" type: POOLING bottom: "conv1" top: "pool1" pooling_param { pool: MAX kernel_size: 2 stride: 2 } } layers { name: "conv2" type: CONVOLUTION bottom: "pool1" top: "conv2" blobs_lr: 1 blobs_lr: 2 convolution_param { num_output: 40 kernel_size: 3 stride: 1 weight_filler { type: "xavier" } bias_filler { type: "constant" } } } layers { name: "pool2" type: POOLING bottom: "conv2" top: "pool2" pooling_param { pool: MAX kernel_size: 2 stride: 2 } }

layers { name: "local1" type: LOCAL bottom: "pool2" top: "local1" blobs_lr: 1 blobs_lr: 1 local_param { num_output: 5 kernel_size: 2 stride: 1 pad: 0 weight_filler { type: "xavier" } bias_filler { type: "constant" value:0.1 } } } layers { name: "relu1" type: RELU bottom: "local1" top: "local1" } layers { name: "pool3" type: POOLING bottom: "local1" top: "pool3" pooling_param { pool: MAX kernel_size: 2 stride: 2 } }

layers { name: "conv4" type: CONVOLUTION bottom: "pool3" top: "conv4" blobs_lr: 1 blobs_lr: 2 convolution_param { num_output: 80 kernel_size: 2 stride: 1 weight_filler { type: "xavier" } bias_filler { type: "constant" } } }

layers { name: "ip1" type: INNER_PRODUCT bottom: "conv4" top: "ip1" blobs_lr: 1 blobs_lr: 2 inner_product_param { num_output: 160 weight_filler { type: "xavier" } bias_filler { type: "constant" } } } layers { name: "relu2" type: RELU bottom: "ip1" top: "ip1" } layers { name: "accuracy" type: ACCURACY bottom: "ip1" bottom: "label" top: "accuracy" include: { phase: TEST } } layers { name: "loss" type: SOFTMAX_LOSS bottom: "ip1" bottom: "label" top: "loss" }

prompt: Segmentation fault

tjusxh avatar Nov 15 '14 13:11 tjusxh

Check that none of your dependencies changed in the meantime and ask about installation issues on the caffe-users mailing list. Thanks!

shelhamer avatar Nov 29 '14 19:11 shelhamer