deep-anpr
deep-anpr copied to clipboard
train.py ERROR
I have :
Traceback (most recent call last):
File "/Users/alpullu/Downloads/deep-anpr/train.py", line 266, in softmax_cross_entropy_with_logits
with named arguments (labels=..., logits=..., ...)
my tensorflow version : 1.3
Hi!
Change the whole line with this line :
digits_loss = tf.nn.softmax_cross_entropy_with_logits( logits=tf.reshape(y[:, 1:], [-1, len(common.CHARS)]), labels=tf.reshape(y_[:, 1:], [-1, len(common.CHARS)]))
@MansourTrabelsi Not really working.
@ranju2015 could you share more details? I encountered 2 locations with similar error (sigmoid_cross_entropy_with_logits and softmax_cross_entropy_with_logits), and after fixing as @MansourTrabelsi said, it worked.