yskim3271 commited on
Commit
47b46be
·
verified ·
1 Parent(s): 1f01f4b

Upload BAFNet+ TAPS 5-tier & Vibravox checkpoints and 50 ms streaming ONNX

Browse files
.gitattributes CHANGED
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ checkpoints/bafnetplus_100ms/best.th filter=lfs diff=lfs merge=lfs -text
37
+ checkpoints/bafnetplus_12ms/best.th filter=lfs diff=lfs merge=lfs -text
38
+ checkpoints/bafnetplus_25ms/best.th filter=lfs diff=lfs merge=lfs -text
39
+ checkpoints/bafnetplus_50ms/best.th filter=lfs diff=lfs merge=lfs -text
40
+ checkpoints/bafnetplus_75ms/best.th filter=lfs diff=lfs merge=lfs -text
41
+ checkpoints/vbx_bafnetplus_50ms/best.th filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - ko
5
+ - fr
6
+ tags:
7
+ - speech-enhancement
8
+ - multimodal
9
+ - bone-conduction
10
+ - streaming
11
+ - onnx
12
+ datasets:
13
+ - yskim3271/Throat_and_Acoustic_Pairing_Speech_Dataset
14
+ - yskim3271/vibravox_16k
15
+ library_name: pytorch
16
+ pipeline_tag: audio-to-audio
17
+ ---
18
+
19
+ # BAFNet+ Pre-Trained Checkpoints and Streaming ONNX Artifacts
20
+
21
+ Official pre-trained model checkpoints and deployable FP32 streaming ONNX graph for:
22
+
23
+ > **Low-Latency Body- and Air-Conducted Speech Enhancement via Automatic Level Balancing and Reliability-Guided Fusion**
24
+ > Yunsik Kim, Youngseok Kim, and Yoonyoung Chung (POSTECH)
25
+ > IEEE/ACM Transactions on Audio, Speech, and Language Processing (TASLP)
26
+
27
+ - **Code Repository**: https://github.com/yskim3271/BAFNet-plus
28
+ - **Audio Samples & Spectrogram Demo**: https://yskim3271.github.io/BAFNet-plus/
29
+ - **HuggingFace Repository**: https://huggingface.co/yskim3271/BAFNet-plus
30
+
31
+ ---
32
+
33
+ ## Model Family & Released Artifacts
34
+
35
+ This repository distributes **6 PyTorch checkpoints** (5 algorithmic-latency tiers trained on Korean **TAPS** and the 50 ms operating point trained on French **Vibravox**) together with the **50 ms stateful FP32 streaming ONNX graph** and its sidecar metadata JSON (**8 primary model/deployment files** plus self-contained `config.yaml` files and integrity manifests `SHA256SUMS.txt` and `manifest.json`).
36
+
37
+ Every staged `config.yaml` is **self-contained**: mapping and masking branch architectures (`args_mapping` and `args_masking`) are embedded directly inside `model.param`, `checkpoint_mapping`/`checkpoint_masking` are cleared to `null`, `load_pretrained_weights` is `false`, and dataset noise/RIR paths use generic placeholders (`/path/to/...`).
38
+
39
+ ### Download & Integrity Table
40
+
41
+ Total model, configuration, and ONNX payload: **78.84 MiB** across **14** repository files (plus `README.md`, `manifest.json`, and `SHA256SUMS.txt`; generated 2026-11-22 05:35:21 UTC).
42
+
43
+ | Artifact | Category | Dataset | Size | SHA-256 (prefix) |
44
+ |---|---|---|---:|---|
45
+ | [`checkpoints/bafnetplus_12ms/best.th`](checkpoints/bafnetplus_12ms/best.th) | PyTorch Checkpoint | TAPS (12.5 ms) | 11.09 MiB | `2b93c04c60e3...` |
46
+ | [`checkpoints/bafnetplus_12ms/config.yaml`](checkpoints/bafnetplus_12ms/config.yaml) | Hydra Config (Sanitized) | TAPS (12.5 ms) | 3.3 KiB | `39d993a5f515...` |
47
+ | [`checkpoints/bafnetplus_25ms/best.th`](checkpoints/bafnetplus_25ms/best.th) | PyTorch Checkpoint | TAPS (25 ms) | 11.09 MiB | `31a10bf22072...` |
48
+ | [`checkpoints/bafnetplus_25ms/config.yaml`](checkpoints/bafnetplus_25ms/config.yaml) | Hydra Config (Sanitized) | TAPS (25 ms) | 3.3 KiB | `30fff9a0dbd2...` |
49
+ | [`checkpoints/bafnetplus_50ms/best.th`](checkpoints/bafnetplus_50ms/best.th) | PyTorch Checkpoint | TAPS (50 ms) | 11.09 MiB | `3ab190dc2d3e...` |
50
+ | [`checkpoints/bafnetplus_50ms/config.yaml`](checkpoints/bafnetplus_50ms/config.yaml) | Hydra Config (Sanitized) | TAPS (50 ms) | 3.3 KiB | `4d566b9f4001...` |
51
+ | [`checkpoints/bafnetplus_75ms/best.th`](checkpoints/bafnetplus_75ms/best.th) | PyTorch Checkpoint | TAPS (75 ms) | 11.09 MiB | `281239d2e1e5...` |
52
+ | [`checkpoints/bafnetplus_75ms/config.yaml`](checkpoints/bafnetplus_75ms/config.yaml) | Hydra Config (Sanitized) | TAPS (75 ms) | 3.3 KiB | `58d6ae8514e8...` |
53
+ | [`checkpoints/bafnetplus_100ms/best.th`](checkpoints/bafnetplus_100ms/best.th) | PyTorch Checkpoint | TAPS (100 ms) | 11.09 MiB | `52b954844efb...` |
54
+ | [`checkpoints/bafnetplus_100ms/config.yaml`](checkpoints/bafnetplus_100ms/config.yaml) | Hydra Config (Sanitized) | TAPS (100 ms) | 3.3 KiB | `7a43a967c270...` |
55
+ | [`checkpoints/vbx_bafnetplus_50ms/best.th`](checkpoints/vbx_bafnetplus_50ms/best.th) | PyTorch Checkpoint | Vibravox (50 ms) | 11.09 MiB | `220d47140941...` |
56
+ | [`checkpoints/vbx_bafnetplus_50ms/config.yaml`](checkpoints/vbx_bafnetplus_50ms/config.yaml) | Hydra Config (Sanitized) | Vibravox (50 ms) | 3.3 KiB | `fca0682a06a5...` |
57
+ | [`onnx/bafnetplus_50ms_fp32.onnx`](onnx/bafnetplus_50ms_fp32.onnx) | Streaming ONNX | TAPS (50 ms) | 12.20 MiB | `e94ea811014d...` |
58
+ | [`onnx/bafnetplus_50ms_fp32.onnx.json`](onnx/bafnetplus_50ms_fp32.onnx.json) | ONNX Sidecar | TAPS (50 ms) | 103.3 KiB | `d49024ccd7a0...` |
59
+
60
+ Integrity verification:
61
+
62
+ ```bash
63
+ sha256sum -c SHA256SUMS.txt
64
+ ```
65
+
66
+ See [`manifest.json`](manifest.json) for machine-readable byte sizes, MD5 digests, and SHA-256 checksums.
67
+
68
+ ---
69
+
70
+ ## Benchmark Summary
71
+
72
+ ### TAPS Multi-SNR & Cross-Platform Latency Tiers (16 kHz)
73
+
74
+ | Model ID | $T_{\text{alg}}$ | $\rho$ | Chunk | TAPS 0 dB PESQ | TAPS 0 dB STOI | TAPS $-10$ dB PESQ | GPU RTF | DSP RTF (p99) | CPU RTF (p99) |
75
+ |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|
76
+ | `bafnetplus_12ms` | 12.5 ms | 0.975 | 2 frames | 3.369 | 0.953 | 3.026 | 0.46 | 1.60 (1.85) | 2.44 (2.56) |
77
+ | `bafnetplus_25ms` | 25 ms | 0.95 | 4 frames | 3.451 | 0.957 | 3.100 | 0.22 | 1.33 (1.57) | 1.84 (1.94) |
78
+ | `bafnetplus_50ms` *(default)* | 50 ms | 0.90 | 8 frames | 3.485 | 0.959 | 3.111 | 0.12 | 0.80 (0.94) | 1.11 (1.16) |
79
+ | `bafnetplus_75ms` | 75 ms | 0.84 | 12 frames | 3.484 | 0.959 | 3.119 | 0.08 | 0.61 (0.72) | 0.93 (0.97) |
80
+ | `bafnetplus_100ms` | 100 ms | 0.78 | 16 frames | 3.501 | 0.959 | 3.161 | 0.07 | 0.52 (0.58) | 0.87 (0.90) |
81
+
82
+ ### Cross-Corpus Validation (Vibravox, 16 kHz)
83
+
84
+ | Model ID | $T_{\text{alg}}$ | $-20$ dB PESQ | $-10$ dB PESQ | $0$ dB PESQ | $+10$ dB PESQ | $+15$ dB PESQ |
85
+ |---|---:|---:|---:|---:|---:|---:|
86
+ | `vbx_bafnetplus_50ms` | 50 ms | 2.938 | 3.168 | 3.441 | 3.770 | 3.933 |
87
+
88
+ Model size and complexity: **2.782 M** parameters and **44.73 GMACs/s** at 16 kHz across all five TAPS latency tiers.
89
+
90
+ ---
91
+
92
+ ## Quickstart
93
+
94
+ ### 1. Download from HuggingFace Hub
95
+
96
+ ```bash
97
+ pip install huggingface_hub omegaconf torch
98
+ ```
99
+
100
+ ```python
101
+ from huggingface_hub import snapshot_download
102
+
103
+ local_dir = snapshot_download(repo_id="yskim3271/BAFNet-plus")
104
+ print("Downloaded BAFNet+ artifacts to:", local_dir)
105
+ ```
106
+
107
+ ### 2. PyTorch Loading (Self-Contained `config.yaml`)
108
+
109
+ Each checkpoint directory contains a sanitized, self-contained `config.yaml` with embedded `args_mapping` and `args_masking`, so no external pre-trained branch checkpoints are needed:
110
+
111
+ ```python
112
+ from pathlib import Path
113
+ import torch
114
+ from omegaconf import OmegaConf
115
+
116
+ from src.checkpoint import ConfigDict, load_checkpoint, load_model
117
+ from src.stft import mag_pha_istft, mag_pha_stft
118
+ from src.utils import get_stft_args_from_config
119
+
120
+ ckpt_dir = Path(local_dir) / "checkpoints" / "bafnetplus_50ms"
121
+ cfg = OmegaConf.load(ckpt_dir / "config.yaml")
122
+
123
+ model_params = OmegaConf.to_container(cfg.model.param, resolve=True)
124
+ model_params["args_mapping"] = ConfigDict(model_params["args_mapping"])
125
+ model_params["args_masking"] = ConfigDict(model_params["args_masking"])
126
+
127
+ device = "cpu" # or "cuda"
128
+ model = load_model(cfg.model.model_lib, cfg.model.model_class, model_params, device=device)
129
+ model = load_checkpoint(model, str(ckpt_dir), "best.th", device=device)
130
+ model.eval()
131
+
132
+ stft_args = get_stft_args_from_config(cfg.model)
133
+ stft_args["compress_factor"] = float(cfg.compress_factor)
134
+
135
+ # Paired 16 kHz waveforms: bcs, noisy_acs of shape [1, T]
136
+ bcs = torch.randn(1, 16000, device=device)
137
+ noisy_acs = torch.randn(1, 16000, device=device)
138
+
139
+ with torch.inference_mode():
140
+ bcs_mag, bcs_pha, bcs_com = mag_pha_stft(bcs, **stft_args)
141
+ acs_mag, acs_pha, acs_com = mag_pha_stft(noisy_acs, **stft_args)
142
+ est_mag, est_pha, _ = model((bcs_com, acs_com))
143
+ enhanced = mag_pha_istft(est_mag, est_pha, **stft_args)
144
+ ```
145
+
146
+ ### 3. Streaming ONNX Quickstart (50 ms FP32 Functional-Stateful Graph)
147
+
148
+ The `onnx/bafnetplus_50ms_fp32.onnx` artifact is an opset-17 functional-stateful graph (`190` explicit states, `chunk_size=8`, `T_export=14`, `2,605` simplified nodes) paired with `onnx/bafnetplus_50ms_fp32.onnx.json`. Use `BAFNetPlusOrtStreaming` from the official codebase:
149
+
150
+ ```bash
151
+ pip install onnxruntime
152
+ ```
153
+
154
+ ```python
155
+ from pathlib import Path
156
+ import torch
157
+ from src.models.streaming.onnx.ort_wrapper import BAFNetPlusOrtStreaming
158
+
159
+ onnx_path = Path(local_dir) / "onnx" / "bafnetplus_50ms_fp32.onnx"
160
+ streamer = BAFNetPlusOrtStreaming.from_onnx(str(onnx_path), device="cpu")
161
+
162
+ # Option A: Full-utterance streaming emulation (16 kHz mono tensors [T])
163
+ bcs_wav = torch.randn(32000)
164
+ acs_wav = torch.randn(32000)
165
+ enhanced_full = streamer.process_audio(bcs_wav, acs_wav)
166
+
167
+ # Option B: Chunk-by-chunk real-time processing (50 ms output step = 800 samples)
168
+ streamer.reset_state()
169
+ hop_samples = streamer.output_samples_per_chunk # 800 samples @ 16 kHz
170
+ out_chunks = []
171
+ for start in range(0, len(bcs_wav), hop_samples):
172
+ y = streamer.process_samples(
173
+ bcs_wav[start : start + hop_samples],
174
+ acs_wav[start : start + hop_samples],
175
+ )
176
+ if y is not None:
177
+ out_chunks.append(y)
178
+ ```
179
+
180
+ ---
181
+
182
+ ## Citation
183
+
184
+ If you use these checkpoints, ONNX artifacts, or code in your research, please cite:
185
+
186
+ ```bibtex
187
+ @article{Kim2026BAFNetPlus,
188
+ author = {Yunsik Kim and Youngseok Kim and Yoonyoung Chung},
189
+ title = {Low-Latency Body- and Air-Conducted Speech Enhancement via Automatic Level Balancing and Reliability-Guided Fusion},
190
+ journal = {IEEE/ACM Transactions on Audio, Speech, and Language Processing},
191
+ year = {2026},
192
+ note = {Submitted for publication}
193
+ }
194
+
195
+ @inproceedings{Kim2025BAFNet,
196
+ author = {Yunsik Kim and Yonghun Song and Yoonyoung Chung},
197
+ title = {{BAF-Net}: Body- and Air-Conducted Speech Enhancement with Dual-Branch Adaptive Fusion Network},
198
+ booktitle = {Proc. Interspeech},
199
+ year = {2025}
200
+ }
201
+ ```
202
+
203
+ ## License
204
+
205
+ Released under the [MIT License](https://opensource.org/licenses/MIT).
SHA256SUMS.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ef7c544cbaec3e7acfb403689d5cac4ae6280adbdae92917bf1c49f262de5ffb README.md
2
+ 52b954844efbc6d2f4e3080fe512e10c0684a5af103fe6057fa93125ba0c1123 checkpoints/bafnetplus_100ms/best.th
3
+ 7a43a967c270ad2d3605c51262222a234bab8da7e787beaa078ac2c8c24bba83 checkpoints/bafnetplus_100ms/config.yaml
4
+ 2b93c04c60e397c2e50b78ddde3daeaf9c8c547fc6ff2d9d3d75df8f628251d8 checkpoints/bafnetplus_12ms/best.th
5
+ 39d993a5f515a8157989ef3414a75ad5d9fd8de595f6c9b2b2e73872b24c6a0d checkpoints/bafnetplus_12ms/config.yaml
6
+ 31a10bf220726523594605d38c981fa264866265e15edc2d115e38f0a1530595 checkpoints/bafnetplus_25ms/best.th
7
+ 30fff9a0dbd2e13e03350cc14a241e72897e4330f7631591270daca4a6c3a28f checkpoints/bafnetplus_25ms/config.yaml
8
+ 3ab190dc2d3e502cc1e0007e6252f4f48c5a1af761c7e73fd107b7414af332c3 checkpoints/bafnetplus_50ms/best.th
9
+ 4d566b9f40013d0a04a65899806e2e89699741e4bd31da37dcffe6b9e02391d7 checkpoints/bafnetplus_50ms/config.yaml
10
+ 281239d2e1e57966424e203b001315423632ccdff51462afcbb903d4b0fa8864 checkpoints/bafnetplus_75ms/best.th
11
+ 58d6ae8514e855acfdbf231098fbe2188d1e6def1875ca2b79a0bd5f744dabdf checkpoints/bafnetplus_75ms/config.yaml
12
+ 220d47140941c03ea22cae6ce22da29f245e129f33abfcb9ebaf2df2f25e1a0d checkpoints/vbx_bafnetplus_50ms/best.th
13
+ fca0682a06a5162444b79506f740571b5ef3e568d51ee10754781824d1b050db checkpoints/vbx_bafnetplus_50ms/config.yaml
14
+ e12f4f5ffa621e842e34b5349307935593bb7efcd3d892f979b17f0b01893ac0 manifest.json
15
+ e94ea811014d0f974269acf7aae6aa2f9ec5a32d5503b7181a86bcb60f83b72a onnx/bafnetplus_50ms_fp32.onnx
16
+ d49024ccd7a0a7aac268217178a278545f7e120343fcfd1f65f334b9f5f79de5 onnx/bafnetplus_50ms_fp32.onnx.json
checkpoints/bafnetplus_100ms/best.th ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52b954844efbc6d2f4e3080fe512e10c0684a5af103fe6057fa93125ba0c1123
3
+ size 11625165
checkpoints/bafnetplus_100ms/config.yaml ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ sampling_rate: 16000
2
+ segment: auto
3
+ stride: auto
4
+ shift: auto
5
+ n_fft: 400
6
+ hop_size: 100
7
+ win_size: 400
8
+ compress_factor: 0.3
9
+ train_noise:
10
+ snr_range:
11
+ - -15
12
+ - 20
13
+ reverb_proportion: 0.0
14
+ target_dB_FS: -25
15
+ target_dB_FS_floating_value: 10
16
+ silence_length: 0.2
17
+ bcs_gain_perturbation_db: 10
18
+ valid_noise:
19
+ snr_range:
20
+ - -15
21
+ - 10
22
+ reverb_proportion: 0.0
23
+ target_dB_FS: -25
24
+ target_dB_FS_floating_value: 0
25
+ silence_length: 0.2
26
+ deterministic: true
27
+ test_noise:
28
+ snr_step:
29
+ - 0
30
+ reverb_proportion: 0.0
31
+ target_dB_FS: -25
32
+ target_dB_FS_floating_value: 0
33
+ silence_length: 0.2
34
+ deterministic: true
35
+ batch_size: 16
36
+ epochs: 150
37
+ eval_every: 150
38
+ eval_stt: false
39
+ valid_start_epoch: 100
40
+ loss:
41
+ magnitude: 0.9
42
+ phase: 0.3
43
+ complex: 0.1
44
+ consistency: 0.05
45
+ metric: 0.05
46
+ lr: 0.002
47
+ weight_decay: 0.01
48
+ optim: adamW
49
+ betas:
50
+ - 0.9
51
+ - 0.999
52
+ max_grad_norm: 5.0
53
+ warmup_epochs: 30
54
+ warmup_start_factor: 0.1
55
+ eta_min: 1.0e-06
56
+ finetune:
57
+ pretrained_lr: 0.0004
58
+ pretrained_weight_decay: 0.0
59
+ fusion_lr: 0.002
60
+ fusion_weight_decay: 0.01
61
+ device: cuda
62
+ num_prints: 10
63
+ num_workers: 5
64
+ continue_from: null
65
+ log_dir: tensorbd
66
+ save_code: true
67
+ seed: 2039
68
+ model:
69
+ model_lib: bafnetplus
70
+ model_class: BAFNetPlus
71
+ input_type: acs+bcs
72
+ param:
73
+ ablation_mode: full
74
+ conv_depth: 4
75
+ conv_channels: 16
76
+ conv_kernel_size: 7
77
+ calibration_hidden_channels: 16
78
+ calibration_depth: 2
79
+ calibration_kernel_size: 5
80
+ calibration_max_common_log_gain: 0.5
81
+ calibration_max_relative_log_gain: 1.0
82
+ checkpoint_mapping: null
83
+ checkpoint_masking: null
84
+ args_mapping:
85
+ model_lib: backbone
86
+ model_class: Backbone
87
+ param:
88
+ win_size: 400
89
+ hop_size: 100
90
+ n_fft: 400
91
+ compress_factor: 0.3
92
+ dense_channel: 64
93
+ sigmoid_beta: 2.0
94
+ num_tsblock: 4
95
+ dense_depth: 4
96
+ time_dw_kernel_size: 3
97
+ time_block_kernel:
98
+ - 3
99
+ - 5
100
+ - 7
101
+ - 11
102
+ freq_block_kernel:
103
+ - 3
104
+ - 11
105
+ - 23
106
+ - 31
107
+ time_block_num: 2
108
+ freq_block_num: 2
109
+ causal_ts_block: true
110
+ encoder_padding_ratio:
111
+ - 0.78
112
+ - 0.22
113
+ decoder_padding_ratio:
114
+ - 0.78
115
+ - 0.22
116
+ sca_kernel_size: 11
117
+ infer_type: mapping
118
+ args_masking:
119
+ model_lib: backbone
120
+ model_class: Backbone
121
+ param:
122
+ win_size: 400
123
+ hop_size: 100
124
+ n_fft: 400
125
+ compress_factor: 0.3
126
+ dense_channel: 64
127
+ sigmoid_beta: 2.0
128
+ num_tsblock: 4
129
+ dense_depth: 4
130
+ time_dw_kernel_size: 3
131
+ time_block_kernel:
132
+ - 3
133
+ - 5
134
+ - 7
135
+ - 11
136
+ freq_block_kernel:
137
+ - 3
138
+ - 11
139
+ - 23
140
+ - 31
141
+ time_block_num: 2
142
+ freq_block_num: 2
143
+ causal_ts_block: true
144
+ encoder_padding_ratio:
145
+ - 0.78
146
+ - 0.22
147
+ decoder_padding_ratio:
148
+ - 0.78
149
+ - 0.22
150
+ sca_kernel_size: 11
151
+ infer_type: masking
152
+ load_pretrained_weights: false
153
+ dset:
154
+ dataset: TAPS
155
+ noise_dir: /path/to/dns_noise_16k
156
+ noise_train: dataset/taps/noise_train.txt
157
+ noise_valid: dataset/taps/noise_dev.txt
158
+ noise_test: dataset/taps/noise_test.txt
159
+ rir_dir: /path/to/rir_16k
160
+ rir_train: dataset/taps/rir_train.txt
161
+ rir_valid: dataset/taps/rir_dev.txt
162
+ rir_test: dataset/taps/rir_test.txt
163
+ test_augment_numb: 2
checkpoints/bafnetplus_12ms/best.th ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b93c04c60e397c2e50b78ddde3daeaf9c8c547fc6ff2d9d3d75df8f628251d8
3
+ size 11625101
checkpoints/bafnetplus_12ms/config.yaml ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ sampling_rate: 16000
2
+ segment: auto
3
+ stride: auto
4
+ shift: auto
5
+ n_fft: 400
6
+ hop_size: 100
7
+ win_size: 400
8
+ compress_factor: 0.3
9
+ train_noise:
10
+ snr_range:
11
+ - -15
12
+ - 20
13
+ reverb_proportion: 0.0
14
+ target_dB_FS: -25
15
+ target_dB_FS_floating_value: 10
16
+ silence_length: 0.2
17
+ bcs_gain_perturbation_db: 10
18
+ valid_noise:
19
+ snr_range:
20
+ - -15
21
+ - 10
22
+ reverb_proportion: 0.0
23
+ target_dB_FS: -25
24
+ target_dB_FS_floating_value: 0
25
+ silence_length: 0.2
26
+ deterministic: true
27
+ test_noise:
28
+ snr_step:
29
+ - 0
30
+ reverb_proportion: 0.0
31
+ target_dB_FS: -25
32
+ target_dB_FS_floating_value: 0
33
+ silence_length: 0.2
34
+ deterministic: true
35
+ batch_size: 16
36
+ epochs: 150
37
+ eval_every: 150
38
+ eval_stt: false
39
+ valid_start_epoch: 100
40
+ loss:
41
+ magnitude: 0.9
42
+ phase: 0.3
43
+ complex: 0.1
44
+ consistency: 0.05
45
+ metric: 0.05
46
+ lr: 0.002
47
+ weight_decay: 0.01
48
+ optim: adamW
49
+ betas:
50
+ - 0.9
51
+ - 0.999
52
+ max_grad_norm: 5.0
53
+ warmup_epochs: 30
54
+ warmup_start_factor: 0.1
55
+ eta_min: 1.0e-06
56
+ finetune:
57
+ pretrained_lr: 0.0004
58
+ pretrained_weight_decay: 0.0
59
+ fusion_lr: 0.002
60
+ fusion_weight_decay: 0.01
61
+ device: cuda
62
+ num_prints: 10
63
+ num_workers: 5
64
+ continue_from: null
65
+ log_dir: tensorbd
66
+ save_code: true
67
+ seed: 2039
68
+ model:
69
+ model_lib: bafnetplus
70
+ model_class: BAFNetPlus
71
+ input_type: acs+bcs
72
+ param:
73
+ ablation_mode: full
74
+ conv_depth: 4
75
+ conv_channels: 16
76
+ conv_kernel_size: 7
77
+ calibration_hidden_channels: 16
78
+ calibration_depth: 2
79
+ calibration_kernel_size: 5
80
+ calibration_max_common_log_gain: 0.5
81
+ calibration_max_relative_log_gain: 1.0
82
+ checkpoint_mapping: null
83
+ checkpoint_masking: null
84
+ args_mapping:
85
+ model_lib: backbone
86
+ model_class: Backbone
87
+ param:
88
+ win_size: 400
89
+ hop_size: 100
90
+ n_fft: 400
91
+ compress_factor: 0.3
92
+ dense_channel: 64
93
+ sigmoid_beta: 2.0
94
+ num_tsblock: 4
95
+ dense_depth: 4
96
+ time_dw_kernel_size: 3
97
+ time_block_kernel:
98
+ - 3
99
+ - 5
100
+ - 7
101
+ - 11
102
+ freq_block_kernel:
103
+ - 3
104
+ - 11
105
+ - 23
106
+ - 31
107
+ time_block_num: 2
108
+ freq_block_num: 2
109
+ causal_ts_block: true
110
+ encoder_padding_ratio:
111
+ - 0.975
112
+ - 0.025
113
+ decoder_padding_ratio:
114
+ - 0.975
115
+ - 0.025
116
+ sca_kernel_size: 11
117
+ infer_type: mapping
118
+ args_masking:
119
+ model_lib: backbone
120
+ model_class: Backbone
121
+ param:
122
+ win_size: 400
123
+ hop_size: 100
124
+ n_fft: 400
125
+ compress_factor: 0.3
126
+ dense_channel: 64
127
+ sigmoid_beta: 2.0
128
+ num_tsblock: 4
129
+ dense_depth: 4
130
+ time_dw_kernel_size: 3
131
+ time_block_kernel:
132
+ - 3
133
+ - 5
134
+ - 7
135
+ - 11
136
+ freq_block_kernel:
137
+ - 3
138
+ - 11
139
+ - 23
140
+ - 31
141
+ time_block_num: 2
142
+ freq_block_num: 2
143
+ causal_ts_block: true
144
+ encoder_padding_ratio:
145
+ - 0.975
146
+ - 0.025
147
+ decoder_padding_ratio:
148
+ - 0.975
149
+ - 0.025
150
+ sca_kernel_size: 11
151
+ infer_type: masking
152
+ load_pretrained_weights: false
153
+ dset:
154
+ dataset: TAPS
155
+ noise_dir: /path/to/dns_noise_16k
156
+ noise_train: dataset/taps/noise_train.txt
157
+ noise_valid: dataset/taps/noise_dev.txt
158
+ noise_test: dataset/taps/noise_test.txt
159
+ rir_dir: /path/to/rir_16k
160
+ rir_train: dataset/taps/rir_train.txt
161
+ rir_valid: dataset/taps/rir_dev.txt
162
+ rir_test: dataset/taps/rir_test.txt
163
+ test_augment_numb: 2
checkpoints/bafnetplus_25ms/best.th ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31a10bf220726523594605d38c981fa264866265e15edc2d115e38f0a1530595
3
+ size 11625101
checkpoints/bafnetplus_25ms/config.yaml ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ sampling_rate: 16000
2
+ segment: auto
3
+ stride: auto
4
+ shift: auto
5
+ n_fft: 400
6
+ hop_size: 100
7
+ win_size: 400
8
+ compress_factor: 0.3
9
+ train_noise:
10
+ snr_range:
11
+ - -15
12
+ - 20
13
+ reverb_proportion: 0.0
14
+ target_dB_FS: -25
15
+ target_dB_FS_floating_value: 10
16
+ silence_length: 0.2
17
+ bcs_gain_perturbation_db: 10
18
+ valid_noise:
19
+ snr_range:
20
+ - -15
21
+ - 10
22
+ reverb_proportion: 0.0
23
+ target_dB_FS: -25
24
+ target_dB_FS_floating_value: 0
25
+ silence_length: 0.2
26
+ deterministic: true
27
+ test_noise:
28
+ snr_step:
29
+ - 0
30
+ reverb_proportion: 0.0
31
+ target_dB_FS: -25
32
+ target_dB_FS_floating_value: 0
33
+ silence_length: 0.2
34
+ deterministic: true
35
+ batch_size: 16
36
+ epochs: 150
37
+ eval_every: 150
38
+ eval_stt: false
39
+ valid_start_epoch: 100
40
+ loss:
41
+ magnitude: 0.9
42
+ phase: 0.3
43
+ complex: 0.1
44
+ consistency: 0.05
45
+ metric: 0.05
46
+ lr: 0.002
47
+ weight_decay: 0.01
48
+ optim: adamW
49
+ betas:
50
+ - 0.9
51
+ - 0.999
52
+ max_grad_norm: 5.0
53
+ warmup_epochs: 30
54
+ warmup_start_factor: 0.1
55
+ eta_min: 1.0e-06
56
+ finetune:
57
+ pretrained_lr: 0.0004
58
+ pretrained_weight_decay: 0.0
59
+ fusion_lr: 0.002
60
+ fusion_weight_decay: 0.01
61
+ device: cuda
62
+ num_prints: 10
63
+ num_workers: 5
64
+ continue_from: null
65
+ log_dir: tensorbd
66
+ save_code: true
67
+ seed: 2039
68
+ model:
69
+ model_lib: bafnetplus
70
+ model_class: BAFNetPlus
71
+ input_type: acs+bcs
72
+ param:
73
+ ablation_mode: full
74
+ conv_depth: 4
75
+ conv_channels: 16
76
+ conv_kernel_size: 7
77
+ calibration_hidden_channels: 16
78
+ calibration_depth: 2
79
+ calibration_kernel_size: 5
80
+ calibration_max_common_log_gain: 0.5
81
+ calibration_max_relative_log_gain: 1.0
82
+ checkpoint_mapping: null
83
+ checkpoint_masking: null
84
+ args_mapping:
85
+ model_lib: backbone
86
+ model_class: Backbone
87
+ param:
88
+ win_size: 400
89
+ hop_size: 100
90
+ n_fft: 400
91
+ compress_factor: 0.3
92
+ dense_channel: 64
93
+ sigmoid_beta: 2.0
94
+ num_tsblock: 4
95
+ dense_depth: 4
96
+ time_dw_kernel_size: 3
97
+ time_block_kernel:
98
+ - 3
99
+ - 5
100
+ - 7
101
+ - 11
102
+ freq_block_kernel:
103
+ - 3
104
+ - 11
105
+ - 23
106
+ - 31
107
+ time_block_num: 2
108
+ freq_block_num: 2
109
+ causal_ts_block: true
110
+ encoder_padding_ratio:
111
+ - 0.95
112
+ - 0.05
113
+ decoder_padding_ratio:
114
+ - 0.95
115
+ - 0.05
116
+ sca_kernel_size: 11
117
+ infer_type: mapping
118
+ args_masking:
119
+ model_lib: backbone
120
+ model_class: Backbone
121
+ param:
122
+ win_size: 400
123
+ hop_size: 100
124
+ n_fft: 400
125
+ compress_factor: 0.3
126
+ dense_channel: 64
127
+ sigmoid_beta: 2.0
128
+ num_tsblock: 4
129
+ dense_depth: 4
130
+ time_dw_kernel_size: 3
131
+ time_block_kernel:
132
+ - 3
133
+ - 5
134
+ - 7
135
+ - 11
136
+ freq_block_kernel:
137
+ - 3
138
+ - 11
139
+ - 23
140
+ - 31
141
+ time_block_num: 2
142
+ freq_block_num: 2
143
+ causal_ts_block: true
144
+ encoder_padding_ratio:
145
+ - 0.95
146
+ - 0.05
147
+ decoder_padding_ratio:
148
+ - 0.95
149
+ - 0.05
150
+ sca_kernel_size: 11
151
+ infer_type: masking
152
+ load_pretrained_weights: false
153
+ dset:
154
+ dataset: TAPS
155
+ noise_dir: /path/to/dns_noise_16k
156
+ noise_train: dataset/taps/noise_train.txt
157
+ noise_valid: dataset/taps/noise_dev.txt
158
+ noise_test: dataset/taps/noise_test.txt
159
+ rir_dir: /path/to/rir_16k
160
+ rir_train: dataset/taps/rir_train.txt
161
+ rir_valid: dataset/taps/rir_dev.txt
162
+ rir_test: dataset/taps/rir_test.txt
163
+ test_augment_numb: 2
checkpoints/bafnetplus_50ms/best.th ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ab190dc2d3e502cc1e0007e6252f4f48c5a1af761c7e73fd107b7414af332c3
3
+ size 11625101
checkpoints/bafnetplus_50ms/config.yaml ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ sampling_rate: 16000
2
+ segment: auto
3
+ stride: auto
4
+ shift: auto
5
+ n_fft: 400
6
+ hop_size: 100
7
+ win_size: 400
8
+ compress_factor: 0.3
9
+ train_noise:
10
+ snr_range:
11
+ - -15
12
+ - 20
13
+ reverb_proportion: 0.0
14
+ target_dB_FS: -25
15
+ target_dB_FS_floating_value: 10
16
+ silence_length: 0.2
17
+ bcs_gain_perturbation_db: 10
18
+ valid_noise:
19
+ snr_range:
20
+ - -15
21
+ - 10
22
+ reverb_proportion: 0.0
23
+ target_dB_FS: -25
24
+ target_dB_FS_floating_value: 0
25
+ silence_length: 0.2
26
+ deterministic: true
27
+ test_noise:
28
+ snr_step:
29
+ - 0
30
+ reverb_proportion: 0.0
31
+ target_dB_FS: -25
32
+ target_dB_FS_floating_value: 0
33
+ silence_length: 0.2
34
+ deterministic: true
35
+ batch_size: 16
36
+ epochs: 150
37
+ eval_every: 150
38
+ eval_stt: false
39
+ valid_start_epoch: 100
40
+ loss:
41
+ magnitude: 0.9
42
+ phase: 0.3
43
+ complex: 0.1
44
+ consistency: 0.05
45
+ metric: 0.05
46
+ lr: 0.002
47
+ weight_decay: 0.01
48
+ optim: adamW
49
+ betas:
50
+ - 0.9
51
+ - 0.999
52
+ max_grad_norm: 5.0
53
+ warmup_epochs: 30
54
+ warmup_start_factor: 0.1
55
+ eta_min: 1.0e-06
56
+ finetune:
57
+ pretrained_lr: 0.0004
58
+ pretrained_weight_decay: 0.0
59
+ fusion_lr: 0.002
60
+ fusion_weight_decay: 0.01
61
+ device: cuda
62
+ num_prints: 10
63
+ num_workers: 5
64
+ continue_from: null
65
+ log_dir: tensorbd
66
+ save_code: true
67
+ seed: 2039
68
+ model:
69
+ model_lib: bafnetplus
70
+ model_class: BAFNetPlus
71
+ input_type: acs+bcs
72
+ param:
73
+ ablation_mode: full
74
+ conv_depth: 4
75
+ conv_channels: 16
76
+ conv_kernel_size: 7
77
+ calibration_hidden_channels: 16
78
+ calibration_depth: 2
79
+ calibration_kernel_size: 5
80
+ calibration_max_common_log_gain: 0.5
81
+ calibration_max_relative_log_gain: 1.0
82
+ checkpoint_mapping: null
83
+ checkpoint_masking: null
84
+ args_mapping:
85
+ model_lib: backbone
86
+ model_class: Backbone
87
+ param:
88
+ win_size: 400
89
+ hop_size: 100
90
+ n_fft: 400
91
+ compress_factor: 0.3
92
+ dense_channel: 64
93
+ sigmoid_beta: 2.0
94
+ num_tsblock: 4
95
+ dense_depth: 4
96
+ time_dw_kernel_size: 3
97
+ time_block_kernel:
98
+ - 3
99
+ - 5
100
+ - 7
101
+ - 11
102
+ freq_block_kernel:
103
+ - 3
104
+ - 11
105
+ - 23
106
+ - 31
107
+ time_block_num: 2
108
+ freq_block_num: 2
109
+ causal_ts_block: true
110
+ encoder_padding_ratio:
111
+ - 0.9
112
+ - 0.1
113
+ decoder_padding_ratio:
114
+ - 0.9
115
+ - 0.1
116
+ sca_kernel_size: 11
117
+ infer_type: mapping
118
+ args_masking:
119
+ model_lib: backbone
120
+ model_class: Backbone
121
+ param:
122
+ win_size: 400
123
+ hop_size: 100
124
+ n_fft: 400
125
+ compress_factor: 0.3
126
+ dense_channel: 64
127
+ sigmoid_beta: 2.0
128
+ num_tsblock: 4
129
+ dense_depth: 4
130
+ time_dw_kernel_size: 3
131
+ time_block_kernel:
132
+ - 3
133
+ - 5
134
+ - 7
135
+ - 11
136
+ freq_block_kernel:
137
+ - 3
138
+ - 11
139
+ - 23
140
+ - 31
141
+ time_block_num: 2
142
+ freq_block_num: 2
143
+ causal_ts_block: true
144
+ encoder_padding_ratio:
145
+ - 0.9
146
+ - 0.1
147
+ decoder_padding_ratio:
148
+ - 0.9
149
+ - 0.1
150
+ sca_kernel_size: 11
151
+ infer_type: masking
152
+ load_pretrained_weights: false
153
+ dset:
154
+ dataset: TAPS
155
+ noise_dir: /path/to/dns_noise_16k
156
+ noise_train: dataset/taps/noise_train.txt
157
+ noise_valid: dataset/taps/noise_dev.txt
158
+ noise_test: dataset/taps/noise_test.txt
159
+ rir_dir: /path/to/rir_16k
160
+ rir_train: dataset/taps/rir_train.txt
161
+ rir_valid: dataset/taps/rir_dev.txt
162
+ rir_test: dataset/taps/rir_test.txt
163
+ test_augment_numb: 2
checkpoints/bafnetplus_75ms/best.th ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:281239d2e1e57966424e203b001315423632ccdff51462afcbb903d4b0fa8864
3
+ size 11625101
checkpoints/bafnetplus_75ms/config.yaml ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ sampling_rate: 16000
2
+ segment: auto
3
+ stride: auto
4
+ shift: auto
5
+ n_fft: 400
6
+ hop_size: 100
7
+ win_size: 400
8
+ compress_factor: 0.3
9
+ train_noise:
10
+ snr_range:
11
+ - -15
12
+ - 20
13
+ reverb_proportion: 0.0
14
+ target_dB_FS: -25
15
+ target_dB_FS_floating_value: 10
16
+ silence_length: 0.2
17
+ bcs_gain_perturbation_db: 10
18
+ valid_noise:
19
+ snr_range:
20
+ - -15
21
+ - 10
22
+ reverb_proportion: 0.0
23
+ target_dB_FS: -25
24
+ target_dB_FS_floating_value: 0
25
+ silence_length: 0.2
26
+ deterministic: true
27
+ test_noise:
28
+ snr_step:
29
+ - 0
30
+ reverb_proportion: 0.0
31
+ target_dB_FS: -25
32
+ target_dB_FS_floating_value: 0
33
+ silence_length: 0.2
34
+ deterministic: true
35
+ batch_size: 16
36
+ epochs: 150
37
+ eval_every: 150
38
+ eval_stt: false
39
+ valid_start_epoch: 100
40
+ loss:
41
+ magnitude: 0.9
42
+ phase: 0.3
43
+ complex: 0.1
44
+ consistency: 0.05
45
+ metric: 0.05
46
+ lr: 0.002
47
+ weight_decay: 0.01
48
+ optim: adamW
49
+ betas:
50
+ - 0.9
51
+ - 0.999
52
+ max_grad_norm: 5.0
53
+ warmup_epochs: 30
54
+ warmup_start_factor: 0.1
55
+ eta_min: 1.0e-06
56
+ finetune:
57
+ pretrained_lr: 0.0004
58
+ pretrained_weight_decay: 0.0
59
+ fusion_lr: 0.002
60
+ fusion_weight_decay: 0.01
61
+ device: cuda
62
+ num_prints: 10
63
+ num_workers: 5
64
+ continue_from: null
65
+ log_dir: tensorbd
66
+ save_code: true
67
+ seed: 2039
68
+ model:
69
+ model_lib: bafnetplus
70
+ model_class: BAFNetPlus
71
+ input_type: acs+bcs
72
+ param:
73
+ ablation_mode: full
74
+ conv_depth: 4
75
+ conv_channels: 16
76
+ conv_kernel_size: 7
77
+ calibration_hidden_channels: 16
78
+ calibration_depth: 2
79
+ calibration_kernel_size: 5
80
+ calibration_max_common_log_gain: 0.5
81
+ calibration_max_relative_log_gain: 1.0
82
+ checkpoint_mapping: null
83
+ checkpoint_masking: null
84
+ args_mapping:
85
+ model_lib: backbone
86
+ model_class: Backbone
87
+ param:
88
+ win_size: 400
89
+ hop_size: 100
90
+ n_fft: 400
91
+ compress_factor: 0.3
92
+ dense_channel: 64
93
+ sigmoid_beta: 2.0
94
+ num_tsblock: 4
95
+ dense_depth: 4
96
+ time_dw_kernel_size: 3
97
+ time_block_kernel:
98
+ - 3
99
+ - 5
100
+ - 7
101
+ - 11
102
+ freq_block_kernel:
103
+ - 3
104
+ - 11
105
+ - 23
106
+ - 31
107
+ time_block_num: 2
108
+ freq_block_num: 2
109
+ causal_ts_block: true
110
+ encoder_padding_ratio:
111
+ - 0.84
112
+ - 0.16
113
+ decoder_padding_ratio:
114
+ - 0.84
115
+ - 0.16
116
+ sca_kernel_size: 11
117
+ infer_type: mapping
118
+ args_masking:
119
+ model_lib: backbone
120
+ model_class: Backbone
121
+ param:
122
+ win_size: 400
123
+ hop_size: 100
124
+ n_fft: 400
125
+ compress_factor: 0.3
126
+ dense_channel: 64
127
+ sigmoid_beta: 2.0
128
+ num_tsblock: 4
129
+ dense_depth: 4
130
+ time_dw_kernel_size: 3
131
+ time_block_kernel:
132
+ - 3
133
+ - 5
134
+ - 7
135
+ - 11
136
+ freq_block_kernel:
137
+ - 3
138
+ - 11
139
+ - 23
140
+ - 31
141
+ time_block_num: 2
142
+ freq_block_num: 2
143
+ causal_ts_block: true
144
+ encoder_padding_ratio:
145
+ - 0.84
146
+ - 0.16
147
+ decoder_padding_ratio:
148
+ - 0.84
149
+ - 0.16
150
+ sca_kernel_size: 11
151
+ infer_type: masking
152
+ load_pretrained_weights: false
153
+ dset:
154
+ dataset: TAPS
155
+ noise_dir: /path/to/dns_noise_16k
156
+ noise_train: dataset/taps/noise_train.txt
157
+ noise_valid: dataset/taps/noise_dev.txt
158
+ noise_test: dataset/taps/noise_test.txt
159
+ rir_dir: /path/to/rir_16k
160
+ rir_train: dataset/taps/rir_train.txt
161
+ rir_valid: dataset/taps/rir_dev.txt
162
+ rir_test: dataset/taps/rir_test.txt
163
+ test_augment_numb: 2
checkpoints/vbx_bafnetplus_50ms/best.th ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:220d47140941c03ea22cae6ce22da29f245e129f33abfcb9ebaf2df2f25e1a0d
3
+ size 11625421
checkpoints/vbx_bafnetplus_50ms/config.yaml ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ sampling_rate: 16000
2
+ segment: auto
3
+ stride: auto
4
+ shift: auto
5
+ n_fft: 400
6
+ hop_size: 100
7
+ win_size: 400
8
+ compress_factor: 0.3
9
+ train_noise:
10
+ snr_range:
11
+ - -15
12
+ - 20
13
+ reverb_proportion: 0.0
14
+ target_dB_FS: -25
15
+ target_dB_FS_floating_value: 10
16
+ silence_length: 0.2
17
+ bcs_gain_perturbation_db: 10
18
+ valid_noise:
19
+ snr_range:
20
+ - -15
21
+ - 10
22
+ reverb_proportion: 0.0
23
+ target_dB_FS: -25
24
+ target_dB_FS_floating_value: 0
25
+ silence_length: 0.2
26
+ deterministic: true
27
+ test_noise:
28
+ snr_step:
29
+ - 0
30
+ reverb_proportion: 0.0
31
+ target_dB_FS: -25
32
+ target_dB_FS_floating_value: 0
33
+ silence_length: 0.2
34
+ deterministic: true
35
+ batch_size: 16
36
+ epochs: 60
37
+ eval_every: 150
38
+ eval_stt: false
39
+ valid_start_epoch: 40
40
+ loss:
41
+ magnitude: 0.9
42
+ phase: 0.3
43
+ complex: 0.1
44
+ consistency: 0.05
45
+ metric: 0.05
46
+ lr: 0.002
47
+ weight_decay: 0.01
48
+ optim: adamW
49
+ betas:
50
+ - 0.9
51
+ - 0.999
52
+ max_grad_norm: 5.0
53
+ warmup_epochs: 12
54
+ warmup_start_factor: 0.1
55
+ eta_min: 1.0e-06
56
+ finetune:
57
+ pretrained_lr: 0.0004
58
+ pretrained_weight_decay: 0.0
59
+ fusion_lr: 0.002
60
+ fusion_weight_decay: 0.01
61
+ device: cuda
62
+ num_prints: 10
63
+ num_workers: 5
64
+ continue_from: null
65
+ log_dir: tensorbd
66
+ save_code: true
67
+ seed: 2039
68
+ model:
69
+ model_lib: bafnetplus
70
+ model_class: BAFNetPlus
71
+ input_type: acs+bcs
72
+ param:
73
+ ablation_mode: full
74
+ conv_depth: 4
75
+ conv_channels: 16
76
+ conv_kernel_size: 7
77
+ calibration_hidden_channels: 16
78
+ calibration_depth: 2
79
+ calibration_kernel_size: 5
80
+ calibration_max_common_log_gain: 0.5
81
+ calibration_max_relative_log_gain: 1.0
82
+ checkpoint_mapping: null
83
+ checkpoint_masking: null
84
+ args_mapping:
85
+ model_lib: backbone
86
+ model_class: Backbone
87
+ param:
88
+ win_size: 400
89
+ hop_size: 100
90
+ n_fft: 400
91
+ compress_factor: 0.3
92
+ dense_channel: 64
93
+ sigmoid_beta: 2.0
94
+ num_tsblock: 4
95
+ dense_depth: 4
96
+ time_dw_kernel_size: 3
97
+ time_block_kernel:
98
+ - 3
99
+ - 5
100
+ - 7
101
+ - 11
102
+ freq_block_kernel:
103
+ - 3
104
+ - 11
105
+ - 23
106
+ - 31
107
+ time_block_num: 2
108
+ freq_block_num: 2
109
+ causal_ts_block: true
110
+ encoder_padding_ratio:
111
+ - 0.9
112
+ - 0.1
113
+ decoder_padding_ratio:
114
+ - 0.9
115
+ - 0.1
116
+ sca_kernel_size: 11
117
+ infer_type: mapping
118
+ args_masking:
119
+ model_lib: backbone
120
+ model_class: Backbone
121
+ param:
122
+ win_size: 400
123
+ hop_size: 100
124
+ n_fft: 400
125
+ compress_factor: 0.3
126
+ dense_channel: 64
127
+ sigmoid_beta: 2.0
128
+ num_tsblock: 4
129
+ dense_depth: 4
130
+ time_dw_kernel_size: 3
131
+ time_block_kernel:
132
+ - 3
133
+ - 5
134
+ - 7
135
+ - 11
136
+ freq_block_kernel:
137
+ - 3
138
+ - 11
139
+ - 23
140
+ - 31
141
+ time_block_num: 2
142
+ freq_block_num: 2
143
+ causal_ts_block: true
144
+ encoder_padding_ratio:
145
+ - 0.9
146
+ - 0.1
147
+ decoder_padding_ratio:
148
+ - 0.9
149
+ - 0.1
150
+ sca_kernel_size: 11
151
+ infer_type: masking
152
+ load_pretrained_weights: false
153
+ dset:
154
+ dataset: Vibravox
155
+ speech_subset: null
156
+ test_augment_numb: 2
157
+ noise_dir: /path/to/dns_noise_16k
158
+ noise_train: dataset/vibravox/noise_train.txt
159
+ noise_valid: dataset/vibravox/noise_dev.txt
160
+ noise_test: dataset/vibravox/noise_test.txt
161
+ rir_dir: /path/to/rir_16k
162
+ rir_train: dataset/taps/rir_train.txt
163
+ rir_valid: dataset/taps/rir_dev.txt
164
+ rir_test: dataset/taps/rir_test.txt
manifest.json ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "bafnetplus-hf-package-v1",
3
+ "repo_id": "yskim3271/BAFNet-plus",
4
+ "generated_at": "2026-11-22 05:35:21 UTC",
5
+ "artifact_count": 15,
6
+ "total_size_bytes": 82682902,
7
+ "artifacts": [
8
+ {
9
+ "path": "checkpoints/bafnetplus_12ms/best.th",
10
+ "category": "PyTorch Checkpoint",
11
+ "dataset": "TAPS (12.5 ms)",
12
+ "description": "TAPS 12.5 ms tier (rho=0.975, chunk=2 frames)",
13
+ "size_bytes": 11625101,
14
+ "md5": "52d80fe9eabcee70fc32a7604782bec9",
15
+ "sha256": "2b93c04c60e397c2e50b78ddde3daeaf9c8c547fc6ff2d9d3d75df8f628251d8"
16
+ },
17
+ {
18
+ "path": "checkpoints/bafnetplus_12ms/config.yaml",
19
+ "category": "Hydra Config (Sanitized)",
20
+ "dataset": "TAPS (12.5 ms)",
21
+ "description": "Self-contained configuration for bafnetplus_12ms",
22
+ "size_bytes": 3384,
23
+ "md5": "929f5801c68e7e25be6ed1e1777b356a",
24
+ "sha256": "39d993a5f515a8157989ef3414a75ad5d9fd8de595f6c9b2b2e73872b24c6a0d"
25
+ },
26
+ {
27
+ "path": "checkpoints/bafnetplus_25ms/best.th",
28
+ "category": "PyTorch Checkpoint",
29
+ "dataset": "TAPS (25 ms)",
30
+ "description": "TAPS 25 ms tier (rho=0.95, chunk=4 frames)",
31
+ "size_bytes": 11625101,
32
+ "md5": "47a5dd81005babcff295bece2d058ac6",
33
+ "sha256": "31a10bf220726523594605d38c981fa264866265e15edc2d115e38f0a1530595"
34
+ },
35
+ {
36
+ "path": "checkpoints/bafnetplus_25ms/config.yaml",
37
+ "category": "Hydra Config (Sanitized)",
38
+ "dataset": "TAPS (25 ms)",
39
+ "description": "Self-contained configuration for bafnetplus_25ms",
40
+ "size_bytes": 3376,
41
+ "md5": "f1f3066adab13aa16855d341168d529b",
42
+ "sha256": "30fff9a0dbd2e13e03350cc14a241e72897e4330f7631591270daca4a6c3a28f"
43
+ },
44
+ {
45
+ "path": "checkpoints/bafnetplus_50ms/best.th",
46
+ "category": "PyTorch Checkpoint",
47
+ "dataset": "TAPS (50 ms)",
48
+ "description": "TAPS 50 ms default operating point (rho=0.90, chunk=8 frames)",
49
+ "size_bytes": 11625101,
50
+ "md5": "0f95f466ffc2f540ed5cf0fd968a66ff",
51
+ "sha256": "3ab190dc2d3e502cc1e0007e6252f4f48c5a1af761c7e73fd107b7414af332c3"
52
+ },
53
+ {
54
+ "path": "checkpoints/bafnetplus_50ms/config.yaml",
55
+ "category": "Hydra Config (Sanitized)",
56
+ "dataset": "TAPS (50 ms)",
57
+ "description": "Self-contained configuration for bafnetplus_50ms",
58
+ "size_bytes": 3368,
59
+ "md5": "2b70110a4af2b35ca194084a3ca1663e",
60
+ "sha256": "4d566b9f40013d0a04a65899806e2e89699741e4bd31da37dcffe6b9e02391d7"
61
+ },
62
+ {
63
+ "path": "checkpoints/bafnetplus_75ms/best.th",
64
+ "category": "PyTorch Checkpoint",
65
+ "dataset": "TAPS (75 ms)",
66
+ "description": "TAPS 75 ms tier (rho=0.84, chunk=12 frames)",
67
+ "size_bytes": 11625101,
68
+ "md5": "288257413f842b6a42884c53b2ef62e1",
69
+ "sha256": "281239d2e1e57966424e203b001315423632ccdff51462afcbb903d4b0fa8864"
70
+ },
71
+ {
72
+ "path": "checkpoints/bafnetplus_75ms/config.yaml",
73
+ "category": "Hydra Config (Sanitized)",
74
+ "dataset": "TAPS (75 ms)",
75
+ "description": "Self-contained configuration for bafnetplus_75ms",
76
+ "size_bytes": 3376,
77
+ "md5": "59d370269897ac428d38a18196a20f5c",
78
+ "sha256": "58d6ae8514e855acfdbf231098fbe2188d1e6def1875ca2b79a0bd5f744dabdf"
79
+ },
80
+ {
81
+ "path": "checkpoints/bafnetplus_100ms/best.th",
82
+ "category": "PyTorch Checkpoint",
83
+ "dataset": "TAPS (100 ms)",
84
+ "description": "TAPS 100 ms tier (rho=0.78, chunk=16 frames)",
85
+ "size_bytes": 11625165,
86
+ "md5": "6c858b1b26a7a232ad61dc574a429e74",
87
+ "sha256": "52b954844efbc6d2f4e3080fe512e10c0684a5af103fe6057fa93125ba0c1123"
88
+ },
89
+ {
90
+ "path": "checkpoints/bafnetplus_100ms/config.yaml",
91
+ "category": "Hydra Config (Sanitized)",
92
+ "dataset": "TAPS (100 ms)",
93
+ "description": "Self-contained configuration for bafnetplus_100ms",
94
+ "size_bytes": 3376,
95
+ "md5": "ee99ba9ab7aa9ef99200bd47a7efe025",
96
+ "sha256": "7a43a967c270ad2d3605c51262222a234bab8da7e787beaa078ac2c8c24bba83"
97
+ },
98
+ {
99
+ "path": "checkpoints/vbx_bafnetplus_50ms/best.th",
100
+ "category": "PyTorch Checkpoint",
101
+ "dataset": "Vibravox (50 ms)",
102
+ "description": "Vibravox 50 ms cross-corpus checkpoint (rho=0.90, chunk=8 frames)",
103
+ "size_bytes": 11625421,
104
+ "md5": "ad71e0fea6095e3a9545a3d0cee09f40",
105
+ "sha256": "220d47140941c03ea22cae6ce22da29f245e129f33abfcb9ebaf2df2f25e1a0d"
106
+ },
107
+ {
108
+ "path": "checkpoints/vbx_bafnetplus_50ms/config.yaml",
109
+ "category": "Hydra Config (Sanitized)",
110
+ "dataset": "Vibravox (50 ms)",
111
+ "description": "Self-contained configuration for vbx_bafnetplus_50ms",
112
+ "size_bytes": 3404,
113
+ "md5": "1f8bd396a517642d0c1944c363812e2e",
114
+ "sha256": "fca0682a06a5162444b79506f740571b5ef3e568d51ee10754781824d1b050db"
115
+ },
116
+ {
117
+ "path": "onnx/bafnetplus_50ms_fp32.onnx",
118
+ "category": "Streaming ONNX",
119
+ "dataset": "TAPS (50 ms)",
120
+ "description": "FP32 functional-stateful streaming ONNX graph (opset 17, 190 states, chunk=8)",
121
+ "size_bytes": 12796287,
122
+ "md5": "cac4cf69c904b9fb5397bff328532f6c",
123
+ "sha256": "e94ea811014d0f974269acf7aae6aa2f9ec5a32d5503b7181a86bcb60f83b72a"
124
+ },
125
+ {
126
+ "path": "onnx/bafnetplus_50ms_fp32.onnx.json",
127
+ "category": "ONNX Sidecar",
128
+ "dataset": "TAPS (50 ms)",
129
+ "description": "Streaming geometry, state registry, and checkpoint provenance sidecar JSON",
130
+ "size_bytes": 105814,
131
+ "md5": "78a75d8b9c5257e7edb73419f1fbd7e7",
132
+ "sha256": "d49024ccd7a0a7aac268217178a278545f7e120343fcfd1f65f334b9f5f79de5"
133
+ },
134
+ {
135
+ "path": "README.md",
136
+ "category": "Model Card",
137
+ "dataset": "All",
138
+ "description": "HuggingFace Hub repository README and quickstart",
139
+ "size_bytes": 9527,
140
+ "md5": "62a1d73898db14a9c968112a8e115d83",
141
+ "sha256": "ef7c544cbaec3e7acfb403689d5cac4ae6280adbdae92917bf1c49f262de5ffb"
142
+ }
143
+ ]
144
+ }
onnx/bafnetplus_50ms_fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e94ea811014d0f974269acf7aae6aa2f9ec5a32d5503b7181a86bcb60f83b72a
3
+ size 12796287
onnx/bafnetplus_50ms_fp32.onnx.json ADDED
The diff for this file is too large to render. See raw diff