barronalex / Tacotron

Implementation of Google's Tacotron in TensorFlow
236 stars 80 forks source link

Inference error #31

Open kaushikb258 opened 5 years ago

kaushikb258 commented 5 years ago

Hello,

I downloaded the Nancy weights and tried 'python3 test.py < prompts.txt' with one sentence in the prompts.txt file. I get the following error. Is this a tensorflow version issue? I'm on Ubuntu 16.04 and my TF version is 1.12.0:

Traceback (most recent call last): File "test.py", line 91, in test(model, config, prompts) File "test.py", line 31, in test model = model(config, batch_inputs, train=False) File "/home/kbalak18/Tacotron/models/tacotron.py", line 191, in init self.seq2seq_output, self.output = self.inference(inputs, train) File "/home/kbalak18/Tacotron/models/tacotron.py", line 137, in inference (seq2seqoutput, ), attentionstate, = decoder.dynamic_decode(dec, maximum_iterations=config.max_decode_iter) File "/home/kbalak18/anaconda3/lib/python3.6/site-packages/tensorflow/contrib/seq2seq/python/ops/decoder.py", line 209, in dynamic_decode zero_outputs = _create_zero_outputs(decoder.output_size, File "/home/kbalak18/anaconda3/lib/python3.6/site-packages/tensorflow/contrib/seq2seq/python/ops/basic_decoder.py", line 101, in output_size sample_id=self._helper.sample_ids_shape) File "/home/kbalak18/anaconda3/lib/python3.6/site-packages/tensorflow/contrib/seq2seq/python/ops/helper.py", line 144, in sample_ids_shape return self._sample_ids_shape AttributeError: 'InferenceHelper' object has no attribute '_sample_ids_shape'