TripleGAN-Tensorflow icon indicating copy to clipboard operation
TripleGAN-Tensorflow copied to clipboard

Can not get the same test accuracy as yours

Open LitterQ opened this issue 6 years ago • 3 comments

I can't get the same test accuracy as yours with --n 4000 --epoch 1000 --batch_size 20 --unlabel_batch_size 250 --z_dim 100, my test accuracy is only about 66% ? What may be the problem?

LitterQ avatar Jun 15 '18 01:06 LitterQ

Cannot reproduce the reported accuracy. Also, the following code looks weird to me. max_c = tf.cast(tf.argmax(Y_c, axis=1), tf.float32) c_loss_dis = tf.reduce_mean(max_c * tf.nn.softmax_cross_entropy_with_logits(logits=D_cla_logits, labels=tf.ones_like(D_cla)))

I changed the code to max_c = tf.max(Y_c, axis=1) c_loss_dis = tf.reduce_mean(max_c * sigmoid_cross_entropy_with_logits(logits=D_cla_logits, labels=tf.ones_like(D_cla))) The best acc I got so far is 69%.

The original theano implementation uses mean_batch_normalization, ZCA_whitenning, weight_normalization, and casts Y_c into one-hot encoding instead of distributions. May these differences lead to a 20% improvement of acc?

fYYw avatar Jul 02 '18 04:07 fYYw

Have any of you figured out the reason for low accuracy?

leao1995 avatar Apr 28 '19 15:04 leao1995

I got 66% accuracy.

roomo7time avatar Feb 19 '20 01:02 roomo7time