Learning-to-See-in-the-Dark icon indicating copy to clipboard operation
Learning-to-See-in-the-Dark copied to clipboard

Doubt regarding the amplification ratio

Open shivamsaboo17 opened this issue 5 years ago • 1 comments

The code is applying an amplification ratio as min(300, gt_exp / input_exp) and then doing a clip to reduce all values > 1 to 1.0 In some cases, this would cause the entire input packed bayer tensor to be all 1's. Here's histogram of one such input tensor patch Just wanted to clarify if this is okay and what is the intuition of processing an all 1's tensor through a CNN? image

shivamsaboo17 avatar Oct 13 '18 19:10 shivamsaboo17

In this case, this means the GT image contains all ones, which is not in the dataset.

After the ratio is applied, the input should match the brightness of GT, while containing noise and quantization errors. It will not give you all ones if the GT is well-exposed.

cchen156 avatar May 15 '19 06:05 cchen156