TypeError: 'numpy.float64' object cannot be interpreted as an index
这里是由于numpy版本不兼容致使的问题,最好的解决办法是卸载你的numpy,安装numpy1.11.0。若是你和笔者同样不是服务器的网管,没有权限的话,就只能本身想办法解决了。
修改以下几个地方的code:服务器
1) /home/xxx/py-faster-rcnn/lib/roi_data_layer/minibatch.pycode
将第26行:fg_rois_per_image = np.round(cfg.TRAIN.FG_FRACTION * rois_per_image) 改成:fg_rois_per_image = np.round(cfg.TRAIN.FG_FRACTION * rois_per_image).astype(np.int)