Skip to content
New issue

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

pil_to_tensor accimage backend return uint8 #3109

Merged
merged 1 commit into from
Dec 4, 2020

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