wgan-gp
wgan-gp copied to clipboard
mone in generator
Hi,
In the gan training code, since you have already used gen_cost.backward(mone) for generator, why are you still doing gen_cost = -gen_cost
i.e, should it not be
- just
gen_cost.backward(mone)or -
gen_cost.backward()and thengen_cost = gen_cost*-1Please correct me if I am wrong.
shouldnt it be 1 instead of -1, the generator should learn to output such a way that the crtiic believes there are real i.e 1 and not -1?