Aname-Tommy commited on
Commit
a60e8e8
·
verified ·
1 Parent(s): 6b174eb

Upload ./mel_band_roformer_4stems_large.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. mel_band_roformer_4stems_large.yaml +167 -0
mel_band_roformer_4stems_large.yaml ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ audio:
2
+ chunk_size: 661500
3
+ dim_f: 1024
4
+ dim_t: 1101
5
+ hop_length: 882
6
+ n_fft: 4096
7
+ num_channels: 2
8
+ sample_rate: 44100
9
+ min_mean_abs: 0.0001
10
+
11
+ model:
12
+ dim: 384
13
+ depth: 8
14
+ stereo: true
15
+ num_stems: 4
16
+ linear_transformer_depth: 0
17
+ time_transformer_depth: 1
18
+ freq_transformer_depth: 1
19
+ num_bands: 60
20
+ dim_head: 64
21
+ heads: 8
22
+ attn_dropout: 0.0
23
+ ff_dropout: 0.0
24
+ flash_attn: true
25
+ dim_freqs_in: 2049
26
+ sample_rate: 44100 # needed for mel filter bank from librosa
27
+ stft_n_fft: 4096
28
+ stft_hop_length: 882
29
+ stft_win_length: 4096
30
+ stft_normalized: False
31
+ mask_estimator_depth: 2
32
+ multi_stft_resolution_loss_weight: 1.0
33
+ multi_stft_resolutions_window_sizes: !!python/tuple
34
+ - 4096
35
+ - 2048
36
+ - 1024
37
+ - 512
38
+ - 256
39
+ multi_stft_hop_size: 147
40
+ multi_stft_normalized: False
41
+ mlp_expansion_factor: 4
42
+ use_torch_checkpoint: False # it allows to greatly reduce GPU memory consumption during training (not fully tested)
43
+ skip_connection: True # Enable skip connection between transformer blocks - can solve problem with gradients and probably faster training
44
+
45
+ training:
46
+ batch_size: 1
47
+ gradient_accumulation_steps: 4
48
+ grad_clip: 0
49
+ instruments: ['drums', 'bass', 'other', 'vocals']
50
+ lr: 2.0e-05
51
+ patience: 2
52
+ reduce_factor: 0.95
53
+ target_instrument: null
54
+ num_epochs: 1000
55
+ num_steps: 300
56
+ q: 0.95
57
+ coarse_loss_clip: false
58
+ ema_momentum: 0.999
59
+ optimizer: adamw
60
+ read_metadata_procs: 8 # Number of processes to use during metadata reading for dataset. Can speed up metadata generation
61
+ normalize: false
62
+ other_fix: false # it's needed for checking on multisong dataset if other is actually instrumental
63
+ use_amp: true # enable or disable usage of mixed precision (float16) - usually it must be true
64
+
65
+ augmentations:
66
+ enable: false # enable or disable all augmentations (to fast disable if needed)
67
+ loudness: false # randomly change loudness of each stem on the range (loudness_min; loudness_max)
68
+ loudness_min: 0.5
69
+ loudness_max: 1.5
70
+ mixup: true # mix several stems of same type with some probability (only works for dataset types: 1, 2, 3)
71
+ mixup_probs: !!python/tuple # 2 additional stems of the same type (1st with prob 0.2, 2nd with prob 0.02)
72
+ - 0.2
73
+ - 0.02
74
+ - 0.002
75
+ mixup_loudness_min: 0.5
76
+ mixup_loudness_max: 1.5
77
+
78
+ # apply mp3 compression to mixture only (emulate downloading mp3 from internet)
79
+ mp3_compression_on_mixture: 0.01
80
+ mp3_compression_on_mixture_bitrate_min: 32
81
+ mp3_compression_on_mixture_bitrate_max: 320
82
+ mp3_compression_on_mixture_backend: "lameenc"
83
+
84
+ all:
85
+ channel_shuffle: 0.5 # Set 0 or lower to disable
86
+ random_inverse: 0.01 # inverse track (better lower probability)
87
+ random_polarity: 0.5 # polarity change (multiply waveform to -1)
88
+
89
+ vocals:
90
+ pitch_shift: 1.0
91
+ pitch_shift_min_semitones: -12
92
+ pitch_shift_max_semitones: 12
93
+ seven_band_parametric_eq: 0.5
94
+ seven_band_parametric_eq_min_gain_db: -80
95
+ seven_band_parametric_eq_max_gain_db: 9
96
+ tanh_distortion: 0.5
97
+ tanh_distortion_min: 0.1
98
+ tanh_distortion_max: 1
99
+ time_stretch: 1.0
100
+ time_stretch_min_rate: 0.5
101
+ time_stretch_max_rate: 2
102
+ bass:
103
+ pitch_shift: 1.0
104
+ pitch_shift_min_semitones: -6
105
+ pitch_shift_max_semitones: 6
106
+ seven_band_parametric_eq: 0.4
107
+ seven_band_parametric_eq_min_gain_db: -32
108
+ seven_band_parametric_eq_max_gain_db: 6
109
+ tanh_distortion: 1.0
110
+ tanh_distortion_min: 0.1
111
+ tanh_distortion_max: 0.5
112
+ time_stretch: 1.0
113
+ time_stretch_min_rate: 0.5
114
+ time_stretch_max_rate: 1.5
115
+ drums:
116
+ pitch_shift: 0.1
117
+ pitch_shift_min_semitones: -6
118
+ pitch_shift_max_semitones: 6
119
+ seven_band_parametric_eq: 0.5
120
+ seven_band_parametric_eq_min_gain_db: -24
121
+ seven_band_parametric_eq_max_gain_db: 12
122
+ tanh_distortion: 0.3
123
+ tanh_distortion_min: 0.1
124
+ tanh_distortion_max: 0.6
125
+ time_stretch: 1.0
126
+ time_stretch_min_rate: 0.333
127
+ time_stretch_max_rate: 1.5
128
+ other:
129
+ pitch_shift: 1.0
130
+ pitch_shift_min_semitones: -12
131
+ pitch_shift_max_semitones: 12
132
+ gaussian_noise: 0.4
133
+ gaussian_noise_min_amplitude: 0.001
134
+ gaussian_noise_max_amplitude: 0.15
135
+ time_stretch: 0.01
136
+ time_stretch_min_rate: 0.25
137
+ time_stretch_max_rate: 1.5
138
+
139
+ inference:
140
+ batch_size: 2
141
+ dim_t: 256
142
+ num_overlap: 2
143
+ normalize: false
144
+
145
+ loss_multistft:
146
+ fft_sizes:
147
+ - 1024
148
+ - 2048
149
+ - 4096
150
+ hop_sizes:
151
+ - 147
152
+ - 256
153
+ - 512
154
+ win_lengths:
155
+ - 1024
156
+ - 2048
157
+ - 4096
158
+ window: "hann_window"
159
+ scale: "mel"
160
+ n_bins: 128
161
+ sample_rate: 44100
162
+ perceptual_weighting: true
163
+ w_sc: 16.0
164
+ w_log_mag: 16.0
165
+ w_lin_mag: 16.0
166
+ w_phs: 0.0
167
+ mag_distance: "L1"