keras-team / keras-preprocessing

Utilities for working with image data, text data, and sequence data.
Other
1.02k stars 444 forks source link

Added robust dtype check #282

Closed jaketae closed 4 years ago

jaketae commented 4 years ago

Summary

np.isscalar() returns True for all scalars, including those that are not of type float. A better alternative is to use isinstance() to verify that zoom_range is either a float or a list/tuple of floats.

Related Issues

N/A

PR Overview