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

Typo in rgb2lab transform #50

Open
Vlad-C-Crisan opened this issue Aug 11, 2023 · 2 comments · May be fixed by #51
Open

Typo in rgb2lab transform #50

Vlad-C-Crisan opened this issue Aug 11, 2023 · 2 comments · May be fixed by #51
Assignees
Labels
bug Something isn't working

Comments

@Vlad-C-Crisan
Copy link

Vlad-C-Crisan commented Aug 11, 2023

Describe the bug
In THIS LINE from rgb2lab implementation, the value 166 should be 116.

Expected behavior
The line should be changed to arr.masked_scatter_(not_mask, 7.787 * torch.masked_select(arr, not_mask) + 16 / 116) to match numpy implementation (e.g. THIS one from skimage)

@andreped andreped self-assigned this Aug 11, 2023
@andreped
Copy link
Collaborator

Good catch, @Vlad-C-Crisan! Surprising that this has not yet been observed.

I can make a PR.

@andreped andreped linked a pull request Aug 11, 2023 that will close this issue
@andreped andreped added the bug Something isn't working label Aug 11, 2023
@andreped
Copy link
Collaborator

Made PR: #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants