caffe调用caffe.io.load_image时遇到
TypeError: _open() got an unexpected keyword argument 'as_grey’
原因: skimage.io.imread() 调用参数 “as_grey” 实际修改成了 “as_gray”, 主要是scikit-image 的升级版本后版本修改了参数名称。
解决方案:
定位到 caffe/python/caffe/io.py
修改参数
caffe调用caffe.io.load_image时遇到
TypeError: _open() got an unexpected keyword argument 'as_grey’
原因: skimage.io.imread() 调用参数 “as_grey” 实际修改成了 “as_gray”, 主要是scikit-image 的升级版本后版本修改了参数名称。
解决方案:
定位到 caffe/python/caffe/io.py
修改参数