Skip to content

Conversation

fmassa
Copy link
Member

@fmassa fmassa commented Dec 3, 2020

accimage always stores images as uint8, so let's be compatible with the internal representation and return uint8 as well.
Tests were failing without this as it would return a float32 image normalized between 0-1, but we don't have accimage installed in CI anymore so this wasn't caught before.

accimage always stores images as uint8, so let's be compatible with the internal representation. Tests were failing without this as it would return a float32 image normalized between 0-1
Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

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

LGTM.

@fmassa fmassa merged commit 2780c88 into pytorch:master Dec 4, 2020
@fmassa fmassa deleted the fix-pil_to_tensor_accimage branch December 4, 2020 09:37
vfdev-5 pushed a commit to Quansight/vision that referenced this pull request Dec 4, 2020
accimage always stores images as uint8, so let's be compatible with the internal representation. Tests were failing without this as it would return a float32 image normalized between 0-1
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