torrvision / crfasrnn

This repository contains the source code for the semantic image segmentation method described in the ICCV 2015 paper: Conditional Random Fields as Recurrent Neural Networks. http://crfasrnn.torr.vision/
Other
1.34k stars 462 forks source link

Unable to import caffe #29

Open dalafer opened 8 years ago

dalafer commented 8 years ago

When attempting to run the python demo script I am getting the following error, I am having trouble identifying what is left out, I am thinking it could be an EVN variable. Any suggestion on what could be causing this?

File "/var/www/crfasrnn_original/python-scripts/demo_test.py",

line 29, in import caffe File "../caffe-crfrnn/python/caffe/init.py",

line 1, in from .pycaffe import Net, SGDSolver File "../caffe-crfrnn/python/caffe/pycaffe.py",

line 10, in from ._caffe import Net, SGDSolver ImportError: libcudart.so.6.5: cannot open shared object file: No such file or directory

bittnt commented 8 years ago

@abdalafamsee Did you try to set the correct path there? This should solve your problem.

caffe_root = '../caffe-crfrnn/' import sys sys.path.insert(0, caffe_root + 'python')

On the note of libcudart.so.6.5. You should add cuda library path to./bashrc or ./bash_profile (mac). For macbook pro, you should set something like below in your ~/.bash_profile. In Ubuntu/Centos/other linux, set the path to ~/.bashrc. After this, type "source ~/.bashrc" or "source ~/.bash_profile" export LD_LIBRARY_PATH="/Developer/NVIDIA/CUDA-7.5/lib:$LD_LIBRARY_PATH"

superxiaoying commented 7 years ago

@bittnt Dear Owner , does cudnn must higher than 7.0 ?

I get the problem