Update train_vits-2.py
Browse files- train_vits-2.py +2 -1
train_vits-2.py
CHANGED
@@ -10,7 +10,7 @@ from TTS.tts.models.vits import CharactersConfig, Vits, VitsArgs, VitsAudioConf
|
|
10 |
from TTS.tts.utils.text.tokenizer import TTSTokenizer
|
11 |
from TTS.utils.audio import AudioProcessor
|
12 |
from TTS.tts.utils.speakers import SpeakerManager
|
13 |
-
|
14 |
|
15 |
output_path = os.path.dirname(os.path.abspath(__file__))
|
16 |
|
@@ -134,6 +134,7 @@ tokenizer, config = TTSTokenizer.init_from_config(config)
|
|
134 |
# Load all the datasets samples and split traning and evaluation sets
|
135 |
train_samples, eval_samples = load_tts_samples(
|
136 |
config.datasets,
|
|
|
137 |
eval_split=True,
|
138 |
eval_split_max_size=config.eval_split_max_size,
|
139 |
eval_split_size=config.eval_split_size,
|
|
|
10 |
from TTS.tts.utils.text.tokenizer import TTSTokenizer
|
11 |
from TTS.utils.audio import AudioProcessor
|
12 |
from TTS.tts.utils.speakers import SpeakerManager
|
13 |
+
from TTS.tts.datasets.formatters import mozilla_with_speaker
|
14 |
|
15 |
output_path = os.path.dirname(os.path.abspath(__file__))
|
16 |
|
|
|
134 |
# Load all the datasets samples and split traning and evaluation sets
|
135 |
train_samples, eval_samples = load_tts_samples(
|
136 |
config.datasets,
|
137 |
+
formatter=mozilla_with_speaker,
|
138 |
eval_split=True,
|
139 |
eval_split_max_size=config.eval_split_max_size,
|
140 |
eval_split_size=config.eval_split_size,
|