We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If anyone needs this compared to pillow 8.2, pillow 8.3 converting Image to numpy array does not accept dtype any more.
np.array(img, dtype=np.float32)
must be replaced by np.array(img.__array__(), dtype=np.float32)
np.array(img.__array__(), dtype=np.float32)
The text was updated successfully, but these errors were encountered:
Issue #5571 covers the same error. PR #5572 has a fix.
Sorry, something went wrong.
Pillow 8.3.1 has now been released with the fix.
No branches or pull requests
If anyone needs this compared to pillow 8.2, pillow 8.3 converting Image to numpy array does not accept dtype any more.
np.array(img, dtype=np.float32)
must be replaced by
np.array(img.__array__(), dtype=np.float32)
The text was updated successfully, but these errors were encountered: