da03 / Attention-OCR

Visual Attention based OCR
MIT License
1.12k stars 363 forks source link

I switched to tensorflow 0.12.1 and Keras 1.1.1 but now i am getting this error #66

Open arsalan993 opened 6 years ago

arsalan993 commented 6 years ago

CNN outdim before squeeze: (?, 1, ?, 512) CNN outdim: (?, ?, 512) Traceback (most recent call last): File "src/launcher.py", line 146, in main(sys.argv[1:], exp_config.ExpConfig) File "src/launcher.py", line 142, in main session = sess) File "/home/test/Desktop/Attention-OCR/src/model/model.py", line 135, in init self.concat_conv_output = tf.concat(axis=1, values=[self.conv_output, self.zero_paddings]) TypeError: concat() got an unexpected keyword argument 'axis'

al-jwarizmi commented 6 years ago

I have the same issue, did you manage to solve it?

arsalan993 commented 6 years ago

NOO

al-jwarizmi commented 6 years ago

I tried on an environment with Tensorflow 1.2 and keras 2.0 and this specific error got fixed.

SJHBXShub commented 6 years ago

hello, did you change the original code when you run on the environment with Tensorflow 1.2 and Keras 2.0 @alfredolozano

al-jwarizmi commented 6 years ago

I don't think so, what is your error message?

XuXuanhui commented 5 years ago

self.concat_conv_output = tf.concat(axis=1, values=[self.conv_output, self.zero_paddings])

instead with self.concat_conv_output = tf.concat(1, [self.conv_output, self.zero_paddings])