mirror of https://github.com/coqui-ai/TTS.git
commit
20ee7c0b9a
|
@ -82,13 +82,13 @@ if __name__ == "__main__":
|
||||||
linear_len = linear.shape[1]
|
linear_len = linear.shape[1]
|
||||||
np.save(linear_path, linear, allow_pickle=False)
|
np.save(linear_path, linear, allow_pickle=False)
|
||||||
output.insert(2, linear_path+".npy")
|
output.insert(2, linear_path+".npy")
|
||||||
|
assert mel_len == linear_len
|
||||||
if args.process_audio:
|
if args.process_audio:
|
||||||
audio_file = file_name + "_audio"
|
audio_file = file_name + "_audio"
|
||||||
audio_path = os.path.join(CACHE_PATH, 'audio', audio_file)
|
audio_path = os.path.join(CACHE_PATH, 'audio', audio_file)
|
||||||
np.save(audio_path, x, allow_pickle=False)
|
np.save(audio_path, x, allow_pickle=False)
|
||||||
del output[0]
|
del output[0]
|
||||||
output.insert(0, audio_path+".npy")
|
output.insert(0, audio_path+".npy")
|
||||||
assert mel_len == linear_len
|
|
||||||
return output
|
return output
|
||||||
|
|
||||||
|
|
||||||
|
|
2
train.py
2
train.py
|
@ -478,7 +478,7 @@ if __name__ == '__main__':
|
||||||
default=False,
|
default=False,
|
||||||
help='Do not verify commit integrity to run training.')
|
help='Do not verify commit integrity to run training.')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--data_path', type=str, help='dataset path.', default='Defines the data path. It overwrites config.json.')
|
'--data_path', type=str, help='Defines the data path. It overwrites config.json.', default='')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# setup output paths and read configs
|
# setup output paths and read configs
|
||||||
|
|
Loading…
Reference in New Issue