7. compile faster-r-cnn
1.
reference link:
https://github.com/rbgirshick/py-faster-rcnn
2. need copy the 'makefile.config' file to the directory ''/home/uni/projects/maskrcnn/fasterrcnn/py-faster-rcnn/caffe-fast-rcnn"
3. the 4th step:
when using command: make -j8 && make pycaffe
lhdf5 error
solution is: change 'Makefile' file as follows:
删除--- LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5增加+++ LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial
4. Run the demo "cd $FRCN_ROOT
./tools/demo.py"
error (1) lack easydict
solution: $ sudo pip install easydict
error(2) lack cv2
solution: $ sudo apt-get install python-opencv
5. Usage:
cd $FRCN_ROOT
./experiments/scripts/faster_rcnn_alt_opt.sh [GPU_ID] [NET] [--set ...]./experiments/scripts/faster_rcnn_alt_opt.sh 0 VGG16 pascal_voc
6. error and solution
pocess Process-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "./tools/train_faster_rcnn_alt_opt.py", line 129, in train_rpn
max_iters=max_iters)
File "/home/caijiao/caffe/py-faster-rcnn/tools/../lib/fast_rcnn/train.py", line 158, in train_net
pretrained_model=pretrained_model)
File "/home/caijiao/caffe/py-faster-rcnn/tools/../lib/fast_rcnn/train.py", line 52, in __init__
pb2.text_format.Merge(f.read(), self.solver_param)
AttributeError: 'module' object has no attribute 'text_format'
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "./tools/train_faster_rcnn_alt_opt.py", line 129, in train_rpn
max_iters=max_iters)
File "/home/caijiao/caffe/py-faster-rcnn/tools/../lib/fast_rcnn/train.py", line 158, in train_net
pretrained_model=pretrained_model)
File "/home/caijiao/caffe/py-faster-rcnn/tools/../lib/fast_rcnn/train.py", line 52, in __init__
pb2.text_format.Merge(f.read(), self.solver_param)
AttributeError: 'module' object has no attribute 'text_format'
解决方法是:
改一下train.py源码文件,把import google.probuf as pb2 改成 import google.probuf.text_format as pb2
在train.py后面代码中,将pb2.text_format改成pb2
7.TypeError: 'numpy.float64' object cannot be interpreted as an index #481
Same problem! An int type is expected.
Solution: Try to install numpy 1.11.0
sudo pip install -U numpy==1.11.0
.It is caused by unsupported float index in
1.12.0
even if the case likex[1.0: 3.0]
should be considered as valid.
Comments
Post a Comment