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
Error with demo.py #62
Comments
That's weird. It seems that you have already compiled the caffe successfully. You may double check about it by running Did you modify anything to the code? Please check |
After the errror emerged,I "add printf("Init end\r\n")" in net class construcor in net.cpp to locate the problem.Even I remove this code, the problem remains。 commands: Flags from /root/person_search/caffe/tools/caffe.cpp: |
Are there any Chinese characters in the directory path? I am not sure if they would cause the problem. |
No Chinese characters in the directory path. Thefull path is "/root/person_search". The cudnn library version is 5.1.2. |
I suspect it was the c++ code that caused the problem, because |
I traced the code. Then I found |
Could you please check if the md5 of the downloaded |
I checked the md5 of the model ,it is correct. There must be something wrong with proto->ParseFromCodedStream(coded_input); |
in function ReadProtoFromBinaryFile, I added "if ( !proto ) printf("proto failed\r\n");". Then demo.py worked correctly. I guess some memory must be corrupt. |
Well, that's really weird. I have no idea about why it happened. Maybe the memory is corrupted as you said, or the gcc compiler has some bugs. But glad to know that the demo could work with your hack. |
when I ran python2 tools/demo.py --gpu 0, the following error was encountered.
I1014 13:40:42.606418 19932 net.cpp:1256] blob 159 name det_score data idx 0
I1014 13:40:42.606422 19932 net.cpp:1266] blob 159 name det_score diff idx 2
I1014 13:40:42.606426 19932 net.cpp:1256] blob 160 name pid_prob data idx -1
I1014 13:40:42.606431 19932 net.cpp:1266] blob 160 name pid_prob diff idx -1
I1014 13:40:42.606433 19932 net.cpp:1256] blob 161 name bbox_pred data idx -1
I1014 13:40:42.606437 19932 net.cpp:1266] blob 161 name bbox_pred diff idx -1
I1014 13:40:42.606442 19932 net.cpp:1256] blob 162 name feat_lowdim data idx 0
I1014 13:40:42.606446 19932 net.cpp:1266] blob 162 name feat_lowdim diff idx 0
I1014 13:40:42.606451 19932 net.cpp:1256] blob 163 name feat data idx -1
I1014 13:40:42.606454 19932 net.cpp:1266] blob 163 name feat diff idx -1
I1014 13:40:42.606457 19932 net.cpp:1272] storage memory slot 0 size 3211264
I1014 13:40:42.606462 19932 net.cpp:1272] storage memory slot 1 size 3211264
I1014 13:40:42.606465 19932 net.cpp:1272] storage memory slot 2 size 3211264
I1014 13:40:42.606468 19932 net.cpp:1272] storage memory slot 3 size 8192
I1014 13:40:42.606472 19932 net.cpp:1277] raw memory 304337048 opt memory 10848392
Init end
Traceback (most recent call last):
File "tools/demo.py", line 114, in
main(args)
File "tools/demo.py", line 42, in main
net = caffe.Net(args.probe_def, args.caffemodel, caffe.TEST)
RuntimeError: basic_string::append
please help me solve this problem。Thanks!
The text was updated successfully, but these errors were encountered: