cd caffe-fast-rcnn
git remote add caffe https://github.com/BVLC/caffe.git
git fetch caffe
git merge -X theirs caffe/master
手动删除冲突后,最后git add
然后注释掉/caffe-fast-rcnn/layers/python_layer.hpp文件中的self_.attr(“phase”) = static_cast(this->phase_);
然后make clean,重新编译。