mdbloice / Augmentor

Image augmentation library in Python for machine learning.
https://augmentor.readthedocs.io/en/stable
MIT License
5.08k stars 866 forks source link

Change type aliases in two places; np.float -> float, np.int -> int. #251

Closed jsilter closed 1 year ago

jsilter commented 1 year ago

These aliases were removed in numpy 1.20. https://numpy.org/doc/stable/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecated. I believe these changes will be backwards compatible with older versions of numpy too.

Fixes #250