caffe编译

编译

1
git clone --recursive https://github.com/rbgirshick/py-faster-rcnn.git

可以直接把caffe-faster-rcnn替换成caffe最新版

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cd $FRCN_ROOT/lib
make

cd $FRCN_ROOT/caffe-fast-rcnn
# Now follow the Caffe installation instructions here:
# http://caffe.berkeleyvision.org/installation.html

# If you're experienced with Caffe and have all of the requirements installed
# and your Makefile.config in place, then simply do:
make -j8 && make pycaffe

cd $FRCN_ROOT
./data/scripts/fetch_faster_rcnn_models.sh

cd $FRCN_ROOT
./tools/demo.py

训练

module has no attribute ‘text_format’

解决:

1
2
lib/fast_rcnn/train.py
adding import google.protobuf.text_format
请作者喝一杯咖啡☕️