Open ChadTaljaardt opened 7 years ago
I took the exact same error. I do not know why but train.py file seems to be wrong or at least wrong for my configuration. I changed some lines in getloss(y,y) function as..
.... digits_loss = tf.nn.softmax_cross_entropy_withlogits(logits= tf.reshape(y[:, 1:],[-1,len(common.CHARS)]), labels=tf.reshape(y[:, 1:], [-1, len(common.CHARS)]))
.... presence_loss = tf.nn.sigmoid_cross_entropy_withlogits(labels=y[:, :1], logits= y[:, :1])
.....
that it run.
From tensorflow v1, only call softmax_cross_entropy_with_logits
with named arguments (labels=..., logits=..., ...).
Tensorflow 0.x, don't need named arguments
shouldn´t it be this instead? Labels are contained in y_ and logits are the output from the neural net
presence_loss = tf.nn.sigmoid_cross_entropy_with_logits(labels=y_[:, :1], logits= y[:, :1])
I think @mazcallu is right, thanks
I have this error running ./train.py. Does anyone know why?