sk0032 commited on
Commit
8d05ca2
1 Parent(s): 3d77b90

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ trainer_0_log.txt filter=lfs diff=lfs merge=lfs -text
best_model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90e39fe9177629df2629bc23fd262a36924575b0ea94a3dc5431203f0a4388de
3
+ size 997871045
best_model_1143368.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90e39fe9177629df2629bc23fd262a36924575b0ea94a3dc5431203f0a4388de
3
+ size 997871045
checkpoint_1246000.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c6f5cd2cf1e4eebc19d3950a1e1ab97acf3ff908a34961701162948b5420df0
3
+ size 997871109
checkpoint_1247000.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b780bf968c5c0437aa0e430ffaf4fd4d663597a545fbd06b2d061c96d57e2099
3
+ size 997871109
checkpoint_1248000.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a97cfc54f41bb79d3ce87adf2432cb184d39d9baeef0bb53684d9c63248791d
3
+ size 997871109
checkpoint_1248163.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:717d814d4caa8714fb30fda66b54e1619b353a8f8ec591afddaf456ddbdfbdd2
3
+ size 997871109
events.out.tfevents.1694080986.ip-172-16-90-39.ec2.internal.33491.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02a328cef29f84ae994cbe36e3415f6c294def64f62c095c5f3aa35b71740aa7
3
+ size 11934883800
train_vits.py ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ from trainer import Trainer, TrainerArgs
4
+
5
+ from TTS.tts.configs.shared_configs import BaseDatasetConfig
6
+ from TTS.tts.configs.vits_config import VitsConfig
7
+ from TTS.tts.datasets import load_tts_samples
8
+ from TTS.tts.models.vits import Vits, VitsAudioConfig
9
+ from TTS.tts.utils.text.tokenizer import TTSTokenizer
10
+ from TTS.utils.audio import AudioProcessor
11
+
12
+ #output_path = os.path.dirname(os.path.abspath(__file__))
13
+ ##########################################
14
+ #Change this to your dataset directory
15
+ ##########################################
16
+ output_path = os.path.dirname(os.path.abspath(__file__))
17
+ dataset_config = BaseDatasetConfig(
18
+ ##########################################
19
+ #Change this to your dataset directory
20
+ ##########################################
21
+ formatter="ljspeech", meta_file_train="metadata.csv", path="/home/ec2-user/SageMaker/tts-sage/recipes/ljspeech/vits_tts/adam"
22
+
23
+ )
24
+ audio_config = VitsAudioConfig(
25
+ sample_rate=48000, win_length=1024, hop_length=256, num_mels=80, mel_fmin=0, mel_fmax=None
26
+ )
27
+
28
+ config = VitsConfig(
29
+ audio=audio_config,
30
+ run_name="tts-adam-48k",
31
+ batch_size=7,
32
+ eval_batch_size=12,
33
+ batch_group_size=4,
34
+ # num_loader_workers=8,
35
+ num_loader_workers=4,
36
+ num_eval_loader_workers=4,
37
+ run_eval=True,
38
+ test_delay_epochs=-1,
39
+ epochs=100000,
40
+ save_step=1000,
41
+ save_checkpoints=True,
42
+ save_n_checkpoints=4,
43
+ save_best_after=1000,
44
+ #text_cleaner="english_cleaners",
45
+ text_cleaner="multilingual_cleaners",
46
+ use_phonemes=True,
47
+ phoneme_language="en-us",
48
+ phoneme_cache_path=os.path.join(output_path, "phoneme_cache"),
49
+ compute_input_seq_cache=True,
50
+ print_step=25,
51
+ print_eval=True,
52
+ mixed_precision=True,
53
+ output_path=output_path,
54
+ datasets=[dataset_config],
55
+ cudnn_benchmark=False,
56
+ )
57
+
58
+ # INITIALIZE THE AUDIO PROCESSOR
59
+ # Audio processor is used for feature extraction and audio I/O.
60
+ # It mainly serves to the dataloader and the training loggers.
61
+ ap = AudioProcessor.init_from_config(config)
62
+
63
+ # INITIALIZE THE TOKENIZER
64
+ # Tokenizer is used to convert text to sequences of token IDs.
65
+ # config is updated with the default characters if not defined in the config.
66
+ tokenizer, config = TTSTokenizer.init_from_config(config)
67
+
68
+ # LOAD DATA SAMPLES
69
+ # Each sample is a list of ```[text, audio_file_path, speaker_name]```
70
+ # You can define your custom sample loader returning the list of samples.
71
+ # Or define your custom formatter and pass it to the `load_tts_samples`.
72
+ # Check `TTS.tts.datasets.load_tts_samples` for more details.
73
+ train_samples, eval_samples = load_tts_samples(
74
+ dataset_config,
75
+ eval_split=True,
76
+ eval_split_max_size=config.eval_split_max_size,
77
+ eval_split_size=config.eval_split_size,
78
+ )
79
+
80
+ # init model
81
+ model = Vits(config, ap, tokenizer, speaker_manager=None)
82
+
83
+ # init the trainer and begin
84
+ trainer = Trainer(
85
+ TrainerArgs(),
86
+ config,
87
+ output_path,
88
+ model=model,
89
+ train_samples=train_samples,
90
+ eval_samples=eval_samples,
91
+ )
92
+ trainer.fit()
trainer_0_log.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e20f71fe66445d21578b934d7051c27366a0e0bae7668cbb0acdfb4b656f32e7
3
+ size 21721515
trainer_1_log.txt ADDED
File without changes
trainer_2_log.txt ADDED
File without changes
trainer_3_log.txt ADDED
File without changes
trainer_4_log.txt ADDED
File without changes
trainer_5_log.txt ADDED
File without changes
trainer_6_log.txt ADDED
File without changes
trainer_7_log.txt ADDED
File without changes