-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Fix functional.adjust_gamma #5427
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
Conversation
💊 CI failures summary and remediationsAs of commit 9f0cb0a (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
@malfet Are you sure this is the case? import PIL.Image
gamma = 1.0
gain = 1.0
img = PIL.Image.open("test/assets/encode_jpeg/grace_hopper_517x606.jpg")
img = img.convert("RGB")
gamma_map = [(255 + 1 - 1e-3) * gain * pow(ele / 255.0, gamma) for ele in range(256)] * 3
img = img.point(gamma_map) works out fine for me. I don't see anything that should change just from using Python 3.10. Could you point me to a CI run where the error is happening? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@datumbox thank you! All my years at Oculus finally starting to pay off :) |
Co-authored-by: Nikita Shulga <[email protected]>
Reviewed By: jdsgomes Differential Revision: D34475324 fbshipit-source-id: cbee37b84d6454aca4a98c559f20fb2c2a565175
Discovered while trying to enable CI on python-3.10
Apparently array passed to
Image.point
should be array of integers for "RGB" image mode