From f638034a9854fa867538d6989b058f0eb36a9d06 Mon Sep 17 00:00:00 2001 From: nhs000 <33925625+nhs000@users.noreply.github.com> Date: Sat, 8 Feb 2020 17:26:09 +0700 Subject: [PATCH] update `as_grey` argument of `skimage.io.imread` to `as_gray` due to https://github.com/scikit-image/scikit-image/commit/4feccd002729653a5784569414fbc2b8e313fcaa --- python/caffe/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/caffe/io.py b/python/caffe/io.py index d0103d60892..1669c955a02 100644 --- a/python/caffe/io.py +++ b/python/caffe/io.py @@ -299,7 +299,7 @@ def load_image(filename, color=True): of size (H x W x 3) in RGB or of size (H x W x 1) in grayscale. """ - img = skimage.img_as_float(skimage.io.imread(filename, as_grey=not color)).astype(np.float32) + img = skimage.img_as_float(skimage.io.imread(filename, as_gray=not color)).astype(np.float32) if img.ndim == 2: img = img[:, :, np.newaxis] if color: