Skip to content

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Jul 12, 2021

png decoding tests are currently failing. Looking into it, the issue appeared in pillow 8.3 and I reported it in python-pillow/Pillow#5593 (comment). The problem comes from PIL not properly setting the transparency channel of some images.

This is a temporary workaround (we ignore the check in those conditions) which should be removed once the fix is published in pillow.

As a bonus this uses torch.testing.assert_close instead of torch.allclose

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@NicolasHug NicolasHug merged commit bf2fe56 into pytorch:master Jul 12, 2021
facebook-github-bot pushed a commit that referenced this pull request Jul 27, 2021
…de_png (#4167)

Reviewed By: fmassa

Differential Revision: D29932697

fbshipit-source-id: 354d2aa97cd865b87864ccc8cb7e1d7722bbaf64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants