HebHTR icon indicating copy to clipboard operation
HebHTR copied to clipboard

cant use it with error below

Open YanivHaliwa opened this issue 1 year ago • 0 comments

Traceback (most recent call last): File "/home/yaniv/HebHTR/pic.py", line 7, in text = img.imgToWord(iterations=5, decoder_type='word_beam') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yaniv/HebHTR/HebHTR.py", line 14, in imgToWord model = getModel(decoder_type=decoder_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yaniv/HebHTR/predictWord.py", line 26, in getModel model = Model(open(FilePaths.fnCharList).read(), decoderType, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yaniv/HebHTR/Model.py", line 29, in init self.is_train = tf.placeholder(tf.bool, name='is_train') ^^^^^^^^^^^^^^ AttributeError: module 'tensorflow' has no attribute 'placeholder'

YanivHaliwa avatar Jul 20 '23 14:07 YanivHaliwa