Upload 2 files
Browse files- config_dit_mel_seed.yml +79 -0
- hifigan.yml +25 -0
config_dit_mel_seed.yml
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
log_dir: "./runs/run_dit_mel_seed"
|
2 |
+
save_freq: 1
|
3 |
+
log_interval: 10
|
4 |
+
save_interval: 1000
|
5 |
+
device: "cuda"
|
6 |
+
epochs: 1000 # number of epochs for first stage training (pre-training)
|
7 |
+
batch_size: 4
|
8 |
+
batch_length: 100 # maximum duration of audio in a batch (in seconds)
|
9 |
+
max_len: 80 # maximum number of frames
|
10 |
+
pretrained_model: ""
|
11 |
+
pretrained_encoder: ""
|
12 |
+
load_only_params: False # set to true if do not want to load epoch numbers and optimizer parameters
|
13 |
+
|
14 |
+
F0_path: "modules/JDC/bst.t7"
|
15 |
+
|
16 |
+
preprocess_params:
|
17 |
+
sr: 22050
|
18 |
+
spect_params:
|
19 |
+
n_fft: 1024
|
20 |
+
win_length: 1024
|
21 |
+
hop_length: 256
|
22 |
+
n_mels: 80
|
23 |
+
|
24 |
+
model_params:
|
25 |
+
dit_type: "DiT" # uDiT or DiT
|
26 |
+
reg_loss_type: "l2" # l1 or l2
|
27 |
+
|
28 |
+
speech_tokenizer:
|
29 |
+
path: "speech_tokenizer_v1.onnx"
|
30 |
+
|
31 |
+
style_encoder:
|
32 |
+
dim: 192
|
33 |
+
campplus_path: "campplus_cn_common.bin"
|
34 |
+
|
35 |
+
DAC:
|
36 |
+
encoder_dim: 64
|
37 |
+
encoder_rates: [2, 5, 5, 6]
|
38 |
+
decoder_dim: 1536
|
39 |
+
decoder_rates: [ 6, 5, 5, 2 ]
|
40 |
+
sr: 24000
|
41 |
+
|
42 |
+
length_regulator:
|
43 |
+
channels: 768
|
44 |
+
is_discrete: true
|
45 |
+
content_codebook_size: 4096
|
46 |
+
in_frame_rate: 50
|
47 |
+
out_frame_rate: 80
|
48 |
+
sampling_ratios: [1, 1, 1, 1]
|
49 |
+
|
50 |
+
DiT:
|
51 |
+
hidden_dim: 768
|
52 |
+
num_heads: 12
|
53 |
+
depth: 12
|
54 |
+
class_dropout_prob: 0.1
|
55 |
+
block_size: 4096
|
56 |
+
in_channels: 80
|
57 |
+
style_condition: true
|
58 |
+
final_layer_type: 'wavenet'
|
59 |
+
target: 'mel' # mel or codec
|
60 |
+
content_dim: 768
|
61 |
+
content_codebook_size: 1024
|
62 |
+
content_type: 'discrete'
|
63 |
+
f0_condition: false
|
64 |
+
n_f0_bins: 512
|
65 |
+
content_codebooks: 1
|
66 |
+
is_causal: false
|
67 |
+
long_skip_connection: true
|
68 |
+
zero_prompt_speech_token: false # for prompt component, do not input corresponding speech token
|
69 |
+
|
70 |
+
wavenet:
|
71 |
+
hidden_dim: 768
|
72 |
+
num_layers: 8
|
73 |
+
kernel_size: 5
|
74 |
+
dilation_rate: 1
|
75 |
+
p_dropout: 0.2
|
76 |
+
style_condition: true
|
77 |
+
|
78 |
+
loss_params:
|
79 |
+
base_lr: 0.0001
|
hifigan.yml
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
hift:
|
2 |
+
in_channels: 80
|
3 |
+
base_channels: 512
|
4 |
+
nb_harmonics: 8
|
5 |
+
sampling_rate: 22050
|
6 |
+
nsf_alpha: 0.1
|
7 |
+
nsf_sigma: 0.003
|
8 |
+
nsf_voiced_threshold: 10
|
9 |
+
upsample_rates: [8, 8]
|
10 |
+
upsample_kernel_sizes: [16, 16]
|
11 |
+
istft_params:
|
12 |
+
n_fft: 16
|
13 |
+
hop_len: 4
|
14 |
+
resblock_kernel_sizes: [3, 7, 11]
|
15 |
+
resblock_dilation_sizes: [[1, 3, 5], [1, 3, 5], [1, 3, 5]]
|
16 |
+
source_resblock_kernel_sizes: [7, 11]
|
17 |
+
source_resblock_dilation_sizes: [[1, 3, 5], [1, 3, 5]]
|
18 |
+
lrelu_slope: 0.1
|
19 |
+
audio_limit: 0.99
|
20 |
+
f0_predictor:
|
21 |
+
num_class: 1
|
22 |
+
in_channels: 80
|
23 |
+
cond_channels: 512
|
24 |
+
|
25 |
+
pretrained_model_path: "hift.pt"
|