-
Notifications
You must be signed in to change notification settings - Fork 83
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
Runtime error #5
Comments
Hi, can you try changing this line https://github.com/eldar/deepcut/blob/master/lib/pose/cnn_cache_features.m#L47 to caffe.set_mode_cpu(); ? I always use GPU, but it never occured to me that people might not have GPUs with large enough memory, sorry! |
It's actually very difficult to say from this log, what the error is. I've never seen anything like that. |
here https://github.com/eldar/deepcut-cnn/blob/9b5de9cb70a0a440311178f26fbd6984d81e5c54/models/finetune_flickr_style/solver.prototxt#L17, I uncommented the last line to solve the issue about "Cannot use GPU in CPU-only Caffe". Actually I installed Caffe locally (without SUDO/ROOT access) on a Redhat-based cluster. I changed Makefile.config as follows based on my system config: I commented the following part https://github.com/eldar/deepcut-cnn/blob/9b5de9cb70a0a440311178f26fbd6984d81e5c54/src/caffe/layers/softmax_loss_vec_layer.cpp#L236-L251 similar to softmax_loss_layer.cpp by myself. I couldn't "make solver-callback" from your instructions, as there was no "solver-callback:" in Makefile! Also I made your change "caffe.set_mode_cpu();" in https://github.com/eldar/deepcut/blob/master/lib/pose/cnn_cache_features.m#L47 |
"make solver-callback" - this will have to be executed not in the directory of caffe, but of directory of the solver. Can you run the CNN-only demo as described here: https://github.com/eldar/deepcut-cnn/#installation-instructions python ./pose_demo.py image.png --out_name=prediction This will ensure that you got the CNN running, at the very least. |
After debugging, I could run "python ./pose_demo.py image.png --out_name=prediction". |
I used this command to solve the above error: cmake . -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=c++ -DGUROBI_ROOT_DIR=/usr/global/gurobi/gurobi651/linux64 -DGUROBI_VERSION=65 GCC and GUROBI should be compatible in this case. |
Segmentation fault after running the demo: ... |
Hey, I can't see from the log what exactly is the problem, but it could be that you didn't set the gurobi license file appropriately. This is where the location is set in the code https://github.com/eldar/deepcut/blob/master/lib/pose/exp_params.m#L18, you can modify it. You can obtain the academic license for free from Gurobi website. P.S. In the next couple of days we will update the repository with completely new solver, that runs fast and also doesn't require any license. |
Hi Eldar, Thanks for your reply.
To get started, type one of these: helpwin, helpdesk, or demo. Pose startup done
Error using dbstop |
Can you modify start_matlab.sh script or just start it with this command instead?
|
Yes. I ran "dbstop if error" later inside Matlab, and the error is as follows: ... Error in caffe.Net/copy_from (line 123) Error in caffe.get_net (line 34) Error in caffe.Net (line 31) Error in cnn_cache_features (line 52) Error in demo_multiperson (line 9) 123 caffe_('net_copy_from', self.hNet_self, weights_file); |
Can you stop the debugger on this line:
and check if net_def_file points to existing model definition file (somewhere in /models) and net_bin_file points to correct caffe binary weights fiel (something.caffe)? |
It seems fine! May it be related to copy a huge model file? ... Cleared 0 solvers and 0 stand-alone nets K>> net_def_file K>> net_bin_file |
Sorry, it's quite difficult to say what's wrong without proper error log. The model definitely fits on a 12Gb GPU. Maybe the file was corrupted during download? Here's the hash for mine:
|
Could you please let me know the issue with my demo?
error.txt
...
I1016 22:46:16.365223 24943 net.cpp:816] Ignoring source layer loss_loc
I1016 22:46:16.374922 24943 net.cpp:816] Ignoring source layer loss_next
save dir /gpfs/work/f/fuf111/deepcut/data/mpii-multiperson/scoremaps/test
testing from net file /gpfs/work/f/fuf111/deepcut/data/caffe-models/ResNet-101-mpii-multiperson.caffemodel
deepcut: test (MPII multiperson test) 2/1758
F1016 22:46:17.488354 24943 syncedmem.cpp:136] Cannot use GPU in CPU-only Caffe: check mode.
*** Check failure stack trace: ***
The text was updated successfully, but these errors were encountered: