Upload config_dit_mel_seed_uvit_xlsr_tiny.yml
Browse files
config_dit_mel_seed_uvit_xlsr_tiny.yml
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
log_dir: "runs/run_mel_seed_uvit_xlsr_tiny"
|
2 |
+
save_freq: 1
|
3 |
+
log_interval: 10
|
4 |
+
save_interval: 500
|
5 |
+
device: "cuda"
|
6 |
+
epochs: 1000 # number of epochs for first stage training (pre-training)
|
7 |
+
batch_size: 2
|
8 |
+
batch_length: 100 # maximum duration of audio in a batch (in seconds)
|
9 |
+
max_len: 80 # maximum number of frames
|
10 |
+
pretrained_model: "DiT_uvit_tat_xlsr_ema.pth"
|
11 |
+
pretrained_encoder: ""
|
12 |
+
load_only_params: False # set to true if do not want to load epoch numbers and optimizer parameters
|
13 |
+
|
14 |
+
preprocess_params:
|
15 |
+
sr: 22050
|
16 |
+
spect_params:
|
17 |
+
n_fft: 1024
|
18 |
+
win_length: 1024
|
19 |
+
hop_length: 256
|
20 |
+
n_mels: 80
|
21 |
+
fmin: 0
|
22 |
+
fmax: 8000
|
23 |
+
|
24 |
+
model_params:
|
25 |
+
dit_type: "DiT" # uDiT or DiT
|
26 |
+
reg_loss_type: "l1" # l1 or l2
|
27 |
+
diffusion_type: "flow"
|
28 |
+
|
29 |
+
timbre_shifter:
|
30 |
+
se_db_path: "./modules/openvoice/checkpoints_v2/converter/se_db.pt"
|
31 |
+
ckpt_path: './modules/openvoice/checkpoints_v2/converter'
|
32 |
+
|
33 |
+
vocoder:
|
34 |
+
type: "hifigan"
|
35 |
+
|
36 |
+
speech_tokenizer:
|
37 |
+
type: 'xlsr'
|
38 |
+
output_layer: 12
|
39 |
+
name: 'facebook/wav2vec2-xls-r-300m'
|
40 |
+
|
41 |
+
style_encoder:
|
42 |
+
dim: 192
|
43 |
+
campplus_path: "campplus_cn_common.bin"
|
44 |
+
|
45 |
+
length_regulator:
|
46 |
+
channels: 384
|
47 |
+
is_discrete: false
|
48 |
+
in_channels: 1024
|
49 |
+
content_codebook_size: 1024
|
50 |
+
sampling_ratios: [1, 1, 1, 1]
|
51 |
+
vector_quantize: false
|
52 |
+
n_codebooks: 2
|
53 |
+
quantizer_dropout: 0.0
|
54 |
+
f0_condition: false
|
55 |
+
n_f0_bins: 512
|
56 |
+
|
57 |
+
DiT:
|
58 |
+
hidden_dim: 384
|
59 |
+
num_heads: 6
|
60 |
+
depth: 9
|
61 |
+
class_dropout_prob: 0.1
|
62 |
+
block_size: 8192
|
63 |
+
in_channels: 80
|
64 |
+
style_condition: true
|
65 |
+
final_layer_type: 'mlp'
|
66 |
+
target: 'mel' # mel or betavae
|
67 |
+
content_dim: 384
|
68 |
+
content_codebook_size: 1024
|
69 |
+
content_type: 'discrete'
|
70 |
+
f0_condition: false
|
71 |
+
n_f0_bins: 512
|
72 |
+
content_codebooks: 1
|
73 |
+
is_causal: false
|
74 |
+
long_skip_connection: false
|
75 |
+
zero_prompt_speech_token: false # for prompt component, do not input corresponding speech token
|
76 |
+
time_as_token: true
|
77 |
+
style_as_token: true
|
78 |
+
uvit_skip_connection: true
|
79 |
+
add_resblock_in_transformer: false
|
80 |
+
|
81 |
+
loss_params:
|
82 |
+
base_lr: 0.0001
|