Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

IC pipeline to accept PNG images#870

Merged
dbogunowicz merged 3 commits into
mainfrom
feature/damian/pngs
Jan 20, 2023
Merged

IC pipeline to accept PNG images#870
dbogunowicz merged 3 commits into
mainfrom
feature/damian/pngs

Conversation

@dbogunowicz

@dbogunowicz dbogunowicz commented Jan 20, 2023

Copy link
Copy Markdown
Contributor

PIL reads PNG images as RGBA by default, causing an error later on in the pipeline as all images are assumed to have three channels. This PR makes sure that whatever is being returned by PIL, has 3 dimensions

Testing:

  • manually tested the result of the pipeline for an input JPG image (the result does not change after introducing this PR)
  • made sure that the PNG image gets properly inferred (the image below results in top 3 labels labels=["banana", "orange", "lemon"])image

@mwitiderrick

Copy link
Copy Markdown
Contributor

Worked
image

mwitiderrick
mwitiderrick previously approved these changes Jan 20, 2023
@dbogunowicz dbogunowicz merged commit 1634419 into main Jan 20, 2023
@dbogunowicz dbogunowicz deleted the feature/damian/pngs branch January 20, 2023 12:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants