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

Inference on JPG and PNG images #32

Open
tejgvsl opened this issue Dec 11, 2018 · 1 comment
Open

Inference on JPG and PNG images #32

tejgvsl opened this issue Dec 11, 2018 · 1 comment

Comments

@tejgvsl
Copy link

tejgvsl commented Dec 11, 2018

Hi Mr. Hu,
When I try to run the inference on illuminated .PNG or .jpg images, observed the illumination correction is not as good as for the images from the mentioned datasets. Observing a pale pink tint in the corrected output image for various samples.

So does it mean the trained model works only for linear images and in order to make it work for non linear images (jpg, Png) does it need to be re-trained?

@mpaden3
Copy link

mpaden3 commented Feb 2, 2020

The way color constancy CNN models (including this one) work is that they learn how to correct color that camera sensor produces (camera sensitivity function), as well as color from the source of illumination. Therefore, a particular model is only usable on the type of images it was trained on, in this case unprocessed images taken by a particular camera sensor.
Universal estimator using CNN, would require a prestep to remove the impact of camera sensor. Interesting idea can be found in this paper.
https://arxiv.org/pdf/1912.06888.pdf

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

2 participants