gosummer commited on
Commit
2d30254
·
verified ·
1 Parent(s): ddc353d

Upload reflow.yaml

Browse files
Files changed (1) hide show
  1. configs/reflow.yaml +52 -0
configs/reflow.yaml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ data:
2
+ f0_extractor: 'rmvpe' # 'parselmouth', 'dio', 'harvest', 'crepe' or 'rmvpe'
3
+ f0_min: 65 # about C2
4
+ f0_max: 800 # about G5
5
+ sampling_rate: 44100
6
+ block_size: 512 # Equal to hop_length
7
+ duration: 2 # Audio duration during training, must be less than the duration of the shortest audio clip
8
+ encoder: 'contentvec768l12' # 'hubertsoft', 'hubertbase', 'hubertbase768', 'contentvec', 'contentvec768' or 'contentvec768l12' or 'cnhubertsoftfish'
9
+ cnhubertsoft_gate: 10
10
+ encoder_sample_rate: 16000
11
+ encoder_hop_size: 320
12
+ encoder_out_channels: 768 # 256 if using 'hubertsoft'
13
+ encoder_ckpt: pretrain/contentvec/checkpoint_best_legacy_500.pt
14
+ train_path: data/train # Create a folder named "audio" under this path and put the audio clip in it
15
+ valid_path: data/val # Create a folder named "audio" under this path and put the audio clip in it
16
+ extensions: # List of extension included in the data collection
17
+ - wav
18
+ model:
19
+ type: 'RectifiedFlow'
20
+ win_length: 2048
21
+ n_layers: 6
22
+ n_chans: 512
23
+ t_start: 0.7
24
+ use_pitch_aug: true
25
+ n_spk: 1 # max number of different speakers
26
+ device: cuda # training device
27
+ vocoder:
28
+ type: 'nsf-hifigan'
29
+ ckpt: 'pretrain/nsf_hifigan/model'
30
+ infer:
31
+ infer_step: 20
32
+ method: 'euler' # 'euler', 'rk4'
33
+ env:
34
+ expdir: exp/reflow-test
35
+ gpu_id: 0
36
+ train:
37
+ num_workers: 2 # If your cpu and gpu are both very strong, set to 0 may be faster!
38
+ amp_dtype: fp32 # fp32, fp16 or bf16 (fp16 or bf16 may be faster if it is supported by your gpu)
39
+ batch_size: 96
40
+ cache_all_data: true # Save Internal-Memory or Graphics-Memory if it is false, but may be slow
41
+ cache_device: 'cpu' # Set to 'cuda' to cache the data into the Graphics-Memory, fastest speed for strong gpu
42
+ cache_fp16: true
43
+ epochs: 100000
44
+ interval_log: 100
45
+ interval_val: 2000
46
+ interval_force_save: 10000
47
+ lr: 0.0002
48
+ decay_step: 50000
49
+ gamma: 0.5
50
+ weight_decay: 0
51
+ lambda_ddsp: 1
52
+ save_opt: false