dmarnerides / hdr-expandnet

Training and inference code for ExpandNet
Other
201 stars 40 forks source link

First line almost black #4

Closed martinmCGG closed 5 years ago

martinmCGG commented 5 years ago

Hello,

I have noticed the prediction images contain darkened first line (and also the left and right borders). It might be caused by zero-padding in the Conv2D layer, but I have not investigated the issue in-depth.

Example input image: gcanyon_c_yumapoint_3k exr

Original pixel values (a screenshot of the tev image viewer):

screen shot 2019-02-09 at 16 23 10

Prediction result with the artifact:

screen shot 2019-02-09 at 16 23 13

Please let me know in case you need more information.

dmarnerides commented 5 years ago

Hi, sorry for the late response. I replicated the issue and found the culprit. It was the replacespecials function which was attempting to remove infs and NaNs from the input. It wasn't properly working so I just removed it since it doesn't add much value, and it fixes the problem.