-
Notifications
You must be signed in to change notification settings - Fork 471
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
Segmentation fault in cpu mode. #28
Comments
I also met with segmentation fault in cpu mode when running demo_rfcn. Have you resolved this issue? |
@moting9 I find that the psroi_pooling_layer doesn't implement in CPU. |
@misery0424 Did you run with flag --cpu ? |
I run into the same issue, with the following command: |
Hi @misery0424 , It might dut to the fact that we didn't implement forward_cpu of psroipooling. Maybe we can implement it yourself, or only use gpu mode. |
People spend their time (e.g. compiling caffe) to make this code work in CPU-only mode. However, they get a "Segmentation fault (core dumped)" error without any further explanation. Due to an issue (YuwenXiong#28), CPU-only mode is currently not available.
Do you implement the CPU mode, or can you tell me what should I do if I want to implement the CPU mode, Thanks |
@misery0424 @moting9 @plopd @mlot @liyi14 Hello everyone, do you implement the cpu mode in test? |
@misery0424 @moting9 @plopd @mlot @liyi14 did a quick CPU implementation by stealing code from its GPU counterpart: https://github.com/caiyang/caffe-rfcn |
@caiyang I just tried your psroi_pooling_layer, it didn't work and shows "segmentation fault". I used py-r-fcn, what I did is replace your psroi_pooling_leyer.cpp and add file rfcn_layers.hpp. After that, I re-compiled my py-r-fcn, but it didn't work. |
@xuxuzhou I believe the problem is a bug in the caffe-ms the py-R-FCN uses. If you remove all layers except for the first conv-bn-scale block and run the demo in cpu mode again, the segmentation fault still exists. The segmentation fault is caused by the Forward_cpu in scale_layer.cpp: |
@caiyang you are right. good job!mark |
@caiyang Hello.I have tried your solution to run r-fcn on cpu mode. It worked, make&make pycaffe&make test all passed successfully. However, when |
1.add cpu forward implementation as YuwenXiong/py-R-FCN#28 (comment) 2.add cpu backward implementation by stealing code from its GPU implement
I have successfully train the rfcn model and test in gpu model. But when i run the demo in cpu model the program will core dump with "Segmentation fault". Can anyone help me about this problem?
the gdb error info is:
#0 0x00007ffff6e44653 in __memcpy_ssse3_back () from /usr/lib64/libc.so.6
#1 0x00007fffe368c848 in caffe::ScaleLayer::Forward_cpu(std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&, std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&) ()
The text was updated successfully, but these errors were encountered: