-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when i train"train_generation_model",i meet the problem #43
Comments
tensorflow version |
change all copies of "D_legit, tf.ones_like(D_legit)" to something like "legits=D_legit, labels=tf.ones_like(D_legit)" |
in the view steering model.py file Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
when i train"train_generation_model",i meet the problem
Traceback (most recent call last):
File "./train_generative_model.py", line 160, in
g_train, d_train, sampler, saver, loader, extras = get_model(sess=sess, name=args.name, batch_size=args.batch, gpu=args.gpu)
File "/home/sues/Desktop/research-master/research-master/models/autoencoder.py", line 171, in get_model
d_loss_legit = tf.reduce_mean(tf.nn.sigmoid_cross_entropy_with_logits(D_legit, tf.ones_like(D_legit)))
File "/home/sues/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/nn_impl.py", line 146, in sigmoid_cross_entropy_with_logits
_sentinel, labels, logits)
File "/home/sues/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/nn_ops.py", line 1533, in _ensure_xent_args
"named arguments (labels=..., logits=..., ...)" % name)
ValueError: Only call sigmoid_cross_entropy_with_logits with named arguments (labels=..., logits=..., ...)
is someone do it successfully?
thanks
The text was updated successfully, but these errors were encountered: