Closed msiraj83 closed 6 years ago
Hi,
that looks like there is something wrong with the paths. Python seems to find your other Caffe installation, and the libcaffe that is loaded is not the right one either (it's built with another caffe.proto file).
Does "echo $LD_LIBRARY_PATH" produce the same output as "sudo echo $LD_LIBRARY_PATH"?
What does Python print for print(caffe.__file__)
?
Dear @nikolausmayer
Thanks for your reply.
Library path with sudo
and with out sudo
Output of print(caffe.__file__)
Hm. That's the correct folder at least, and that module does contain set_logging_disabled
. What's the output of sudo python -c "import caffe; print(caffe.__file__)"
?
There has to be a path problem somewhere.
Dear @nikolausmayer
The output of sudo python -c "import caffe; print(caffe.__file__)"
?
Aha! So running the FlowNet script as sudo
loads another Caffe package. So your $PYTHONPATH
might be different for sudo
.
Dear @nikolausmayer
Thanks for your reply and help. I am new to ubuntu.. Can you tell me how to set caffe path for sudo
commond. I try to set the path in .bashrc and .profile file in PATH variable as well create CAFFE_PATH variable but still its not working.
Thanks
When you are using sudo
, your normal .bashrc
(which is $HOME/.bashrc
, for you perhaps /home/msiraj83/.bashrc
) is not used. Instead, the shell tries to use /root/.bashrc
. You can try copying your config files to /root
and see if that helps.
However, I think the better option is to not use sudo
. Nothing about our scripts should require more than user permissions. Do you get an error if you omit sudo
?
Yes, I copy .basrhc file to /root/ and run the following code with out sudo..
siraj@siraj-System-Product-Name:~/Programs/flownet2-master/scripts$ ./run-flownet.py ../models/FlowNet2-s/FlowNet2-s_weights.caffemodel ../models/FlowNet2-s/FlowNet2-s_deploy.prototxt ../examples/images/cat.jpg ../examples/images/cat_gray.jpg z.flo
I got the following error..
And when I run with sudo than i got the followoing error.
It mean still not get the right path for caffe..??
The version without sudo
looks better. The "unknown engine" error might be a CuDNN problem. Check out issue https://github.com/lmb-freiburg/flownet2/issues/104, maybe this helps you (or ask Google about "engine: CUDNN").
(closed due to inactivity)
Hello I download the code and build. I have installed two caffe. First I remove the path for the first version and set the paths to this version..the screen shot of the paths is given.. Second:- i try to run the code first i got this error... Third:- I open run-flownet.py file and comment the two line (Line no 61 and 62) and the try to run the code. Again i got the following error.