add codec
Browse files- codec/ckpt_01135000.pth +3 -0
- codec/config.yaml +126 -0
codec/ckpt_01135000.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:52b341c9dc01b019d126d56858261812ae8c0f92a7497d6842057bbef4ff7697
|
3 |
+
size 291809077
|
codec/config.yaml
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
########### model config ###########
|
3 |
+
generator:
|
4 |
+
name: SoundStream
|
5 |
+
config:
|
6 |
+
n_filters: 32
|
7 |
+
D: 256
|
8 |
+
#target_bandwidths: [6,] # [1, 1.5, 2, 4, 6] # [0.5, 1, 1.5, 2, 4, 6]
|
9 |
+
target_bandwidths: [0.5, 1, 1.5, 2, 4]
|
10 |
+
ratios: [8, 5, 4, 2] # downsampling by 320
|
11 |
+
sample_rate: 16000
|
12 |
+
bins: 1024
|
13 |
+
|
14 |
+
# Discriminator list
|
15 |
+
#d_list: ['mpd', 'msd', 'mfd']
|
16 |
+
d_list: ['mfd']
|
17 |
+
|
18 |
+
mfd:
|
19 |
+
name: MultiFrequencyDiscriminator
|
20 |
+
config:
|
21 |
+
hop_lengths: [32, 64, 128, 256, 512, 1024]
|
22 |
+
hidden_channels: [64, 128, 256, 512, 512, 512]
|
23 |
+
domain: double
|
24 |
+
mel_scale: true
|
25 |
+
sample_rate: 16000
|
26 |
+
|
27 |
+
mpd:
|
28 |
+
name: MultiPeriodDiscriminator
|
29 |
+
config:
|
30 |
+
period_sizes: [2, 3, 5, 7, 11]
|
31 |
+
period_kernel_size: 5
|
32 |
+
|
33 |
+
msd:
|
34 |
+
name: MultiScaleDiscriminator
|
35 |
+
config:
|
36 |
+
num_scales: 3
|
37 |
+
pool_kernel_size: 4
|
38 |
+
pool_stride: 2
|
39 |
+
|
40 |
+
########### optimizer config ###########
|
41 |
+
optimizer:
|
42 |
+
g:
|
43 |
+
name: AdamW
|
44 |
+
config:
|
45 |
+
lr: 2e-4
|
46 |
+
betas: [0.8, 0.99]
|
47 |
+
eps: 1.0e-6
|
48 |
+
|
49 |
+
d:
|
50 |
+
name: AdamW
|
51 |
+
config:
|
52 |
+
lr: 2e-4
|
53 |
+
betas: [0.8, 0.99]
|
54 |
+
eps: 1.0e-6
|
55 |
+
|
56 |
+
lr_scheduler:
|
57 |
+
g:
|
58 |
+
name: ExponentialLR
|
59 |
+
config:
|
60 |
+
gamma: 0.999
|
61 |
+
d:
|
62 |
+
name: ExponentialLR
|
63 |
+
config:
|
64 |
+
gamma: 0.999
|
65 |
+
|
66 |
+
########### criterion config ###########
|
67 |
+
criterion:
|
68 |
+
g_criterion:
|
69 |
+
name: losses.generator_loss.GeneratorSTFTLoss
|
70 |
+
config:
|
71 |
+
use_mel_loss: false
|
72 |
+
#adv_criterion: LeastDLoss
|
73 |
+
adv_criterion: MSEGLoss
|
74 |
+
mel_loss_weight: 45
|
75 |
+
use_feature_match: true
|
76 |
+
feat_match_loss_weight: 20
|
77 |
+
use_full_stft_loss: true # Magnitude
|
78 |
+
use_sub_stft_loss: true # PQMF loss
|
79 |
+
full_stft_loss_weight: 1
|
80 |
+
sub_stft_loss_weight: 1
|
81 |
+
mel_scale_loss:
|
82 |
+
sampling_rate: 16000
|
83 |
+
n_fft: 1024
|
84 |
+
num_mels: 80
|
85 |
+
hop_size: 160
|
86 |
+
win_size: 800
|
87 |
+
fmin: 0
|
88 |
+
full_multi_scale_stft_loss: # Full-band multi-scale STFT loss.
|
89 |
+
fft_sizes: [512, 1024, 2048]
|
90 |
+
win_sizes: [480, 960, 1200]
|
91 |
+
hop_sizes: [120, 240, 300]
|
92 |
+
sub_multi_scale_stft_loss: # Sub-band multi-scale STFT loss.
|
93 |
+
num_bands: 6
|
94 |
+
fft_sizes: [128, 256, 256]
|
95 |
+
win_sizes: [80, 120, 200]
|
96 |
+
hop_sizes: [20, 40, 50]
|
97 |
+
|
98 |
+
d_criterion:
|
99 |
+
name: losses.discriminator_loss.MSEDiscriminatorLoss
|
100 |
+
config: null
|
101 |
+
|
102 |
+
commit_loss_weight: 1. #1000
|
103 |
+
|
104 |
+
########### training and data config ###########
|
105 |
+
|
106 |
+
seed: 2333
|
107 |
+
cudnn_deterministic: false
|
108 |
+
tensorboard: true # whether to use tensorboard
|
109 |
+
#checkpoint_interval: 5
|
110 |
+
#summary_interval: 10
|
111 |
+
#validation_interval: 10
|
112 |
+
|
113 |
+
checkpoint_interval: 5000
|
114 |
+
summary_interval: 100
|
115 |
+
validation_interval: 5000
|
116 |
+
|
117 |
+
num_epoches: 5000
|
118 |
+
print_freq: 10
|
119 |
+
discriminator_iter_start: 0 # start step after which we update discriminators
|
120 |
+
num_ckpt_keep: 10
|
121 |
+
|
122 |
+
segment_size: 24000
|
123 |
+
audio_norm_scale: 1.0
|
124 |
+
batch_size: 6
|
125 |
+
num_workers: 8
|
126 |
+
num_plots: 8
|