tensorflow-ocr icon indicating copy to clipboard operation
tensorflow-ocr copied to clipboard

train_letters.py not running

Open RaziAhm opened this issue 6 years ago • 4 comments

Traceback (most recent call last): File "train_letters.py", line 61, in net.train(data=data, dropout=.6, display_step=10, test_step=1000) # run resume File "/usr/local/lib/python3.5/dist-packages/layer/net.py", line 438, in train tf.add_check_numerics_ops() File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/numerics.py", line 90, in add_check_numerics_ops raise ValueError("tf.add_check_numerics_ops() is not compatible " ValueError: tf.add_check_numerics_ops() is not compatible with TensorFlow control flow operations such as tf.cond() or tf.while_loop().

RaziAhm avatar Feb 11 '18 18:02 RaziAhm

i met this err too my tensorflow version is 1.4.0 i guess use last version is ok

gewenpulan avatar Mar 02 '18 08:03 gewenpulan

just tried with tensorflow 1.5.0 ok

pannous avatar Mar 02 '18 10:03 pannous

reinstall!

Parkwdllcr avatar Mar 04 '18 02:03 Parkwdllcr

I tried with different versions of Tensorflow including 1.5.0, but I still get the same error:

learning_rate: 0.000300
Traceback (most recent call last):
  File "train_letters.py", line 61, in <module>
    net.train(data=data, dropout=.6, display_step=10, test_step=1000) # run resume
  File "~/.virtualenvs/hocr/lib/python3.6/site-packages/layer/net.py", line 438, in train
    tf.add_check_numerics_ops()
  File "~/.virtualenvs/hocr/lib/python3.6/site-packages/tensorflow/python/ops/numerics.py", line 90, in add_check_numerics_ops
    raise ValueError("`tf.add_check_numerics_ops() is not compatible "
ValueError: `tf.add_check_numerics_ops() is not compatible with TensorFlow control flow operations such as `tf.cond()` or `tf.while_loop()`.

maky-hnou avatar Jan 02 '19 14:01 maky-hnou