由于现在已经运行成功了,当时的问题没有及时记录下来,现在只能凭记忆把这些问题写出来
问题1:MATLAB command 'matlab' not found. Please add 'matlab' to your PATH.
解决方法:这个问题困扰了我一天多时间,明明已经把MATLAB的路径添加上去了,为什么还是出现这个问题呢?心灰意冷了,只能把$fast-rcnn_root\tools\__init__.py的第42-46行删掉,问题解决了。
但是后面训练的过程中又出现了一些问题,不知道是不是删掉这几行代码的原因,所以只能把代码改回来,再继续查找原因。
最后发现只需要把$fast-rcnn_root\tools\__init__.py的21行MATLAB = 'matlab'改成MATLAB = 'matlab.exe',问题完美解决
问题2:smooth_L1_loss_layer.cpp:19] Check failed: bottom.size() == 4 (3 vs. 4) If weights are used, must specify both inside and outside weights.
解决方法:把$fast-rcnn\data\cache里边的文件都删掉,将train.py里边的SmoothL1Loss层改为SmoothL1LossOHEM
问题3:TypeError: 'numpy.float64' object cannot be interpreted as an index
解决方法:网上有人说pip install statsmodels能够解决问题,但是我安装之后问题还是存在,又有网友说numpy的版本不对,要装numpy-1.11.0(我的numpy版本是1.12.0)于是我下载了一个numpy-1.11.3+mkl-cp27-cp27m-win_amd64.whl,安装之后,问题完美解决。