aitorzip / PyTorch-SRGAN

A modern PyTorch implementation of SRGAN
https://arxiv.org/abs/1609.04802
GNU General Public License v3.0
361 stars 92 forks source link

The loss of discriminator #6

Closed weizequan closed 6 years ago

weizequan commented 6 years ago

Hi, for traget_real (line 179 of train file), why not use ones_const? for target_fake(line 180 of train file), why not use zeros_const?

aitorzip commented 6 years ago

It helps with stability, check this out: https://github.com/soumith/ganhacks