-
Notifications
You must be signed in to change notification settings - Fork 322
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
Fixes #1659: Convert image mode I;16 to RGB #1664
Conversation
Hi @haianhng31! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
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.
Thanks a ton for taking this on! I am convinced by your unittests that your PR fixes this issue, but if you can confirm that you can generate a reproduction of the condition with them in your test plan in the summary, I'll be doubly convinced.
A few concerns about the test images, since they appear to be from reddit user data. We don't want to include images we don't have the rights to.
You have a few options for generating test data:
- Produce the image yourself (essentially donating it the repo)
- Algorithmically generate the image by generating noise, random data, etc.
- Mody images in pdq/data/bridge_pics to generate the case, since those were generated by RFC: Python Library for ThreatExchange #1 by a previous author.
We cannot do:
- Images on the internet that we find (even if they are sites purporting to be public domain, because people can re-host images there)
- Known copyrighted images
Can you try and produce a local reproduction by using the bridge pics? That might be nicest because those hashes have a known value.
Hi @Dcallies,
|
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.
Hmm, I had a reply that seems to have never been submitted -
The reason that your quality is low is that the image quality is low - it's just random noise, and PDQ can detect that and advise against using it for matching!
Instead, we should do as Daniel recommended, which is to use the bridge-mod images, and just convert them. Since this has been sitting for a long time, and there's nothing blocking about this PR, suggest we merge this and iterate if need be.
== Summary ==
== Test Plan ==