Repository: incubator-singa Updated Branches: refs/heads/master 82c12c2b9 -> a43f2912b
SINGA-282 Add grayscale to load method in ImageTool class Add parameter "grayscale" to load method in image_tool.ImageTool. Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/a43f2912 Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/a43f2912 Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/a43f2912 Branch: refs/heads/master Commit: a43f2912b875b86b2afc026d1a4353d14b945786 Parents: 82c12c2 Author: Xiangrui <[email protected]> Authored: Fri Dec 16 12:25:20 2016 +0800 Committer: Xiangrui <[email protected]> Committed: Fri Dec 16 12:25:20 2016 +0800 ---------------------------------------------------------------------- python/singa/image_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/a43f2912/python/singa/image_tool.py ---------------------------------------------------------------------- diff --git a/python/singa/image_tool.py b/python/singa/image_tool.py index 42fbf09..622c6f0 100644 --- a/python/singa/image_tool.py +++ b/python/singa/image_tool.py @@ -205,8 +205,8 @@ class ImageTool(): self.imgs = [] return - def load(self, path): - img = load_img(path) + def load(self, path, grayscale=False): + img = load_img(path, grayscale) self.imgs = [img] return self
