-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 when rerunning script #12
Comments
I get a similar error. Matlab simply shuts down when re-running the matlab demo. |
Yup, reboot is the only way for me to get it working again. |
I can't reproduce this bug on Windows. Ross also hasn't reported this bug on Ubuntu. In the head for script_faster_rcnn_demo, we clear caffe mex (mexLock() is commented), so there should be any error thrown by caffe in the second calling. I think we should make sure that the mex is cleared on your machine as expected. |
I can reproduce the error in linux. It's low priority since it just affects the demo script and not training or testing. To clarify comments in the thread: a "reboot" of the computer is not required, just a restart of matlab. |
So... It seems to my that there is somehow a GPU memory leak. The GPU memory usage grows linearly with every iteration of the main loop, until MATLAB crashes. Is it wrong to assume that GPU memory usage is relatively constant with each forward pass, after "warm-up" ? |
So is it a problem that mex doesn't clean up after itself correctly after all?
|
This bug does not just affect the demo script, but also training and testing on Ubuntu. When I re-run 'script_faster_rcnn_VOC2007_ZF.m', it happened too. |
When I run script_faster_rcnn_demo |
I can reproduce this problem.When I re-running script_faster_rcnn_demo.m, matlab crash: [libprotobuf ERROR google/protobuf/descriptor_database.cc:57] File already exists in database: caffe.proto |
BVLC/caffe#1917 |
so how could I solve this problem? |
how to solve the problem? |
I have solved the last issue ... SOLUTION
It seems to works ok. I would like to know why using the mex clear at all. |
I have encountered the same bug, and solved it by re-compiling opencv with out dnn module. I found that caffe, protobuf, opencv-dnn couldn't work together. It seems to be a bug in either protobuf or opencv. There are two solutions:
OR
|
Problem solved: |
When I run
script_faster_rcnn_demo
for the first time after starting Matlab, things work fine. But if I re-run the same script after the first run, I get the following errorThe text was updated successfully, but these errors were encountered: