A Tensorflow model for text recognition (CNN + seq2seq with visual attention) available as a Python package and compatible with Google Cloud ML Engine.
MIT License
1.08k
stars
256
forks
source link
decoder_inputs' first element is not matched with GO flag's index #131
Second, decoder_inputs will be filled with value 0 in model.py:
self.decoder_inputs = []
self.target_weights = []
for i in xrange(self.decoder_size + 1):
self.decoder_inputs.append(
tf.tile([0], [num_images])
)
In train mode, it is ok because decoder_inputs will be filled with ground truth labels, but in predict mode, first element of decoder_inputs will be 0, and it is not the correct index for GO flag. Am I right?
First of all, you define
GO
flag's index as 1 indata_gen.py
:Second,
decoder_inputs
will be filled with value 0 inmodel.py
:In train mode, it is ok because
decoder_inputs
will be filled with ground truth labels, but in predict mode, first element ofdecoder_inputs
will be 0, and it is not the correct index forGO
flag. Am I right?