xinntao / ESRGAN

ECCV18 Workshops - Enhanced SRGAN. Champion PIRM Challenge on Perceptual Super-Resolution. The training codes are in BasicSR.
https://github.com/xinntao/BasicSR
Apache License 2.0
6.02k stars 1.07k forks source link

the pix loss #39

Open jilner opened 5 years ago

jilner commented 5 years ago

Thank you very much for you job firstly When I try to exchange l_g_pix = self.l_pix_w self.cri_pix(self.fake_H, self.var_H) with l_g_pix = self.l_pix_w self.cri_pix(self.var_H,self.fake_H), I found the value of l_g_pix is differend ,How to explain this?

Hope for reply

xinntao commented 5 years ago

It is strange because cri_pix is position-independent. Can you attach your log or provide more details?