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

simplify load image #218

Merged
merged 1 commit into from
Sep 10, 2021
Merged

simplify load image #218

merged 1 commit into from
Sep 10, 2021

Conversation

dvdhfnr
Copy link
Collaborator

@dvdhfnr dvdhfnr commented Sep 7, 2021

decode_image can handle different formats and allows to direclty specify channels and dtype

@dvdhfnr dvdhfnr requested a review from thias15 September 8, 2021 12:50
@thias15
Copy link
Collaborator

thias15 commented Sep 8, 2021

Did you test this? I don't see the dtype option in the docs.
https://www.tensorflow.org/api_docs/python/tf/io/decode_jpeg

@dvdhfnr
Copy link
Collaborator Author

dvdhfnr commented Sep 10, 2021

Did you test this? I don't see the dtype option in the docs.
https://www.tensorflow.org/api_docs/python/tf/io/decode_jpeg

Yes. Pls note that I am using https://www.tensorflow.org/api_docs/python/tf/io/decode_image

@thias15
Copy link
Collaborator

thias15 commented Sep 10, 2021

Did you test this? I don't see the dtype option in the docs.
https://www.tensorflow.org/api_docs/python/tf/io/decode_jpeg

Yes. Pls note that I am using https://www.tensorflow.org/api_docs/python/tf/io/decode_image

Makes sense. Thanks!

@thias15 thias15 merged commit ac40bc3 into master Sep 10, 2021
@thias15 thias15 deleted the dvdhfnr/load-image branch September 11, 2021 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants