@jiamings In your wgan-v2.py, you write
ddx = tf.sqrt(tf.reduce_sum(tf.square(ddx), axis=1))
this will result a shape (50, 64, 64, 3) to (50, 64, 3) in tensorflow 1.6.0.
If I understand right for the paper Improved Training of Wasserstein GANs, this should be
ddx = tf.sqrt(tf.reduce_sum(tf.square(ddx), axis=[1,2,3])) which get a shape of (50,) indicate the batch size.
@jiamings In your
wgan-v2.py
, you writeddx = tf.sqrt(tf.reduce_sum(tf.square(ddx), axis=1))
this will result a shape(50, 64, 64, 3)
to(50, 64, 3)
in tensorflow 1.6.0. If I understand right for the paper Improved Training of Wasserstein GANs, this should beddx = tf.sqrt(tf.reduce_sum(tf.square(ddx), axis=[1,2,3]))
which get a shape of(50,)
indicate the batch size.