upload LiSenNet conv_hardened_deep variant -> conv-hardened-deep/
Browse files- README.md +17 -5
- conv-hardened-deep/config.json +43 -0
- conv-hardened-deep/g_best +3 -0
- conv-hardened-deep/g_best_fp32.onnx +3 -0
- conv-hardened-deep/g_best_int8_static.onnx +3 -0
- conv-hardened-deep/g_best_windowed_fp32.onnx +3 -0
- conv-hardened-deep/g_best_windowed_int8_decoder_fp32.onnx +3 -0
- conv-hardened-deep/g_best_windowed_int8_static.onnx +3 -0
README.md
CHANGED
|
@@ -24,15 +24,19 @@ VoiceBank-DEMAND-16k — a sub-band U-Net with a magnitude-only mask (phase from
|
|
| 24 |
[arXiv:2409.13285](https://arxiv.org/abs/2409.13285)**
|
| 25 |
([hyyan2k/LiSenNet](https://github.com/hyyan2k/LiSenNet), MIT).
|
| 26 |
|
| 27 |
-
This repo holds **
|
| 28 |
|
| 29 |
| subfolder | recipe | params | NPU-compiles | FP32 PESQ | real-time int8 PESQ |
|
| 30 |
| --------- | ------ | -----: | :----------: | --------: | ------------------: |
|
| 31 |
| [`gru/`](./gru) | dual-path **GRU** (faithful) | 36,783 | ✗ | 3.006 | 2.930 |
|
| 32 |
| [`conv/`](./conv) | dual-path **conv** | 41,063 | ✗ | 2.970 | 2.855 |
|
| 33 |
-
| [`conv-hardened/`](./conv-hardened) | conv + **NPU-hardened** | 36,288 | ✓ |
|
|
|
|
| 34 |
|
| 35 |
PESQ is wideband, on the full 824-utterance VoiceBank-DEMAND test split.
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
* **`gru/`** is the faithful reproduction and the original quality reference. Its
|
| 38 |
GRU + 2-axis `LayerNorm` do **not** compile to the STM32N6 Neural-ART NPU.
|
|
@@ -41,14 +45,22 @@ PESQ is wideband, on the full 824-utterance VoiceBank-DEMAND test split.
|
|
| 41 |
graph (`conv/g_best_streaming_fp32.onnx`, `feat + N state_i_in -> est_mag +
|
| 42 |
N state_i_out`) crashes the Neural-ART codegen — kept as the CPU/onnxruntime
|
| 43 |
frame-by-frame reference.
|
| 44 |
-
* **`conv-hardened/`** is the **NPU-deployable** variant
|
| 45 |
-
|
| 46 |
-
|
| 47 |
(`conv-hardened/g_best_windowed_int8_static.onnx`, signed QInt8,
|
| 48 |
`feat_window (B,3,132,257) -> est_mag (B,64,257)`, window = receptive field
|
| 49 |
68 + 64 emitted frames) that **compiles to Neural-ART** — the artifact handed
|
| 50 |
to stedgeai. The hardened primitives also quantize far better (int8 drop
|
| 51 |
−0.016 vs −0.115 for `conv/`).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
Code + full write-up: [https://github.com/LarocheC/eco8-neaixt](https://github.com/LarocheC/eco8-neaixt) — see
|
| 54 |
[RESULTS_LISENNET.md](https://github.com/LarocheC/eco8-neaixt/blob/main/RESULTS_LISENNET.md).
|
|
|
|
| 24 |
[arXiv:2409.13285](https://arxiv.org/abs/2409.13285)**
|
| 25 |
([hyyan2k/LiSenNet](https://github.com/hyyan2k/LiSenNet), MIT).
|
| 26 |
|
| 27 |
+
This repo holds **four variants**, each in its own subfolder:
|
| 28 |
|
| 29 |
| subfolder | recipe | params | NPU-compiles | FP32 PESQ | real-time int8 PESQ |
|
| 30 |
| --------- | ------ | -----: | :----------: | --------: | ------------------: |
|
| 31 |
| [`gru/`](./gru) | dual-path **GRU** (faithful) | 36,783 | ✗ | 3.006 | 2.930 |
|
| 32 |
| [`conv/`](./conv) | dual-path **conv** | 41,063 | ✗ | 2.970 | 2.855 |
|
| 33 |
+
| [`conv-hardened/`](./conv-hardened) | conv + **NPU-hardened** | 36,288 | ✓ | 3.013 | 2.998 |
|
| 34 |
+
| [`conv-hardened-deep/`](./conv-hardened-deep) | hardened + **deep RF + ReLU6** | 46,248 | ✓* | **3.084** | **3.014** (int8) / **3.052** (hybrid) |
|
| 35 |
|
| 36 |
PESQ is wideband, on the full 824-utterance VoiceBank-DEMAND test split.
|
| 37 |
+
(*) `conv-hardened-deep/` uses the same op set as `conv-hardened/` plus Clip
|
| 38 |
+
(ReLU6); its graph has not yet been through a stedgeai compile, `conv-hardened/`
|
| 39 |
+
has (topology verified on Neural-ART).
|
| 40 |
|
| 41 |
* **`gru/`** is the faithful reproduction and the original quality reference. Its
|
| 42 |
GRU + 2-axis `LayerNorm` do **not** compile to the STM32N6 Neural-ART NPU.
|
|
|
|
| 45 |
graph (`conv/g_best_streaming_fp32.onnx`, `feat + N state_i_in -> est_mag +
|
| 46 |
N state_i_out`) crashes the Neural-ART codegen — kept as the CPU/onnxruntime
|
| 47 |
frame-by-frame reference.
|
| 48 |
+
* **`conv-hardened/`** is the compile-verified **NPU-deployable** variant:
|
| 49 |
+
per-channel BatchNorm (folds into the convs), ReLU, plain ConvTranspose
|
| 50 |
+
upsampling, and a stateless **windowed** deploy graph
|
| 51 |
(`conv-hardened/g_best_windowed_int8_static.onnx`, signed QInt8,
|
| 52 |
`feat_window (B,3,132,257) -> est_mag (B,64,257)`, window = receptive field
|
| 53 |
68 + 64 emitted frames) that **compiles to Neural-ART** — the artifact handed
|
| 54 |
to stedgeai. The hardened primitives also quantize far better (int8 drop
|
| 55 |
−0.016 vs −0.115 for `conv/`).
|
| 56 |
+
* **`conv-hardened-deep/`** is the **best model overall**: the hardened recipe,
|
| 57 |
+
deeper (3 blocks) with an extra dilation stage (receptive field 196 frames ≈
|
| 58 |
+
3.1 s) and **ReLU6** activations (bounded ranges quantize better; exports as
|
| 59 |
+
Clip). Window is 196+64=260 frames (`feat_window (B,3,260,257)`). It ships
|
| 60 |
+
**two** signed windowed int8 artifacts: `g_best_windowed_int8_static.onnx`
|
| 61 |
+
(everything int8, PESQ 3.014) and `g_best_windowed_int8_decoder_fp32.onnx`
|
| 62 |
+
(int8 except the decoder's QDQ nodes, PESQ **3.052** — the int8 loss is
|
| 63 |
+
decoder-localized; the decoder then runs as float epochs on the board).
|
| 64 |
|
| 65 |
Code + full write-up: [https://github.com/LarocheC/eco8-neaixt](https://github.com/LarocheC/eco8-neaixt) — see
|
| 66 |
[RESULTS_LISENNET.md](https://github.com/LarocheC/eco8-neaixt/blob/main/RESULTS_LISENNET.md).
|
conv-hardened-deep/config.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_comment": "ReLU6 variant of lisennet_conv_hardened_nc24_deep (FP32 3.069 but int8 rt 2.985 \u2014 long-RF activations lose ~0.08 to per-tensor PTQ; see RESULTS_LISENNET.md round 2). act='relu6' bounds the activation dynamic range by construction (NPU-native Clip) to let per-tensor int8 resolve the long-RF features. Same arch otherwise. Retrain into cp_lisennet_conv_hardened_nc24_deep_relu6; ship gate = int8 real-time > 2.998 (nc24 b2).",
|
| 3 |
+
"num_gpus": 0,
|
| 4 |
+
"batch_size": 16,
|
| 5 |
+
"learning_rate": 0.0005,
|
| 6 |
+
"adam_b1": 0.8,
|
| 7 |
+
"adam_b2": 0.99,
|
| 8 |
+
"lr_decay": 0.98,
|
| 9 |
+
"seed": 1234,
|
| 10 |
+
"sampling_rate": 16000,
|
| 11 |
+
"segment_size": 32000,
|
| 12 |
+
"n_fft": 512,
|
| 13 |
+
"hop_size": 256,
|
| 14 |
+
"win_size": 512,
|
| 15 |
+
"num_channels": 24,
|
| 16 |
+
"n_blocks": 3,
|
| 17 |
+
"compress_factor": 0.3,
|
| 18 |
+
"gradient_clip": 5.0,
|
| 19 |
+
"bottleneck": "conv",
|
| 20 |
+
"norm": "batchnorm",
|
| 21 |
+
"act": "relu6",
|
| 22 |
+
"upsample": "convtranspose",
|
| 23 |
+
"intra_kernel": 11,
|
| 24 |
+
"inter_kernel": 3,
|
| 25 |
+
"inter_dilations": [
|
| 26 |
+
1,
|
| 27 |
+
2,
|
| 28 |
+
4,
|
| 29 |
+
8,
|
| 30 |
+
16
|
| 31 |
+
],
|
| 32 |
+
"loss": {
|
| 33 |
+
"complex": 0.1,
|
| 34 |
+
"mag": 0.9,
|
| 35 |
+
"adv": 0.05
|
| 36 |
+
},
|
| 37 |
+
"num_workers": 4,
|
| 38 |
+
"dist_config": {
|
| 39 |
+
"dist_backend": "nccl",
|
| 40 |
+
"dist_url": "tcp://localhost:54321",
|
| 41 |
+
"world_size": 1
|
| 42 |
+
}
|
| 43 |
+
}
|
conv-hardened-deep/g_best
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9b9e8a7c855a0a3f296b896c82cd81c6744a4f30afce65276581d032f522d99
|
| 3 |
+
size 252991
|
conv-hardened-deep/g_best_fp32.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a281fd085ed5a2a3964b905a95a076b572d057fe0139ca9218d5a231e2c085bf
|
| 3 |
+
size 351159
|
conv-hardened-deep/g_best_int8_static.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:56f9095b15e9691113c580ae398fcf6eee678e1af3299b4fe0b1110819ded3ac
|
| 3 |
+
size 472484
|
conv-hardened-deep/g_best_windowed_fp32.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6494c0c47761fbc8d557dac6e05af2cc94ac5c1827e073da1aa1cfdcb77ac9fa
|
| 3 |
+
size 367658
|
conv-hardened-deep/g_best_windowed_int8_decoder_fp32.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d716eda325dd4516f5355d8900d2ca675e23fbde82b80f1914324800fe33ac3
|
| 3 |
+
size 529844
|
conv-hardened-deep/g_best_windowed_int8_static.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f956b9439a9c74a65db4d648f0b8d3c098d6b33f8bee405e83cef21f8e834b4
|
| 3 |
+
size 533937
|