forked from kpzhang93/MTCNN_face_detection_alignment
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
23 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b3e7d2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b3e7d2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I came here to answer my own problem!
The key point is that the static buffer causes this crash due to CUDA ! Thanks to@shelhamer'post BVLC/caffe#2016 .
I solved this problem by edit this two files: CaffeBing.cpp and CaffeBing.h .
Just move this codes in CaffeBing.cpp
std::vector<caffe::Net*> nets_;//no shared_ptr here.
std::vector<std::shared_ptr<boost::thread_specific_ptr<caffe::Net>>> predictors_;
std::vector prototxts;
to CaffeBing.h as private members of CaffeBinding.
This changes work in Linux !
However , I still got problem when I compiled the project TestCasecadeCNN in windows .
E:\FDDB\caffe-windows-ms\include\caffe/proto/caffe.pb.h(2687): error C2059: 语法错误:“常量”
1>E:\FDDB\caffe-windows-ms\include\caffe/proto/caffe.pb.h(2688): error C2238: 意外的标记位于“;”之前
1>E:\FDDB\caffe-windows-ms\include\caffe/proto/caffe.pb.h(10702): error C2059: 语法错误:“常量”
1>E:\FDDB\caffe-windows-ms\include\caffe/proto/caffe.pb.h(10703): error C2238: 意外的标记位于“;”之前
I have no idea about it .
b3e7d2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zhengmzong,
The reason why I put the
nets_
inCaffeBinding.cpp
is that I don't want to include the Caffe header files in a new project. Can you find another way to preserve the variables still inCaffeBinding.cpp
?b3e7d2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zhengmzong
I just submitted the solution. I waste too much time on this problem. The final solution is quite simple:
remove CUDA_CHECK().
sigh.
happynear/caffe-windows@ada2fee