返回 F5-TTS
E2TTS_Base.yaml
根目录 / src / f5_tts / configs / E2TTS_Base.yaml
1 hydra:
2 run:
3 dir: ckpts/${model.name}_${model.mel_spec.mel_spec_type}_${model.tokenizer}_${datasets.name}/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
5 datasets:
6 name: Emilia_ZH_EN # dataset name
7 batch_size_per_gpu: 38400 # 8 GPUs, 8 * 38400 = 307200
8 batch_size_type: frame # frame | sample
9 max_samples: 64 # max sequences per batch if use frame-wise batch_size. we set 32 for small models, 64 for base models
10 num_workers: 16
11
12 optim:
13 epochs: 11
14 learning_rate: 7.5e-5
15 num_warmup_updates: 20000 # warmup updates
16 grad_accumulation_steps: 1 # note: updates = steps / grad_accumulation_steps
17 max_grad_norm: 1.0 # gradient clipping
18 bnb_optimizer: False # use bnb 8bit AdamW optimizer or not
19
20 model:
21 name: E2TTS_Base
22 tokenizer: pinyin
23 tokenizer_path: null # if 'custom' tokenizer, define the path want to use (should be vocab.txt)
24 backbone: UNetT
25 arch:
26 dim: 1024
27 depth: 24
28 heads: 16
29 ff_mult: 4
30 text_mask_padding: False
31 pe_attn_head: 1
32 mel_spec:
33 target_sample_rate: 24000
34 n_mel_channels: 100
35 hop_length: 256
36 win_length: 1024
37 n_fft: 1024
38 mel_spec_type: vocos # vocos | bigvgan
39 vocoder:
40 is_local: False # use local offline ckpt or not
41 local_path: null # local vocoder path
42
43 ckpts:
44 logger: wandb # wandb | tensorboard | null
45 wandb_project: CFM-TTS # wandb project name
46 wandb_run_name: ${model.name}_${model.mel_spec.mel_spec_type}_${model.tokenizer}_${datasets.name} # wandb run name
47 wandb_resume_id: null # wandb run id for resuming, null to auto-detect from checkpoint
48 log_samples: True # infer random sample per save checkpoint. wip, normal to fail with extra long samples
49 save_per_updates: 50000 # save checkpoint per updates
50 keep_last_n_checkpoints: -1 # -1 to keep all, 0 to not save intermediate, > 0 to keep last N checkpoints
51 last_per_updates: 5000 # save last checkpoint per updates
52 save_dir: ckpts/${model.name}_${model.mel_spec.mel_spec_type}_${model.tokenizer}_${datasets.name}
52 lines YAML