Closed CemEntok closed 1 year ago
Hi, @CemEntok. Thank you for your interest about our work. tint_map is a kind of illumination map, which is a combination of illumination chromaticity and mixture map (⍺ in the paper). Illumination chromaticity is a G=1 normalized vector, and it's R,B component is also positive. Mixture map, which is a kind of ratio map of intensity channel (we approximate this with G channel) also has only 0 or positive values. So under normal circumstances, tint_map cannot have negative numbers as values.
Hello, In dataloader_v4.py:
random augmentation to input image is applied here. However, when tint_map has negative values, input_rgb image would have also negative values and then:
image_rgb
goes into this function and logarithm gets negative values. Therefore,img_uvl
got NaN values.How would you rain and obtain your results with using augmentation without having NaN issue mentioned here?
A workaround might be limiting
tint_map
matrix to have 0 for negative elements of itself but this might affect the reproducing your results badly.Looking forward to hearing from you and thank you!
Cem