models
models copied to clipboard
fix contrast()
Description
The mean pixel value should be weighted average of the histogram. google-research/big_vision and tensorflow/tpu have the same bug so ideally should be fixed in the same way.
Type of change
- [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Tests
See https://github.com/google-research/big_vision/issues/109 for details.
Checklist
- [x] I have signed the Contributor License Agreement.
- [x] I have read guidelines for pull request.
- [x] My code follows the coding guidelines.
- [x] I have performed a self code review of my own code.
- [x] My changes generate no new warnings.
Hi @yeqingli,
Could you please review this PR. Thank You