This PR fixes a bug in get_image_features. If the X data is passed in with an integer type (instead of float), the output of crop_mode='fixed' and norm=True is incorrect. In the examples below, the first image is incorrect while the second is correct.
This PR eliminates the bug by casting X data to float32 and y data to int32 to avoid incorrect use of the function.
This PR fixes a bug in
get_image_features
. If the X data is passed in with an integer type (instead of float), the output ofcrop_mode='fixed'
andnorm=True
is incorrect. In the examples below, the first image is incorrect while the second is correct.This PR eliminates the bug by casting X data to float32 and y data to int32 to avoid incorrect use of the function.