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

Discrepancy in pixel values output by the model #42

Open
poitevie opened this issue May 31, 2023 · 0 comments
Open

Discrepancy in pixel values output by the model #42

poitevie opened this issue May 31, 2023 · 0 comments

Comments

@poitevie
Copy link

Hello,

I'm encountering an issue with the model and I was hoping to seek some assistance to resolve it. I have an image that is inputted into the model, which operates on 8-bit pixel values. However, I've noticed that the model outputs slightly different pixel values compared to the input (for example, I expect a pixel unaffected by the mask to retain its original values of 19, 38, 41, but instead, I receive values of 18, 37, 39).

I suspect that this discrepancy could be due to rounding errors or possibly an issue within the "toU8" function, which I have attempted to modify without achieving the desired results. It's crucial for my application to have the exact same pixel values as those passed into the model.

If anyone could kindly offer assistance or guidance on this matter, I would greatly appreciate it.

I'm looking forward to your answer.
Thank you for your time and consideration.

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

No branches or pull requests

1 participant