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

Skip encode image as jpeg if no-resize is specified #359

Merged
merged 5 commits into from
Apr 18, 2024

Conversation

PacificDou
Copy link
Collaborator

Description

Inference_sdk will forcibly encode image as jpeg (and then convert to base64 string) before sending request to inference server, this is not necessary and not expected.
We have the requirement from Duolingo that they want to keep the original image quality, but jpeg encoding will degrade image quality and affect the inference results.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How has this change been tested, please provide a testcase or example of how you tested the change?

Tested locally.

@PawelPeczek-Roboflow
Copy link
Collaborator

please cover with some test

@PacificDou PacificDou merged commit f78f5a2 into main Apr 18, 2024
26 checks passed
@PacificDou PacificDou deleted the bugfix/skip-jpeg-encode-in-sdk-if-no-resize branch April 18, 2024 15:58
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.

None yet

4 participants