From ebb034c81b9fdb428a84058191622df7da923068 Mon Sep 17 00:00:00 2001 From: sdlpkxd Date: Tue, 27 Feb 2018 10:37:01 +0800 Subject: [PATCH] Update utils.py In the function proccess(path, scale=3), I return the cropped_image as label, But I do not test the change. --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index e3bdad0..245d29c 100644 --- a/utils.py +++ b/utils.py @@ -58,7 +58,8 @@ def preprocess(path, scale=3): (width, height) = scaled_image.size input_ = np.array(list(scaled_image.getdata())).astype(np.float).reshape((height, width)) - return input_, label_ + # I think the cropped_image should be returned as cropped image, but I do not tested. + return input_, cropped_image def prepare_data(sess, dataset): """