paniquex commited on
Commit
2d12041
·
verified ·
1 Parent(s): 3c7a5cb

Release StreamVoiceAnon+ inference checkpoints

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ 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
+ architecture.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: StreamVoiceAnon+
3
+ pipeline_tag: audio-to-audio
4
+ language:
5
+ - en
6
+ base_model: Plachta/StreamVoiceAnon
7
+ base_model_relation: finetune
8
+ tags:
9
+ - speaker-anonymization
10
+ - voice-conversion
11
+ - streaming
12
+ - speech-emotion
13
+ ---
14
+
15
+ # StreamVoiceAnon+
16
+
17
+ StreamVoiceAnon+ adds two emotion-preserving checkpoints to [StreamVoiceAnon](https://huggingface.co/Plachta/StreamVoiceAnon), a streaming speaker anonymization system based on autoregressive voice conversion. The input is source speech and a reference utterance. The output is converted speech.
18
+
19
+ [StreamVoiceAnon+: Emotion-Preserving Streaming Speaker Anonymization via Frame-Level Acoustic Distillation](https://arxiv.org/abs/2603.06079) (Interspeech 2026)
20
+
21
+ ![StreamVoiceAnon+ architecture with prompt and source tokens and a training-only acoustic distillation head](architecture.png)
22
+
23
+ ## Checkpoints
24
+
25
+ | Model | Inference files |
26
+ | --- | --- |
27
+ | `frame-distill` (default) | [frame.pth](frame.pth) · [frame.receipt.json](frame.receipt.json) |
28
+ | `pool-distill` | [pool.pth](pool.pth) · [pool.receipt.json](pool.receipt.json) |
29
+
30
+ During fine-tuning, `frame-distill` distills emotion features into the Slow AR acoustic-token hidden states. `pool-distill` uses statistical pooling for utterance-level emotion classification. Both use the same streaming inference path.
31
+
32
+ ## Usage
33
+
34
+ These weights use the StreamVoiceAnon+ inference code in the upcoming v0.2.0 release of [StreamVoiceAnon](https://github.com/Plachtaa/StreamVoiceAnon). Download the shared components and keep each checkpoint with its matching receipt.
35
+
36
+ ```bash
37
+ hf download Plachta/StreamVoiceAnon \
38
+ --revision 3684dff8e8706b306e6d1f0217a1f79968bbb966 \
39
+ --local-dir pretrained_checkpoints
40
+
41
+ hf download paniquex/StreamVoiceAnonPlus frame.pth frame.receipt.json \
42
+ --revision v0.2.0 --local-dir pretrained_checkpoints
43
+ ```
44
+
45
+ With the v0.2.0 inference environment installed, run from the code repository with a CUDA GPU.
46
+
47
+ ```bash
48
+ python evaluations/infer_arvc.py \
49
+ --model frame-distill --checkpoint_path pretrained_checkpoints/frame.pth \
50
+ --src_path source.wav --ref_path reference.wav --out_dir audio_outputs \
51
+ --simulate_streaming --delay 2 --decode_chunk_frames 3 --alpha 0.9 --compile
52
+ ```
53
+
54
+ For `pool-distill`, download `pool.pth` and `pool.receipt.json` and pass `--model pool-distill --checkpoint_path pretrained_checkpoints/pool.pth`. The [inference manifest](inference-manifest.json) lists the released file hashes.
55
+
56
+ ## VoicePrivacy 2024 results
57
+
58
+ | Model | WER ↓ | UAR ↑ | EER-L ↑ |
59
+ | --- | ---: | ---: | ---: |
60
+ | StreamVoiceAnon | 4.55 | 39.84 | 46.91 |
61
+ | StreamVoiceAnon+ frame-distill | 6.00 | 51.22 | 47.26 |
62
+ | StreamVoiceAnon+ pool-distill | 5.47 | 48.32 | 46.10 |
63
+
64
+ All scores are percentages. Word error rate (WER) on LibriSpeech and unweighted average recall (UAR) on IEMOCAP give the full development and test splits equal weight. Equal error rate against a lazy-informed attacker (EER-L) averages the four split-by-gender scores. Checkpoint selection used development data. The scores differ slightly from the paper because of changes to the compute cluster, training environment, and inference settings.
65
+
66
+ ## Terms
67
+
68
+ The MIT license in the code repository applies to the inference code. This release specifies no separate license for the checkpoint weights. Shared components are distributed by their respective publishers.
architecture.png ADDED

Git LFS Details

  • SHA256: 42cf94aeef8afa511011b7f0ed171177336a97ca47d8d460c481bbd3f1b0691c
  • Pointer size: 131 Bytes
  • Size of remote file: 271 kB
frame.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e052469dc2fd774ac70785279b939dd33c0cee2c135b42de6db48f3d7f907e4
3
+ size 598141434
frame.receipt.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "sva-inference-export-v1",
3
+ "model": "frame",
4
+ "candidate_id": "highlr15-frame-u0350",
5
+ "source_sha256": "63b610aabea3cb7c4b48704399d49b84aa2a2728e6cba5247e49839245b775e4",
6
+ "inference_sha256": "1e052469dc2fd774ac70785279b939dd33c0cee2c135b42de6db48f3d7f907e4",
7
+ "tensor_count": 128,
8
+ "omitted_keys": [
9
+ "decoder.model.feature_extraction_emo.input_proj.weight",
10
+ "decoder.model.feature_extraction_emo.input_proj.bias",
11
+ "decoder.model.feature_extraction_emo.pos_encoding.pe",
12
+ "decoder.model.feature_extraction_emo.transformer.layers.0.self_attn.in_proj_weight",
13
+ "decoder.model.feature_extraction_emo.transformer.layers.0.self_attn.in_proj_bias",
14
+ "decoder.model.feature_extraction_emo.transformer.layers.0.self_attn.out_proj.weight",
15
+ "decoder.model.feature_extraction_emo.transformer.layers.0.self_attn.out_proj.bias",
16
+ "decoder.model.feature_extraction_emo.transformer.layers.0.linear1.weight",
17
+ "decoder.model.feature_extraction_emo.transformer.layers.0.linear1.bias",
18
+ "decoder.model.feature_extraction_emo.transformer.layers.0.linear2.weight",
19
+ "decoder.model.feature_extraction_emo.transformer.layers.0.linear2.bias",
20
+ "decoder.model.feature_extraction_emo.transformer.layers.0.norm1.weight",
21
+ "decoder.model.feature_extraction_emo.transformer.layers.0.norm1.bias",
22
+ "decoder.model.feature_extraction_emo.transformer.layers.0.norm2.weight",
23
+ "decoder.model.feature_extraction_emo.transformer.layers.0.norm2.bias",
24
+ "decoder.model.linear_emo.weight",
25
+ "decoder.model.linear_emo.bias",
26
+ "decoder.model.emotion_classifier.weight",
27
+ "decoder.model.emotion_classifier.bias"
28
+ ],
29
+ "SEP_retained": true,
30
+ "optimizer_scheduler_RNG_state_included": false,
31
+ "GPU_parity_validated": false,
32
+ "tensor_reload_exact": true,
33
+ "size_bytes": 598141434
34
+ }
inference-manifest.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "release": "v0.2.0",
3
+ "models": [
4
+ {
5
+ "model": "frame-distill",
6
+ "file": "frame.pth",
7
+ "receipt": "frame.receipt.json",
8
+ "bytes": 598141434,
9
+ "sha256": "1e052469dc2fd774ac70785279b939dd33c0cee2c135b42de6db48f3d7f907e4"
10
+ },
11
+ {
12
+ "model": "pool-distill",
13
+ "file": "pool.pth",
14
+ "receipt": "pool.receipt.json",
15
+ "bytes": 598141302,
16
+ "sha256": "72c4e58fafc28a2225ccfd965f2c3fbc88263df1fe2048c9fa91af2031dab155"
17
+ }
18
+ ]
19
+ }
pool.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72c4e58fafc28a2225ccfd965f2c3fbc88263df1fe2048c9fa91af2031dab155
3
+ size 598141302
pool.receipt.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "sva-inference-export-v1",
3
+ "model": "pool",
4
+ "candidate_id": "histlr-pool-u0700",
5
+ "source_sha256": "cb337c1b418ad93ee7fe16ed95f91ed635edf39c6d539483b2946c94854b5222",
6
+ "inference_sha256": "72c4e58fafc28a2225ccfd965f2c3fbc88263df1fe2048c9fa91af2031dab155",
7
+ "tensor_count": 128,
8
+ "omitted_keys": [
9
+ "decoder.model.emotion_classifier.weight",
10
+ "decoder.model.emotion_classifier.bias"
11
+ ],
12
+ "SEP_retained": true,
13
+ "optimizer_scheduler_RNG_state_included": false,
14
+ "GPU_parity_validated": false,
15
+ "tensor_reload_exact": true,
16
+ "size_bytes": 598141302
17
+ }