Upload folder using huggingface_hub
Browse files- models/dnr/locoformer-medium.enc-crossattn96dim.dec-crossattn96dim.musical64.learnable-query/checkpoints/model.pth +3 -0
- models/dnr/locoformer-medium.enc-crossattn96dim.dec-crossattn96dim.musical64.learnable-query/merged_config.yaml +167 -0
- models/dnr/locoformer-small.enc-crossattn64dim.dec-crossattn64dim.musical64.learnable-query/checkpoints/model.pth +3 -0
- models/dnr/locoformer-small.enc-crossattn64dim.dec-crossattn64dim.musical64.learnable-query/merged_config.yaml +167 -0
models/dnr/locoformer-medium.enc-crossattn96dim.dec-crossattn96dim.musical64.learnable-query/checkpoints/model.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b878ea0ffe29c67401727d51cdaab8db0394178d8e0eafa9d2ca5e241fd472e2
|
| 3 |
+
size 128207890
|
models/dnr/locoformer-medium.enc-crossattn96dim.dec-crossattn96dim.musical64.learnable-query/merged_config.yaml
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
seed: 2026
|
| 2 |
+
|
| 3 |
+
sr: 44100
|
| 4 |
+
n_fft: 2048
|
| 5 |
+
hop_length: 512
|
| 6 |
+
|
| 7 |
+
n_src: 3
|
| 8 |
+
n_chan: 1
|
| 9 |
+
emb_dim: 128
|
| 10 |
+
|
| 11 |
+
trainer:
|
| 12 |
+
max_epochs: 150
|
| 13 |
+
check_val_every_n_epoch: 1
|
| 14 |
+
gradient_clip_val: 5.0
|
| 15 |
+
sync_batchnorm: True
|
| 16 |
+
deterministic: false
|
| 17 |
+
|
| 18 |
+
limit_train_batches: 1354
|
| 19 |
+
limit_val_batches: 10 # x 8 GPUs
|
| 20 |
+
|
| 21 |
+
benchmark: True
|
| 22 |
+
use_distributed_sampler: False
|
| 23 |
+
precision: bf16-mixed
|
| 24 |
+
|
| 25 |
+
callbacks:
|
| 26 |
+
- _target_: lightning.pytorch.callbacks.ModelCheckpoint
|
| 27 |
+
filename: "{epoch:04d}"
|
| 28 |
+
save_top_k: 5
|
| 29 |
+
monitor: validation/loss
|
| 30 |
+
mode: min
|
| 31 |
+
save_last: True
|
| 32 |
+
- _target_: lightning.pytorch.callbacks.RichProgressBar
|
| 33 |
+
refresh_rate: 5
|
| 34 |
+
- _target_: lightning.pytorch.callbacks.RichModelSummary
|
| 35 |
+
max_depth: 3
|
| 36 |
+
|
| 37 |
+
datamodule:
|
| 38 |
+
_target_: spectral_feature_compression.common.datamodules.hdf5_wav_datamodule.DataModule
|
| 39 |
+
train_dataset_path:
|
| 40 |
+
- ./recipes/dnr/hdf5/tr_speech_seg8sec_sad.hdf5
|
| 41 |
+
- ./recipes/dnr/hdf5/tr_music_seg8sec_sad.hdf5
|
| 42 |
+
- ./recipes/dnr/hdf5/tr_sfx_seg8sec_sad.hdf5
|
| 43 |
+
val_dataset_path: ./recipes/dnr/hdf5/cv_unsegmented.hdf5
|
| 44 |
+
batch_size: 4
|
| 45 |
+
val_batch_size: 1
|
| 46 |
+
sr: ${sr}
|
| 47 |
+
duration: 6
|
| 48 |
+
val_duration: null
|
| 49 |
+
num_workers: 4
|
| 50 |
+
return_ref: true
|
| 51 |
+
use_scatter_dataset: false
|
| 52 |
+
use_dm_dataset: true
|
| 53 |
+
p_source_dropout: 0.05
|
| 54 |
+
val_drop_last: false
|
| 55 |
+
|
| 56 |
+
task:
|
| 57 |
+
_target_: spectral_feature_compression.core.tasks.sup_task.SupTask
|
| 58 |
+
n_fft: ${n_fft}
|
| 59 |
+
hop_length: ${hop_length}
|
| 60 |
+
css_validation: true
|
| 61 |
+
|
| 62 |
+
ema_weight: 0.999
|
| 63 |
+
ema_update_freq: 1
|
| 64 |
+
|
| 65 |
+
model:
|
| 66 |
+
_target_: spectral_feature_compression.core.model.model_wrapper.ModelWrapper
|
| 67 |
+
n_fft: ${n_fft}
|
| 68 |
+
hop_length: ${hop_length}
|
| 69 |
+
fs: ${sr}
|
| 70 |
+
scaling: true
|
| 71 |
+
|
| 72 |
+
css_segment_size: 12
|
| 73 |
+
css_shift_size: 6
|
| 74 |
+
|
| 75 |
+
model:
|
| 76 |
+
_target_: spectral_feature_compression.core.model.bslocoformer.BSLocoformer
|
| 77 |
+
n_src: ${n_src}
|
| 78 |
+
n_chan: ${n_chan}
|
| 79 |
+
|
| 80 |
+
n_layers: 6
|
| 81 |
+
# general setup
|
| 82 |
+
emb_dim: ${emb_dim}
|
| 83 |
+
norm_type: rmsgroupnorm
|
| 84 |
+
num_groups: 8 # used only in RMSGroupNorm
|
| 85 |
+
tf_order: ft
|
| 86 |
+
# self-attention related
|
| 87 |
+
n_heads: 8
|
| 88 |
+
flash_attention: true # available when using mixed precision
|
| 89 |
+
attention_dim: 128
|
| 90 |
+
# ffn related
|
| 91 |
+
ffn_type:
|
| 92 |
+
- swiglu_conv1d
|
| 93 |
+
- swiglu_conv1d
|
| 94 |
+
ffn_hidden_dim:
|
| 95 |
+
- 192
|
| 96 |
+
- 192
|
| 97 |
+
conv1d_kernel: 8
|
| 98 |
+
conv1d_shift: 1
|
| 99 |
+
dropout: 0.1
|
| 100 |
+
# others
|
| 101 |
+
eps: 1.0e-5
|
| 102 |
+
|
| 103 |
+
encoder:
|
| 104 |
+
_target_: spectral_feature_compression.core.model.crossattn_enc_dec.CrossAttnEncoder
|
| 105 |
+
# general SFC config
|
| 106 |
+
d_inner: &d_inner 96
|
| 107 |
+
d_model: ${emb_dim}
|
| 108 |
+
n_chan: ${n_chan}
|
| 109 |
+
sample_rate: ${sr}
|
| 110 |
+
n_fft: ${n_fft}
|
| 111 |
+
n_bands: &n_bands 64
|
| 112 |
+
band_config: &band_config musical
|
| 113 |
+
query_type: &query_type learnable
|
| 114 |
+
# cross-attention related
|
| 115 |
+
n_heads: &n_heads 4
|
| 116 |
+
slope: &slope [1, 1, 1, 1]
|
| 117 |
+
learnable_slope: &learnable_slope false
|
| 118 |
+
learnable_pos_bias: &learnable_pos_bias true
|
| 119 |
+
mask_outside_bands: &mask_outside_bands false
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
decoder:
|
| 123 |
+
_target_: spectral_feature_compression.core.model.crossattn_enc_dec.CrossAttnDecoder
|
| 124 |
+
# general SFC config
|
| 125 |
+
d_inner: *d_inner
|
| 126 |
+
d_model: ${emb_dim}
|
| 127 |
+
n_src: ${n_src}
|
| 128 |
+
n_chan: ${n_chan}
|
| 129 |
+
sample_rate: ${sr}
|
| 130 |
+
n_fft: ${n_fft}
|
| 131 |
+
n_bands: *n_bands
|
| 132 |
+
band_config: *band_config
|
| 133 |
+
query_type: *query_type
|
| 134 |
+
# cross-attention related
|
| 135 |
+
n_heads: *n_heads
|
| 136 |
+
slope: *slope
|
| 137 |
+
learnable_slope: *learnable_slope
|
| 138 |
+
learnable_pos_bias: *learnable_pos_bias
|
| 139 |
+
mask_outside_bands: *mask_outside_bands
|
| 140 |
+
|
| 141 |
+
loss:
|
| 142 |
+
_target_: spectral_feature_compression.core.loss.snr.ThresSNRLossWithInactiveSource
|
| 143 |
+
solve_perm: false
|
| 144 |
+
n_src: ${n_src}
|
| 145 |
+
zeroref_weight: 0.1
|
| 146 |
+
only_denominator: false
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
optimizer_config:
|
| 150 |
+
_target_: aiaccel.torch.lightning.OptimizerConfig
|
| 151 |
+
optimizer_generator:
|
| 152 |
+
_partial_: True
|
| 153 |
+
_target_: torch.optim.AdamW
|
| 154 |
+
lr: 1.e-3
|
| 155 |
+
weight_decay: 1.e-2
|
| 156 |
+
betas:
|
| 157 |
+
- 0.9
|
| 158 |
+
- 0.999
|
| 159 |
+
scheduler_generator:
|
| 160 |
+
_partial_: True
|
| 161 |
+
_target_: spectral_feature_compression.common.lr_schedulers.warmup.WarmUpStepLR
|
| 162 |
+
warmup_steps: 5000
|
| 163 |
+
decay_start_step: 101550 # 1354 steps x 75 epochs
|
| 164 |
+
decay_stop_step: 203100 # 1354 steps x 150 epochs
|
| 165 |
+
step_size: 1354 # 1 epoch
|
| 166 |
+
decay: 0.96
|
| 167 |
+
scheduler_interval: step
|
models/dnr/locoformer-small.enc-crossattn64dim.dec-crossattn64dim.musical64.learnable-query/checkpoints/model.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d648ccdc51ad59dd175a9df2269e9de1924f143757da6c2a6392e4e64a4babd3
|
| 3 |
+
size 46661234
|
models/dnr/locoformer-small.enc-crossattn64dim.dec-crossattn64dim.musical64.learnable-query/merged_config.yaml
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
seed: 2026
|
| 2 |
+
|
| 3 |
+
sr: 44100
|
| 4 |
+
n_fft: 2048
|
| 5 |
+
hop_length: 512
|
| 6 |
+
|
| 7 |
+
n_src: 3
|
| 8 |
+
n_chan: 1
|
| 9 |
+
emb_dim: 96
|
| 10 |
+
|
| 11 |
+
trainer:
|
| 12 |
+
max_epochs: 150
|
| 13 |
+
check_val_every_n_epoch: 1
|
| 14 |
+
gradient_clip_val: 5.0
|
| 15 |
+
sync_batchnorm: True
|
| 16 |
+
deterministic: false
|
| 17 |
+
|
| 18 |
+
limit_train_batches: 1354
|
| 19 |
+
limit_val_batches: 10 # x 8 GPUs
|
| 20 |
+
|
| 21 |
+
benchmark: True
|
| 22 |
+
use_distributed_sampler: False
|
| 23 |
+
precision: bf16-mixed
|
| 24 |
+
|
| 25 |
+
callbacks:
|
| 26 |
+
- _target_: lightning.pytorch.callbacks.ModelCheckpoint
|
| 27 |
+
filename: "{epoch:04d}"
|
| 28 |
+
save_top_k: 5
|
| 29 |
+
monitor: validation/loss
|
| 30 |
+
mode: min
|
| 31 |
+
save_last: True
|
| 32 |
+
- _target_: lightning.pytorch.callbacks.RichProgressBar
|
| 33 |
+
refresh_rate: 5
|
| 34 |
+
- _target_: lightning.pytorch.callbacks.RichModelSummary
|
| 35 |
+
max_depth: 3
|
| 36 |
+
|
| 37 |
+
datamodule:
|
| 38 |
+
_target_: spectral_feature_compression.common.datamodules.hdf5_wav_datamodule.DataModule
|
| 39 |
+
train_dataset_path:
|
| 40 |
+
- ./recipes/dnr/hdf5/tr_speech_seg8sec_sad.hdf5
|
| 41 |
+
- ./recipes/dnr/hdf5/tr_music_seg8sec_sad.hdf5
|
| 42 |
+
- ./recipes/dnr/hdf5/tr_sfx_seg8sec_sad.hdf5
|
| 43 |
+
val_dataset_path: ./recipes/dnr/hdf5/cv_unsegmented.hdf5
|
| 44 |
+
batch_size: 4
|
| 45 |
+
val_batch_size: 1
|
| 46 |
+
sr: ${sr}
|
| 47 |
+
duration: 6
|
| 48 |
+
val_duration: null
|
| 49 |
+
num_workers: 4
|
| 50 |
+
return_ref: true
|
| 51 |
+
use_scatter_dataset: false
|
| 52 |
+
use_dm_dataset: true
|
| 53 |
+
p_source_dropout: 0.05
|
| 54 |
+
val_drop_last: false
|
| 55 |
+
|
| 56 |
+
task:
|
| 57 |
+
_target_: spectral_feature_compression.core.tasks.sup_task.SupTask
|
| 58 |
+
n_fft: ${n_fft}
|
| 59 |
+
hop_length: ${hop_length}
|
| 60 |
+
css_validation: true
|
| 61 |
+
|
| 62 |
+
ema_weight: 0.999
|
| 63 |
+
ema_update_freq: 1
|
| 64 |
+
|
| 65 |
+
model:
|
| 66 |
+
_target_: spectral_feature_compression.core.model.model_wrapper.ModelWrapper
|
| 67 |
+
n_fft: ${n_fft}
|
| 68 |
+
hop_length: ${hop_length}
|
| 69 |
+
fs: ${sr}
|
| 70 |
+
scaling: true
|
| 71 |
+
|
| 72 |
+
css_segment_size: 12
|
| 73 |
+
css_shift_size: 6
|
| 74 |
+
|
| 75 |
+
model:
|
| 76 |
+
_target_: spectral_feature_compression.core.model.bslocoformer.BSLocoformer
|
| 77 |
+
n_src: ${n_src}
|
| 78 |
+
n_chan: ${n_chan}
|
| 79 |
+
|
| 80 |
+
n_layers: 4
|
| 81 |
+
# general setup
|
| 82 |
+
emb_dim: ${emb_dim}
|
| 83 |
+
norm_type: rmsgroupnorm
|
| 84 |
+
num_groups: 4 # used only in RMSGroupNorm
|
| 85 |
+
tf_order: ft
|
| 86 |
+
# self-attention related
|
| 87 |
+
n_heads: 4
|
| 88 |
+
flash_attention: true # available when using mixed precision
|
| 89 |
+
attention_dim: 96
|
| 90 |
+
# ffn related
|
| 91 |
+
ffn_type:
|
| 92 |
+
- swiglu_conv1d
|
| 93 |
+
- swiglu_conv1d
|
| 94 |
+
ffn_hidden_dim:
|
| 95 |
+
- 128
|
| 96 |
+
- 128
|
| 97 |
+
conv1d_kernel: 8
|
| 98 |
+
conv1d_shift: 1
|
| 99 |
+
dropout: 0.1
|
| 100 |
+
# others
|
| 101 |
+
eps: 1.0e-5
|
| 102 |
+
|
| 103 |
+
encoder:
|
| 104 |
+
_target_: spectral_feature_compression.core.model.crossattn_enc_dec.CrossAttnEncoder
|
| 105 |
+
# general SFC config
|
| 106 |
+
d_inner: &d_inner 64
|
| 107 |
+
d_model: ${emb_dim}
|
| 108 |
+
n_chan: ${n_chan}
|
| 109 |
+
sample_rate: ${sr}
|
| 110 |
+
n_fft: ${n_fft}
|
| 111 |
+
n_bands: &n_bands 64
|
| 112 |
+
band_config: &band_config musical
|
| 113 |
+
query_type: &query_type learnable
|
| 114 |
+
# cross-attention related
|
| 115 |
+
n_heads: &n_heads 4
|
| 116 |
+
slope: &slope [1, 1, 1, 1]
|
| 117 |
+
learnable_slope: &learnable_slope false
|
| 118 |
+
learnable_pos_bias: &learnable_pos_bias true
|
| 119 |
+
mask_outside_bands: &mask_outside_bands false
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
decoder:
|
| 123 |
+
_target_: spectral_feature_compression.core.model.crossattn_enc_dec.CrossAttnDecoder
|
| 124 |
+
# general SFC config
|
| 125 |
+
d_inner: *d_inner
|
| 126 |
+
d_model: ${emb_dim}
|
| 127 |
+
n_src: ${n_src}
|
| 128 |
+
n_chan: ${n_chan}
|
| 129 |
+
sample_rate: ${sr}
|
| 130 |
+
n_fft: ${n_fft}
|
| 131 |
+
n_bands: *n_bands
|
| 132 |
+
band_config: *band_config
|
| 133 |
+
query_type: *query_type
|
| 134 |
+
# cross-attention related
|
| 135 |
+
n_heads: *n_heads
|
| 136 |
+
slope: *slope
|
| 137 |
+
learnable_slope: *learnable_slope
|
| 138 |
+
learnable_pos_bias: *learnable_pos_bias
|
| 139 |
+
mask_outside_bands: *mask_outside_bands
|
| 140 |
+
|
| 141 |
+
loss:
|
| 142 |
+
_target_: spectral_feature_compression.core.loss.snr.ThresSNRLossWithInactiveSource
|
| 143 |
+
solve_perm: false
|
| 144 |
+
n_src: ${n_src}
|
| 145 |
+
zeroref_weight: 0.1
|
| 146 |
+
only_denominator: false
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
optimizer_config:
|
| 150 |
+
_target_: aiaccel.torch.lightning.OptimizerConfig
|
| 151 |
+
optimizer_generator:
|
| 152 |
+
_partial_: True
|
| 153 |
+
_target_: torch.optim.AdamW
|
| 154 |
+
lr: 1.e-3
|
| 155 |
+
weight_decay: 1.e-2
|
| 156 |
+
betas:
|
| 157 |
+
- 0.9
|
| 158 |
+
- 0.999
|
| 159 |
+
scheduler_generator:
|
| 160 |
+
_partial_: True
|
| 161 |
+
_target_: spectral_feature_compression.common.lr_schedulers.warmup.WarmUpStepLR
|
| 162 |
+
warmup_steps: 5000
|
| 163 |
+
decay_start_step: 101550 # 1354 steps x 75 epochs
|
| 164 |
+
decay_stop_step: 203100 # 1354 steps x 150 epochs
|
| 165 |
+
step_size: 1354 # 1 epoch
|
| 166 |
+
decay: 0.96
|
| 167 |
+
scheduler_interval: step
|