在下面这篇文章的指导下进行训练
http://blog.csdn.net/princepaul3/article/details/52313582#reply
(1)
在py-faster-rcnn根目录下执行:
./experiments/scripts/faster_rcnn_alt_opt.sh 0 ZF pascal_voc
出现下面的错误:
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'
解决方法是:
![](https://i-blog.csdnimg.cn/blog_migrate/23d3e6462b945e56ca6239af9a5ca464.png)
![](https://i-blog.csdnimg.cn/blog_migrate/554f1d1eed072165a62c0b9109e3d3da.png)
解决办法是:numpy不要用1.12,需要用1.11
电脑里有2个版本,可能无法识别,卸载了1.12,问题解决。