lmb-freiburg / flownet2

FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networks
https://lmb.informatik.uni-freiburg.de/Publications/2017/IMKDB17/
Other
1k stars 318 forks source link

running flownet2 error #107

Closed msiraj83 closed 6 years ago

msiraj83 commented 6 years ago

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.. flownet2_path Second:- i try to run the code first i got this error... flownet2_login_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.

flownet2_ex_erro

nikolausmayer commented 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).

msiraj83 commented 6 years ago

Dear @nikolausmayer

Thanks for your reply.

nikolausmayer commented 6 years ago

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.

msiraj83 commented 6 years ago

Dear @nikolausmayer The output of sudo python -c "import caffe; print(caffe.__file__)"?

paython_package_path

nikolausmayer commented 6 years ago

Aha! So running the FlowNet script as sudo loads another Caffe package. So your $PYTHONPATH might be different for sudo.

msiraj83 commented 6 years ago

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

nikolausmayer commented 6 years ago

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?

msiraj83 commented 6 years ago

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.. without_sudo And when I run with sudo than i got the followoing error. with_sudo It mean still not get the right path for caffe..??

nikolausmayer commented 6 years ago

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").

nikolausmayer commented 6 years ago

(closed due to inactivity)