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
log_images relies on scipy.misc.toimage which was deprecated in scipy v1.0.0 and removed in v1.2.0. (cf. https://docs.scipy.org/doc/scipy-1.1.0/reference/generated/scipy.misc.toimage.html#scipy.misc.toimage)
log_images
scipy.misc.toimage
Scipy documentation suggests using Pillow's Image.fromarray directly. The following changes to tensorboard_logger.py resolve the issue for me:
Image.fromarray
tensorboard_logger.py
line 157 change:
# Change the following: scipy.misc.toimage(img).save(s, format="png") # to: Image.fromarray(img).save(s, format="png")
line 12 change:
# Remove this import: import scipy.misc # Replace it with: from PIL import Image
I would be happy to issue a PR with this fix.
The text was updated successfully, but these errors were encountered:
@davidlibland PR would be welcome, your suggestion for a fix looks great 👍
Sorry, something went wrong.
No branches or pull requests
log_images
relies onscipy.misc.toimage
which was deprecated in scipy v1.0.0 and removed in v1.2.0. (cf. https://docs.scipy.org/doc/scipy-1.1.0/reference/generated/scipy.misc.toimage.html#scipy.misc.toimage)Scipy documentation suggests using Pillow's
Image.fromarray
directly. The following changes totensorboard_logger.py
resolve the issue for me:line 157 change:
line 12 change:
I would be happy to issue a PR with this fix.
The text was updated successfully, but these errors were encountered: