Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down