Skip to content

Commit

Permalink
Style fix in image preprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Apr 25, 2017
1 parent 791cba0 commit 0d4fb04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions keras/preprocessing/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ def load_img(path, grayscale=False, target_size=None):
if img.mode != 'RGB':
img = img.convert('RGB')
if target_size:
wh_tuple = (target_size[1], target_size[0])
if img.size != wh_tuple:
img = img.resize(wh_tuple)
hw_tuple = (target_size[1], target_size[0])
if img.size != hw_tuple:
img = img.resize(hw_tuple)
return img


Expand Down

0 comments on commit 0d4fb04

Please sign in to comment.