Style fix in image preprocessing
@@ -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
