Attention-OCR icon indicating copy to clipboard operation
Attention-OCR copied to clipboard

During the execution of "Test and visualize attention results" i am getting error:

Open arsalan993 opened this issue 6 years ago • 4 comments

I ran this command "python src/launcher.py --phase=test --visualize --data-path=evaluation_data/svt/test.txt --data-base-dir=evaluation_data/svt --log-path=log.txt --load-model --model-dir=model --output-dir=results"

my tensorflow version is 1.4 on both version of python and i get this error Traceback (most recent call last): File "src/launcher.py", line 11, in <module> from model.model import Model File "/home/test/Desktop/Attention-OCR/src/model/model.py", line 17, in <module> from .seq2seq_model import Seq2SeqModel File "/home/test/Desktop/Attention-OCR/src/model/seq2seq_model.py", line 33, in <module> from .seq2seq import model_with_buckets File "/home/test/Desktop/Attention-OCR/src/model/seq2seq.py", line 73, in <module> linear = rnn_cell._linear # pylint: disable=protected-access AttributeError: 'module' object has no attribute '_linear'

arsalan993 avatar Feb 22 '18 05:02 arsalan993

I got the same error. Change tensorflow to some other previous version and run it again.

rahul1906 avatar Feb 26 '18 07:02 rahul1906

Install tensorflow==1.0 (#42)

mvrozanti avatar Nov 04 '18 15:11 mvrozanti

Or instead of changing the version, this issue is solved by #71

famunir avatar Nov 12 '18 04:11 famunir

in my case, i set environment as follows;

  • python 3.5
  • tensorflow==1.0
  • cudatoolkit==9.0 (conda install -c anaconda cudatoolkit==9.0)

kspook avatar Dec 20 '18 01:12 kspook