Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mia
caffe
0001-python-caffe-scikit-as-grey-gray.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-python-caffe-scikit-as-grey-gray.patch of Package caffe
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:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor