jmiller656 / EDSR-Tensorflow

Tensorflow implementation of Enhanced Deep Residual Networks for Single Image Super-Resolution
MIT License
330 stars 107 forks source link

Color issue #6

Closed junhyukk closed 6 years ago

junhyukk commented 6 years ago

Hello, @jmiller656 Thank you for your work! I trained the super resolution models (scale = 4) using General-100 and my own data, but the result image from both models have wrong color like this example.. image

I am just wondering if it is caused by model structure or some trivial problem on your code made the image has wrong color. Thanks.

jmiller656 commented 6 years ago

I think this may be a result of the loss function that I've used (absolute difference). I don't remember if I ended up using this because of the paper, or by my own choice. Surely there are better loss functions than this though. I'll try experimenting and get back to you within the next week with my findings.

Thanks for pointing this out! I'm a bit colorblind and didn't quite notice at first.

junhyukk commented 6 years ago

The EDSR model from the paper used "absolute difference" loss function, so I think it is not the reason why the result was wrong. I tried to find the reason but I couldn't find yet..

If you find the reason, please let me know. Thanks for your answer.

idearibosome commented 6 years ago

I've created a pull request which is related to this issue. (#7)

Br,

junhyukk commented 6 years ago

Hi, @idearibosome Thank you very much! Through your advice, I solved the problem :)

jmiller656 commented 6 years ago

Thanks, @idearibosome. I've just merged your pull request. I'll be closing this issue now.