You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting this error while using the train phase for aocr. Any suggestions would be helpful
Traceback (most recent call last):
File "/usr/local/bin/aocr", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/aocr/main.py", line 251, in main
channels=parameters.channels,
File "/usr/local/lib/python3.6/dist-packages/aocr/model/model.py", line 157, in init
use_gru=use_gru)
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq_model.py", line 145, in init
softmax_loss_function=softmax_loss_function)
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq.py", line 482, in model_with_buckets
int(bucket[0]))
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq_model.py", line 144, in
self.target_weights, buckets, lambda x, y, z: seq2seq_f(x, y, z, False),
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq_model.py", line 126, in seq2seq_f
attn_num_hidden=attn_num_hidden)
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq.py", line 349, in embedding_attention_decoder
initial_state_attention=initial_state_attention, attn_num_hidden=attn_num_hidden)
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq.py", line 178, in attention_decoder
attn_length = attention_states.get_shape()[1].value
AttributeError: 'int' object has no attribute 'value'
The text was updated successfully, but these errors were encountered:
I am getting this error while using the train phase for aocr. Any suggestions would be helpful
Traceback (most recent call last):
File "/usr/local/bin/aocr", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/aocr/main.py", line 251, in main
channels=parameters.channels,
File "/usr/local/lib/python3.6/dist-packages/aocr/model/model.py", line 157, in init
use_gru=use_gru)
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq_model.py", line 145, in init
softmax_loss_function=softmax_loss_function)
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq.py", line 482, in model_with_buckets
int(bucket[0]))
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq_model.py", line 144, in
self.target_weights, buckets, lambda x, y, z: seq2seq_f(x, y, z, False),
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq_model.py", line 126, in seq2seq_f
attn_num_hidden=attn_num_hidden)
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq.py", line 349, in embedding_attention_decoder
initial_state_attention=initial_state_attention, attn_num_hidden=attn_num_hidden)
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq.py", line 178, in attention_decoder
attn_length = attention_states.get_shape()[1].value
AttributeError: 'int' object has no attribute 'value'
The text was updated successfully, but these errors were encountered: