rbgirshick / fast-rcnn

Fast R-CNN
Other
3.34k stars 1.57k forks source link

Error When Compiling with CudNN 5 and CUDA 8 #155

Open zahidmadeel opened 7 years ago

zahidmadeel commented 7 years ago

Hi,
I am using CudNN version 5 and I get an error during installation. The error seems like this issue. I followed the same guidelines as mentioned in the linked thread and did following

cd caffe-fast-rcnn  
git remote add caffe https://github.com/BVLC/caffe.git  
git fetch caffe  
git merge -X theirs caffe/master 

The merge fails on 5 files which are deleted by the new remote I guess. The conflicts are the following

deleted by them: examples/hdf5_classification.ipynb
        deleted by them: include/caffe/common_layers.hpp
        deleted by them: include/caffe/neuron_layers.hpp
        deleted by them: include/caffe/vision_layers.hpp
        deleted by them: matlab/caffe/matcaffe.cpp
        deleted by them: scripts/travis/travis_install.sh

Even if I ignore conflicts, because they are all delete conflicts, and move on to removing self_.attr("phase") = static_cast<int>(this->phase_); from nclude/caffe/layers/python_layer.hpp, I get the following errors during make -j8 && make pycaffe

CXX src/caffe/layers/scale_layer.cpp
In file included from src/caffe/layers/roi_pooling_layer.cpp:10:0:
./include/caffe/fast_rcnn_layers.hpp:16:33: fatal error: caffe/loss_layers.hpp: No such file or directory
compilation terminated.
Makefile:581: recipe for target '.build_release/src/caffe/layers/roi_pooling_layer.o' failed
make: *** [.build_release/src/caffe/layers/roi_pooling_layer.o] Error 1
make: *** Waiting for unfinished jobs....

Any ideas why merge is failing or why the errors after the merge? Is the solution supposed to work with specific commit of the bvlc/caffe repository?

cdshdow commented 7 years ago

Perhaps you can using the caffe version in faster r-cnn

soulslicer commented 7 years ago

It doesnt compile either