cwgan-gp icon indicating copy to clipboard operation
cwgan-gp copied to clipboard

gradient_penalty get negative value

Open kiraracreams opened this issue 5 years ago • 1 comments

according to the definition of gradient_penalty,it's impossible that get a negative value.why did I get a positive value?

kiraracreams avatar May 09 '19 04:05 kiraracreams

disc_cost = tf.reduce_mean(disc_fake) - tf.reduce_mean(disc_real) + LAMBDA*gradient_penalty

gradient_penalty can't be negative but the other 2 terms can be.

kongyanye avatar Jun 21 '19 06:06 kongyanye