Open ij00 opened 6 years ago
@ij00 Hello. This is due to old tensorflow installed. You can update tensorflow, just comment that line, or find replacement in your version of tensorflow using google
@ij00 This repository requires tensorflow 1.7 or higher.
@gloriouskilka , @n5-suzuki Thank you for your advice. I will try it again after updating tensorflow.
I have tried to train LJSpeech-1.1 as 'python3 train.py', but I have got an error like this. So, can you tell me which version of tensorflow you used? I used tensorflow 1.3.
Using TensorFlow backend. Traceback (most recent call last): File "train.py", line 11, in
from wavenet_vocoder.train import wavenet_train
File "/repo/Tacotron-2/wavenet_vocoder/train.py", line 16, in
from wavenet_vocoder.models import create_model
File "/repo/Tacotron-2/wavenet_vocoder/models/init.py", line 1, in
from .wavenet import WaveNet
File "/repo/Tacotron-2/wavenet_vocoder/models/wavenet.py", line 10, in
from .modules import (Conv1D1x1, ConvTranspose2D, ConvTranspose1D, DiscretizedMixtureLogisticLoss, Embedding, GaussianMaximumLikelihoodEstimation,
File "/repo/Tacotron-2/wavenet_vocoder/models/modules.py", line 43, in
class WeightNorm(tf.keras.layers.Wrapper):
AttributeError: module 'tensorflow' has no attribute 'keras'
After referring some previous issues, I upgraded tensorflow-gpu to 1.6. But, still it returned an error. Would you help me to solve this issue? For now, I run 'train.py' after commenting out line 43 of 'tacotron/models/custom_decoder.py'
Loaded metadata for 13100 examples (23.23 hours) WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/util/deprecation.py:497: calling conv1d (from tensorflow.python.ops.nn_ops) with data_format=NHWC is deprecated and will be removed in a future version. Instructions for updating:
main()
File "train.py", line 132, in main
train(args, log_dir, hparams)
File "train.py", line 52, in train
checkpoint = tacotron_train(args, log_dir, hparams)
File "/disk1/iljoo/repo/Tacotron-2/tacotron/train.py", line 376, in tacotron_train
return train(log_dir, args, hparams)
File "/disk1/iljoo/repo/Tacotron-2/tacotron/train.py", line 156, in train
model, stats = model_train_mode(args, feeder, hparams, global_step)
File "/disk1/iljoo/repo/Tacotron-2/tacotron/train.py", line 87, in model_train_mode
is_training=True, split_infos=feeder.split_infos)
File "/disk1/iljoo/repo/Tacotron-2/tacotron/models/tacotron.py", line 168, in initialize
CustomDecoder(decoder_cell, self.helper, decoder_init_state),
File "/disk1/iljoo/repo/Tacotron-2/tacotron/models/custom_decoder.py", line 43, in init
rnn_cell_impl.assert_like_rnncell(type(cell), cell)
AttributeError: module 'tensorflow.python.ops.rnn_cell_impl' has no attribute 'assert_like_rnncell'
NHWC
for data_format is deprecated, useNWC
instead Traceback (most recent call last): File "train.py", line 138, in