From 9e84c8a623ad75cd72abbdf17a91e63cdf2a731b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=B6lge?= Date: Wed, 10 Mar 2021 15:13:55 +0100 Subject: [PATCH] do not copy scale_stats if exist in the output folder --- TTS/utils/io.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TTS/utils/io.py b/TTS/utils/io.py index 1eb5e630..03fd810b 100644 --- a/TTS/utils/io.py +++ b/TTS/utils/io.py @@ -75,4 +75,5 @@ def copy_model_files(c, config_file, out_path, new_fields): # copy model stats file if available if c.audio['stats_path'] is not None: copy_stats_path = os.path.join(out_path, 'scale_stats.npy') - copyfile(c.audio['stats_path'], copy_stats_path) + if not os.path.exists(copy_stats_path): + copyfile(c.audio['stats_path'], copy_stats_path, )