Skip to content

Commit

Permalink
Fix default mode warning in io.resize_image
Browse files Browse the repository at this point in the history
Signed-off-by: Finnian Anderson <get@finnian.io>
  • Loading branch information
developius committed Oct 10, 2017
1 parent fac7434 commit e0feb7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/caffe/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def resize_image(im, new_dims, interp_order=1):
# skimage is fast but only understands {1,3} channel images
# in [0, 1].
im_std = (im - im_min) / (im_max - im_min)
resized_std = resize(im_std, new_dims, order=interp_order)
resized_std = resize(im_std, new_dims, order=interp_order, mode='constant')
resized_im = resized_std * (im_max - im_min) + im_min
else:
# the image is a constant -- avoid divide by 0
Expand Down

0 comments on commit e0feb7d

Please sign in to comment.