This commit is contained in:
Eren Golge 2019-06-06 10:24:34 +02:00
parent fef3aecc09
commit 63eea4a364
2 changed files with 2 additions and 2 deletions

View File

@ -12,5 +12,5 @@ python3 setup.py develop
# cp -R ${USER_DIR}/GermanData ../tmp/
# python3 distribute.py --config_path config_tacotron_de.json --data_path ../tmp/GermanData/karlsson/
cp -R ${USER_DIR}/Mozilla_22050 ../tmp/
python3 distribute.py --config_path config_tacotron.json --data_path ../tmp/Mozilla_22050/ --restore_path /data/rw/home/4845.pth.tar
python3 distribute.py --config_path config_tacotron_gst.json --data_path ../tmp/Mozilla_22050/
while true; do sleep 1000000; done

View File

@ -46,7 +46,7 @@ def synthesis(model, text, CONFIG, use_cuda, ap, truncated=False, enable_eos_bos
decoder_output = decoder_output[0].data.cpu().numpy()
alignment = alignments[0].cpu().data.numpy()
# plot results
if CONFIG.model == "Tacotron":
if CONFIG.model in ["Tacotron", "TacotronGST"]:
wav = ap.inv_spectrogram(postnet_output.T)
else:
wav = ap.inv_mel_spectrogram(postnet_output.T)