keras-team / keras-preprocessing

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

remove dtype from np.asarray #344

Open Emekaborisama opened 3 years ago

Emekaborisama commented 3 years ago

The recent version of numpy automatically select a data type and accept one positional argument. The dtype return a dependencies error

'in asarray return array(a, dtype, copy=False, order=order) TypeError: __array__() takes 1 positional argument but 2 were given -->'

Summary

Related Issues

PR Overview

google-cla[bot] commented 3 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

Emekaborisama commented 3 years ago

@googlebot I signed it!

Dref360 commented 3 years ago

This is a bug in Pillow, they are already working on a fix.

https://github.com/python-pillow/Pillow/pull/5572