diff --git a/.compute b/.compute index b32b318e..990886fa 100644 --- a/.compute +++ b/.compute @@ -3,5 +3,5 @@ ls ${SHARED_DIR}/data/ pip3 install https://download.pytorch.org/whl/cu100/torch-1.0.1.post2-cp36-cp36m-linux_x86_64.whl yes | apt-get install espeak python3 setup.py develop -python3 distribute.py --config_path config_cluster.json --data_path ${SHARED_DIR}/data/Blizzard/Nancy/ --restore_path ${USER_DIR}/checkpoint_266000_4400.pth.tar +python3 distribute.py --config_path config_cluster.json --data_path ${SHARED_DIR}/data/Blizzard/Nancy/ --restore_path ${USER_DIR}/best_model_4467.pth.tar # python3 distribute.py --config_path config_cluster.json --data_path ${SHARED_DIR}/data/Blizzard/Nancy/ \ No newline at end of file diff --git a/utils/synthesis.py b/utils/synthesis.py index 167653d9..601d2a48 100644 --- a/utils/synthesis.py +++ b/utils/synthesis.py @@ -45,5 +45,5 @@ def synthesis(model, text, CONFIG, use_cuda, ap, truncated=False): wav = ap.inv_spectrogram(postnet_output.T) else: wav = ap.inv_mel_spectrogram(postnet_output.T) - wav = wav[:ap.find_endpoint(wav)] + # wav = wav[:ap.find_endpoint(wav)] return wav, alignment, decoder_output, postnet_output, stop_tokens \ No newline at end of file diff --git a/utils/text/__init__.py b/utils/text/__init__.py index 2683ddc2..297b4514 100644 --- a/utils/text/__init__.py +++ b/utils/text/__init__.py @@ -46,7 +46,8 @@ def text2phone(text, language): def phoneme_to_sequence(text, cleaner_names, language): - sequence = [_phonemes_to_id['^']] + # sequence = [_phonemes_to_id['^']] + sequence = [] clean_text = _clean_text(text, cleaner_names) phonemes = text2phone(clean_text, language) if phonemes is None: @@ -82,8 +83,8 @@ def text_to_sequence(text, cleaner_names): Returns: List of integers corresponding to the symbols in the text ''' - # sequence = [] - sequence = [_phonemes_to_id['^']] + sequence = [] + # sequence = [_phonemes_to_id['^']] # Check for curly braces and treat their contents as ARPAbet: while len(text): m = _curly_re.match(text)