Refine reader documentation and output contracts
Browse filesRed-team revision for reader order, required prerequisites, output schemas, metric definitions, training configuration, and terminology; refresh demo audio to 48 kHz.
- README.md +12 -16
- docs/checkpoints/audio2sph.md +12 -13
- docs/checkpoints/said_audiomae.md +58 -60
- docs/checkpoints/said_passt.md +55 -66
- docs/compression.md +21 -15
- docs/configuration.md +102 -88
- docs/data.md +4 -4
- docs/evaluation.md +35 -5
- docs/inference.md +106 -26
- docs/media/audio2sph_demo_1.mp4 +2 -2
- docs/media/audio2sph_demo_3.mp4 +2 -2
- docs/media/said_demo_1.mp4 +2 -2
- docs/media/said_demo_3.mp4 +2 -2
- docs/model_architecture.md +7 -6
- docs/training.md +107 -107
README.md
CHANGED
|
@@ -1,15 +1,3 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: other
|
| 3 |
-
license_name: said-model-weights-non-commercial-research-license-1.0
|
| 4 |
-
license_link: https://huggingface.co/IN03X/SAID/blob/main/LICENSES/SAID-Model-Weights-NonCommercial-1.0.txt
|
| 5 |
-
library_name: pytorch
|
| 6 |
-
tags:
|
| 7 |
-
- spatial-audio
|
| 8 |
-
- sound-event-localization-and-detection
|
| 9 |
-
- acoustic-imaging
|
| 10 |
-
- dcase2026
|
| 11 |
-
---
|
| 12 |
-
|
| 13 |
<h1 align="center">SAID: Semantic Acoustic Imaging Detector for Sound Event Localization and Detection</h1>
|
| 14 |
|
| 15 |
<p align="center">
|
|
@@ -17,7 +5,12 @@ tags:
|
|
| 17 |
</p>
|
| 18 |
|
| 19 |
<p align="center">
|
| 20 |
-
<a href="https://
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
</p>
|
| 22 |
|
| 23 |
<p align="center">
|
|
@@ -73,6 +66,9 @@ cd /path/to/SAID
|
|
| 73 |
pip install -e .
|
| 74 |
```
|
| 75 |
|
|
|
|
|
|
|
|
|
|
| 76 |
Run the four packaged scenes with the default complete model:
|
| 77 |
|
| 78 |
```bash
|
|
@@ -88,8 +84,9 @@ said infer recording.wav --model said_passt
|
|
| 88 |
The CLI downloads the selected checkpoint from
|
| 89 |
[Hugging Face](https://huggingface.co/IN03X/SAID) into the repository-root
|
| 90 |
`checkpoints/` directory on first use. `recording.wav` may contain the complete
|
| 91 |
-
32-channel Eigenmike signal or the four selected
|
| 92 |
-
|
|
|
|
| 93 |
variant with `--model said_audiomae`.
|
| 94 |
|
| 95 |
Details: [Inference](docs/inference.md).
|
|
@@ -175,7 +172,6 @@ routes. For example, after configuring the DCASE data path, fine-tune the
|
|
| 175 |
published PaSST model with:
|
| 176 |
|
| 177 |
```bash
|
| 178 |
-
pip install -e '.[render]'
|
| 179 |
said train --config configs/training/dcase_passt.yaml
|
| 180 |
```
|
| 181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<h1 align="center">SAID: Semantic Acoustic Imaging Detector for Sound Event Localization and Detection</h1>
|
| 2 |
|
| 3 |
<p align="center">
|
|
|
|
| 5 |
</p>
|
| 6 |
|
| 7 |
<p align="center">
|
| 8 |
+
<a href="https://huggingface.co/IN03X/SAID">Models</a> ·
|
| 9 |
+
<a href="https://dcase.community/challenge2026/task-semantic-acoustic-imaging-for-sound-event-localization-and-detection-from-spatial-audio-and-audiovisual-scenes-results">DCASE Results</a> ·
|
| 10 |
+
<a href="#demos">Demos</a> ·
|
| 11 |
+
<a href="#evaluation">Evaluation</a> ·
|
| 12 |
+
<a href="#training-and-data">Training</a> ·
|
| 13 |
+
<a href="#documentation">Documentation</a>
|
| 14 |
</p>
|
| 15 |
|
| 16 |
<p align="center">
|
|
|
|
| 66 |
pip install -e .
|
| 67 |
```
|
| 68 |
|
| 69 |
+
FFmpeg must be available on `PATH` to generate demos or inference
|
| 70 |
+
visualizations.
|
| 71 |
+
|
| 72 |
Run the four packaged scenes with the default complete model:
|
| 73 |
|
| 74 |
```bash
|
|
|
|
| 84 |
The CLI downloads the selected checkpoint from
|
| 85 |
[Hugging Face](https://huggingface.co/IN03X/SAID) into the repository-root
|
| 86 |
`checkpoints/` directory on first use. `recording.wav` may contain the complete
|
| 87 |
+
32-channel Eigenmike signal or the four selected signals in the order of the
|
| 88 |
+
**1-based Eigenmike capsule numbers** `[6, 10, 26, 22]`. The default output is
|
| 89 |
+
readable DCASE JSON. Select the AudioMAE
|
| 90 |
variant with `--model said_audiomae`.
|
| 91 |
|
| 92 |
Details: [Inference](docs/inference.md).
|
|
|
|
| 172 |
published PaSST model with:
|
| 173 |
|
| 174 |
```bash
|
|
|
|
| 175 |
said train --config configs/training/dcase_passt.yaml
|
| 176 |
```
|
| 177 |
|
docs/checkpoints/audio2sph.md
CHANGED
|
@@ -19,6 +19,15 @@ does not contain Sph2Imaging, a Class Feature Encoder, or class predictions.
|
|
| 19 |
The public loader verifies the size, SHA256, component counts, tensor keys,
|
| 20 |
shapes, and dtypes before strict loading.
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
## Training provenance
|
| 23 |
|
| 24 |
The checkpoint is the final EMA weight of the paper's Audio2Sph pretraining
|
|
@@ -28,18 +37,6 @@ four-channel Eigenmike scenes rendered online from VCTK 0.80 speech with
|
|
| 28 |
shoebox image-source simulation. The target at every time position is the
|
| 29 |
pixelwise maximum of all active source maps.
|
| 30 |
|
| 31 |
-
The fixed 1,024-scene spatial audit reported AP@GT0.5 of `0.874168` for this
|
| 32 |
-
checkpoint. This is a class-agnostic simulated-scene spatial metric and is not
|
| 33 |
-
a DCASE semantic mAP result.
|
| 34 |
-
|
| 35 |
-
## Input and output contract
|
| 36 |
-
|
| 37 |
-
The model accepts Eigenmike capsules `[6, 10, 26, 22]` at 48 kHz in two-second
|
| 38 |
-
windows. The Panoramic Decoder produces 201 endpoint-inclusive maps per window.
|
| 39 |
-
Complete-recording inference omits each window endpoint before concatenation,
|
| 40 |
-
yielding continuous 100 Hz frame starts. Output values are sigmoid probabilities
|
| 41 |
-
in `[0,1]` and use the same spherical coordinates as complete SAID maps.
|
| 42 |
-
|
| 43 |
## Distribution and license
|
| 44 |
|
| 45 |
The checkpoint is distributed for non-commercial research under the
|
|
@@ -52,4 +49,6 @@ constructed by Christophe Veaux, Junichi Yamagishi, and Kirsten MacDonald.
|
|
| 52 |
Training recordings are not distributed with the checkpoint.
|
| 53 |
|
| 54 |
ConvNeXt and NESD-derived software attribution and exact source revisions are
|
| 55 |
-
recorded in [
|
|
|
|
|
|
|
|
|
| 19 |
The public loader verifies the size, SHA256, component counts, tensor keys,
|
| 20 |
shapes, and dtypes before strict loading.
|
| 21 |
|
| 22 |
+
## Input and output contract
|
| 23 |
+
|
| 24 |
+
The model accepts the **1-based Eigenmike capsule numbers** `[6, 10, 26, 22]`
|
| 25 |
+
at 48 kHz in two-second windows. The Panoramic Decoder produces 201
|
| 26 |
+
endpoint-inclusive maps per window. Complete-recording inference omits each
|
| 27 |
+
window endpoint before concatenation, yielding continuous 100 Hz frame starts.
|
| 28 |
+
Output values are sigmoid probabilities in `[0,1]` and use the same spherical
|
| 29 |
+
coordinates as complete SAID maps.
|
| 30 |
+
|
| 31 |
## Training provenance
|
| 32 |
|
| 33 |
The checkpoint is the final EMA weight of the paper's Audio2Sph pretraining
|
|
|
|
| 37 |
shoebox image-source simulation. The target at every time position is the
|
| 38 |
pixelwise maximum of all active source maps.
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
## Distribution and license
|
| 41 |
|
| 42 |
The checkpoint is distributed for non-commercial research under the
|
|
|
|
| 49 |
Training recordings are not distributed with the checkpoint.
|
| 50 |
|
| 51 |
ConvNeXt and NESD-derived software attribution and exact source revisions are
|
| 52 |
+
recorded in [Third-party notices](../../THIRD_PARTY_NOTICES.md). The training
|
| 53 |
+
data terms are summarized in the
|
| 54 |
+
[training data notice](../../LICENSES/TRAINING_DATA.md).
|
docs/checkpoints/said_audiomae.md
CHANGED
|
@@ -8,77 +8,30 @@ signals at 10 fps.
|
|
| 8 |
|
| 9 |
## Identity
|
| 10 |
|
| 11 |
-
- Canonical
|
| 12 |
- Format: flat exponential-moving-average PyTorch state dictionary
|
| 13 |
- Size: 549,046,019 bytes
|
| 14 |
- SHA256: `018f9d05bfa681456334811abe6e62c59331a0a8f4313eb763e5c32b0148c626`
|
| 15 |
- Runtime tensors: 732
|
| 16 |
- Submitted tensors covered by the fingerprint: 750
|
| 17 |
|
| 18 |
-
## Distribution and license
|
| 19 |
-
|
| 20 |
-
This checkpoint contains the complete AudioMAE backbone. The selected upstream
|
| 21 |
-
Hugging Face metadata names CC-BY-4.0, while the same revision's configuration
|
| 22 |
-
and the original AudioMAE repository license indicate CC BY-NC 4.0. The full
|
| 23 |
-
checkpoint was subsequently trained on the paper's SourceBank mixture, which
|
| 24 |
-
contains non-commercial, restricted, and Sampling+ source terms. The project
|
| 25 |
-
has selected a separate non-commercial research release for this complete
|
| 26 |
-
paper checkpoint under the
|
| 27 |
-
[SAID Model Weights Non-Commercial Research License 1.0](../../LICENSES/SAID-Model-Weights-NonCommercial-1.0.txt).
|
| 28 |
-
The stricter CC BY-NC 4.0 status is applied to the incorporated AudioMAE asset
|
| 29 |
-
while the upstream metadata remains unresolved. All other applicable upstream
|
| 30 |
-
terms continue to apply. The checkpoint is distributed separately from the
|
| 31 |
-
source distribution and runtime wheel.
|
| 32 |
-
|
| 33 |
-
- Upstream model ID: `gaunernst/vit_base_patch16_1024_128.audiomae_as2m_ft_as20k`
|
| 34 |
-
- Upstream revision: `49cfdfa4663a9c689e7ee5184df2d5660f730233`
|
| 35 |
-
- Port and asset publisher: `gaunernst`
|
| 36 |
-
- Port source: https://huggingface.co/gaunernst/vit_base_patch16_1024_128.audiomae_as2m_ft_as20k
|
| 37 |
-
- Original work: *Masked Autoencoders that Listen*, Po-Yao Huang, Hu Xu,
|
| 38 |
-
Juncheng Li, Alexei Baevski, Michael Auli, Wojciech Galuba, Florian Metze,
|
| 39 |
-
and Christoph Feichtenhofer
|
| 40 |
-
- Original source: https://github.com/facebookresearch/AudioMAE
|
| 41 |
-
- Applied upstream license: Creative Commons Attribution-NonCommercial 4.0
|
| 42 |
-
International, https://creativecommons.org/licenses/by-nc/4.0/legalcode.en
|
| 43 |
-
- SAID modifications: the timm-compatible AudioMAE backbone was integrated as
|
| 44 |
-
the Class Feature Encoder, trained within complete SAID on SourceBank and
|
| 45 |
-
DCASE recordings, and packaged with SAID parameters by Runbang Wang
|
| 46 |
-
|
| 47 |
-
The internal SourceBank index contained 122,359 rows and has SHA256
|
| 48 |
-
`489f2405025d64f087a76a753cb0fae1051e91df00236ae2285ca2046d664535`.
|
| 49 |
-
Its composition was 43,832 VCTK rows, 70,416 MUSDB18-HQ rows, 4,672 FSD50K
|
| 50 |
-
rows, and 3,439 verified FSDKaggle2018 rows. The index and source audio are not
|
| 51 |
-
distributed.
|
| 52 |
-
Selected-source counts, license categories, and attribution records are
|
| 53 |
-
summarized in `LICENSES/TRAINING_DATA.md`; the complete attribution record
|
| 54 |
-
accompanies the checkpoint bundle.
|
| 55 |
-
|
| 56 |
-
Contains information from the CSTR VCTK Corpus, which is made available under
|
| 57 |
-
the ODC Attribution License 1.0,
|
| 58 |
-
<http://opendatacommons.org/licenses/by/1.0/>. The corpus is copyright 2012,
|
| 59 |
-
Centre for Speech Technology Research, University of Edinburgh, and was
|
| 60 |
-
constructed by Christophe Veaux, Junichi Yamagishi, and Kirsten MacDonald.
|
| 61 |
-
The official VCTK 0.80 corpus record is
|
| 62 |
-
<https://datashare.ed.ac.uk/handle/10283/2651>.
|
| 63 |
-
|
| 64 |
-
The open-source runtime implements SAID (AudioMAE), including physical-time
|
| 65 |
-
token alignment. The paper-checkpoint loader accepts the fingerprinted complete
|
| 66 |
-
checkpoint and is not a converter for an upstream AudioMAE backbone. The SAID
|
| 67 |
-
weight license grants only the rights held by Runbang Wang and does not replace
|
| 68 |
-
or enlarge third-party permissions.
|
| 69 |
-
|
| 70 |
## Input and output contract
|
| 71 |
|
| 72 |
-
The model accepts the
|
| 73 |
-
in two-second windows and predicts 16 candidate slots over the fixed
|
| 74 |
-
taxonomy. It produces acoustic maps and class/confidence values; it
|
| 75 |
-
predict source distance. The common recording-domain argument is
|
| 76 |
-
API consistency and does not apply a domain embedding in this
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
## Reported development-test metrics
|
| 79 |
|
| 80 |
-
Here (4.2) means 2026-04-02, commit `84b2cd1`; (6.30) means
|
| 81 |
-
|
| 82 |
|
| 83 |
| Macro mAP (4.2) | Mask AP (4.2) | Macro mAP (6.30) | Class-agnostic AP (6.30) | Macro Pearson r (6.30) | Macro Class-F1 |
|
| 84 |
|---:|---:|---:|---:|---:|---:|
|
|
@@ -86,3 +39,48 @@ Here (4.2) means 2026-04-02, commit `84b2cd1`; (6.30) means
|
|
| 86 |
|
| 87 |
The metrics use all 78 full development-test recordings. Pearson correlation
|
| 88 |
uses the official macro protocol.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
## Identity
|
| 10 |
|
| 11 |
+
- Canonical filename: `said_audiomae.ckpt`
|
| 12 |
- Format: flat exponential-moving-average PyTorch state dictionary
|
| 13 |
- Size: 549,046,019 bytes
|
| 14 |
- SHA256: `018f9d05bfa681456334811abe6e62c59331a0a8f4313eb763e5c32b0148c626`
|
| 15 |
- Runtime tensors: 732
|
| 16 |
- Submitted tensors covered by the fingerprint: 750
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
## Input and output contract
|
| 19 |
|
| 20 |
+
The model accepts the **1-based Eigenmike capsule numbers** `[6, 10, 26, 22]`
|
| 21 |
+
at 48 kHz in two-second windows and predicts 16 candidate slots over the fixed
|
| 22 |
+
13-class taxonomy. It produces acoustic maps and class/confidence values; it
|
| 23 |
+
does not predict source distance. The common recording-domain argument is
|
| 24 |
+
accepted for API consistency and does not apply a domain embedding in this
|
| 25 |
+
variant.
|
| 26 |
+
|
| 27 |
+
The open-source runtime includes physical-time alignment for AudioMAE tokens.
|
| 28 |
+
The paper-checkpoint loader accepts the fingerprinted complete SAID checkpoint;
|
| 29 |
+
it is not a converter for an upstream AudioMAE backbone.
|
| 30 |
|
| 31 |
## Reported development-test metrics
|
| 32 |
|
| 33 |
+
Here (4.2) means 2026-04-02, commit `84b2cd1`; (6.30) means 2026-06-30,
|
| 34 |
+
commit `d4df662`. See [Evaluation](../evaluation.md#metric-versions).
|
| 35 |
|
| 36 |
| Macro mAP (4.2) | Mask AP (4.2) | Macro mAP (6.30) | Class-agnostic AP (6.30) | Macro Pearson r (6.30) | Macro Class-F1 |
|
| 37 |
|---:|---:|---:|---:|---:|---:|
|
|
|
|
| 39 |
|
| 40 |
The metrics use all 78 full development-test recordings. Pearson correlation
|
| 41 |
uses the official macro protocol.
|
| 42 |
+
|
| 43 |
+
## Training provenance
|
| 44 |
+
|
| 45 |
+
The checkpoint contains the complete AudioMAE Class Feature Encoder initialized
|
| 46 |
+
from:
|
| 47 |
+
|
| 48 |
+
- Upstream model ID: `gaunernst/vit_base_patch16_1024_128.audiomae_as2m_ft_as20k`
|
| 49 |
+
- Upstream revision: `49cfdfa4663a9c689e7ee5184df2d5660f730233`
|
| 50 |
+
- Port and asset publisher: `gaunernst`
|
| 51 |
+
- Port source: <https://huggingface.co/gaunernst/vit_base_patch16_1024_128.audiomae_as2m_ft_as20k>
|
| 52 |
+
- Original work: *Masked Autoencoders that Listen*, Po-Yao Huang, Hu Xu,
|
| 53 |
+
Juncheng Li, Alexei Baevski, Michael Auli, Wojciech Galuba, Florian Metze,
|
| 54 |
+
and Christoph Feichtenhofer
|
| 55 |
+
- Original source: <https://github.com/facebookresearch/AudioMAE>
|
| 56 |
+
- Applied upstream license: [Creative Commons Attribution-NonCommercial 4.0](https://creativecommons.org/licenses/by-nc/4.0/legalcode.en)
|
| 57 |
+
|
| 58 |
+
The backbone was integrated as the Class Feature Encoder and trained within
|
| 59 |
+
complete SAID on SourceBank and DCASE recordings. The internal 122,359-row
|
| 60 |
+
SourceBank index has SHA256
|
| 61 |
+
`489f2405025d64f087a76a753cb0fae1051e91df00236ae2285ca2046d664535`.
|
| 62 |
+
The index and source audio are not distributed. Dataset composition, selected
|
| 63 |
+
source counts, and attribution are summarized in the
|
| 64 |
+
[training data notice](../../LICENSES/TRAINING_DATA.md).
|
| 65 |
+
|
| 66 |
+
## Distribution and license
|
| 67 |
+
|
| 68 |
+
The selected upstream Hugging Face metadata names CC-BY-4.0, while the same
|
| 69 |
+
revision's configuration and the original AudioMAE repository license indicate
|
| 70 |
+
CC BY-NC 4.0. This release applies the stricter CC BY-NC 4.0 status to the
|
| 71 |
+
incorporated AudioMAE asset. The complete checkpoint is distributed for
|
| 72 |
+
non-commercial research under the
|
| 73 |
+
[SAID Model Weights Non-Commercial Research License 1.0](../../LICENSES/SAID-Model-Weights-NonCommercial-1.0.txt),
|
| 74 |
+
subject to all applicable upstream and training-data terms. That license grants
|
| 75 |
+
only rights held by Runbang Wang and does not replace or enlarge third-party
|
| 76 |
+
permissions. The checkpoint is distributed separately from the source package
|
| 77 |
+
and runtime wheel.
|
| 78 |
+
|
| 79 |
+
Contains information from the CSTR VCTK Corpus, made available under the ODC
|
| 80 |
+
Attribution License 1.0. The corpus is copyright 2012, Centre for Speech
|
| 81 |
+
Technology Research, University of Edinburgh, and was constructed by
|
| 82 |
+
Christophe Veaux, Junichi Yamagishi, and Kirsten MacDonald. The official VCTK
|
| 83 |
+
0.80 record is <https://datashare.ed.ac.uk/handle/10283/2651>.
|
| 84 |
+
|
| 85 |
+
Exact third-party revisions and attribution are recorded in
|
| 86 |
+
[Third-party notices](../../THIRD_PARTY_NOTICES.md).
|
docs/checkpoints/said_passt.md
CHANGED
|
@@ -8,47 +8,57 @@ signals at 10 fps.
|
|
| 8 |
|
| 9 |
## Identity
|
| 10 |
|
| 11 |
-
- Canonical
|
| 12 |
- Format: flat exponential-moving-average PyTorch state dictionary
|
| 13 |
- Size: 547,886,573 bytes
|
| 14 |
- SHA256: `85b72bd4a0749dd4ca080ddea30eba68a903af465d916408a03e21912609ca1b`
|
| 15 |
- Runtime tensors: 741
|
| 16 |
- Submitted tensors covered by the fingerprint: 757
|
| 17 |
|
| 18 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
|
| 21 |
-
complete paper checkpoint under the
|
| 22 |
-
[SAID Model Weights Non-Commercial Research License 1.0](../../LICENSES/SAID-Model-Weights-NonCommercial-1.0.txt).
|
| 23 |
-
The license applies only to rights held by Runbang Wang. The upstream PaSST
|
| 24 |
-
asset and training-data sources retain their own terms, described below and in
|
| 25 |
-
`THIRD_PARTY_NOTICES.md`. The checkpoint is distributed separately from the
|
| 26 |
-
source distribution and runtime wheel.
|
| 27 |
|
| 28 |
-
## PaSST initialization
|
| 29 |
|
| 30 |
The Class Feature Encoder descends from the official AudioSet-pretrained
|
| 31 |
PaSST-S checkpoint:
|
| 32 |
|
| 33 |
-
- Upstream repository: https://github.com/kkoutini/PaSST
|
| 34 |
- Upstream revision: `2a5c818afcc2a215b2a1aaf1ed8be71f89d43201`
|
| 35 |
- Architecture identifier: `passt_s_swa_p16_128_ap476`
|
| 36 |
- Initial-weight asset: `passt-s-f128-p16-s10-ap.476-swa.pt`
|
| 37 |
-
- Initial-weight URL: https://github.com/kkoutini/PaSST/releases/download/v0.0.1-audioset/passt-s-f128-p16-s10-ap.476-swa.pt
|
| 38 |
- Initial-weight SHA256: `302903fa8c4aee817b11dc982da0b29aaf8d11a3e722420476d0a12c9db70c2c`
|
| 39 |
-
- PaSST software license: Apache-2.0; see
|
| 40 |
-
|
| 41 |
-
- Distribution evidence: the Apache-2.0 PaSST project presents this exact
|
| 42 |
-
asset as its official pretrained model for inference and fine-tuning; the
|
| 43 |
-
author-published `hear21passt` package is identified as Apache-2.0 and
|
| 44 |
-
downloads this exact asset. The GitHub release page does not add a separate
|
| 45 |
-
file-level license statement.
|
| 46 |
|
| 47 |
The PaSST encoder was adapted to produce frequency-pooled temporal Class
|
| 48 |
Features, further trained for DCASE sound recognition, and frozen while the
|
| 49 |
complete SAID detector was trained.
|
| 50 |
|
| 51 |
-
## SAID training data
|
| 52 |
|
| 53 |
- Audio2Sph pretraining used online simulated scenes containing VCTK sources.
|
| 54 |
- Complete SAID training used SourceBank indices over VCTK, MUSDB18-HQ,
|
|
@@ -57,51 +67,30 @@ complete SAID detector was trained.
|
|
| 57 |
recordings and labels.
|
| 58 |
|
| 59 |
The internal SourceBank index contained 122,359 rows and has SHA256
|
| 60 |
-
`489f2405025d64f087a76a753cb0fae1051e91df00236ae2285ca2046d664535`
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
Audio files and dataset labels are not included with the checkpoint. Each
|
| 66 |
-
dataset remains subject to its own license and access terms.
|
| 67 |
-
Selected-source counts, license categories, and attribution records are
|
| 68 |
-
summarized in `LICENSES/TRAINING_DATA.md`; the complete attribution record
|
| 69 |
-
accompanies the checkpoint bundle.
|
| 70 |
-
|
| 71 |
-
Contains information from the CSTR VCTK Corpus, which is made available under
|
| 72 |
-
the ODC Attribution License 1.0,
|
| 73 |
-
<http://opendatacommons.org/licenses/by/1.0/>. The corpus is copyright 2012,
|
| 74 |
-
Centre for Speech Technology Research, University of Edinburgh, and was
|
| 75 |
-
constructed by Christophe Veaux, Junichi Yamagishi, and Kirsten MacDonald.
|
| 76 |
-
The official VCTK 0.80 corpus record is
|
| 77 |
-
<https://datashare.ed.ac.uk/handle/10283/2651>.
|
| 78 |
-
|
| 79 |
-
## Input and output contract
|
| 80 |
-
|
| 81 |
-
The model accepts the selected Eigenmike capsules `[6, 10, 26, 22]` at 48 kHz
|
| 82 |
-
in two-second windows and predicts 16 candidate slots over the fixed 13-class
|
| 83 |
-
taxonomy. It produces acoustic maps and class/confidence values; it does not
|
| 84 |
-
predict source distance. The checkpoint contains Sony and TAU recording-domain
|
| 85 |
-
embeddings. Sony is the generic inference default and is not automatic domain
|
| 86 |
-
detection; DCASE evaluation selects the embedding from the dataset subset.
|
| 87 |
-
|
| 88 |
-
## Reported development-test metrics
|
| 89 |
-
|
| 90 |
-
| Macro mAP | Macro Pearson r | Mask AP | Macro Class-F1 |
|
| 91 |
-
|---:|---:|---:|---:|
|
| 92 |
-
| 0.120150 | 0.426790 | 0.237972 | 0.388488 |
|
| 93 |
|
| 94 |
-
|
| 95 |
-
uses the official macro protocol.
|
| 96 |
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
## Identity
|
| 10 |
|
| 11 |
+
- Canonical filename: `said_passt.ckpt`
|
| 12 |
- Format: flat exponential-moving-average PyTorch state dictionary
|
| 13 |
- Size: 547,886,573 bytes
|
| 14 |
- SHA256: `85b72bd4a0749dd4ca080ddea30eba68a903af465d916408a03e21912609ca1b`
|
| 15 |
- Runtime tensors: 741
|
| 16 |
- Submitted tensors covered by the fingerprint: 757
|
| 17 |
|
| 18 |
+
## Input and output contract
|
| 19 |
+
|
| 20 |
+
The model accepts the **1-based Eigenmike capsule numbers** `[6, 10, 26, 22]`
|
| 21 |
+
at 48 kHz in two-second windows and predicts 16 candidate slots over the fixed
|
| 22 |
+
13-class taxonomy. It produces acoustic maps and class/confidence values; it
|
| 23 |
+
does not predict source distance.
|
| 24 |
+
|
| 25 |
+
The checkpoint contains Sony and TAU recording-domain embeddings. Sony is the
|
| 26 |
+
generic inference default and is not automatic domain detection. DCASE
|
| 27 |
+
evaluation selects the embedding from the dataset subset.
|
| 28 |
+
|
| 29 |
+
## Reported development-test metrics
|
| 30 |
+
|
| 31 |
+
Here (4.2) means 2026-04-02, commit `84b2cd1`; (6.30) means 2026-06-30,
|
| 32 |
+
commit `d4df662`. See [Evaluation](../evaluation.md#metric-versions).
|
| 33 |
+
|
| 34 |
+
| Macro mAP (4.2) | Mask AP (4.2) | Macro mAP (6.30) | Class-agnostic AP (6.30) | Macro Pearson r (6.30) | Macro Class-F1 |
|
| 35 |
+
|---:|---:|---:|---:|---:|---:|
|
| 36 |
+
| 0.120150 | 0.237972 | 0.124514 | 0.197483 | 0.426790 | 0.388488 |
|
| 37 |
+
|
| 38 |
+
The metrics use all 78 full development-test recordings. Pearson correlation
|
| 39 |
+
uses the official macro protocol.
|
| 40 |
|
| 41 |
+
## Training provenance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
+
### PaSST initialization
|
| 44 |
|
| 45 |
The Class Feature Encoder descends from the official AudioSet-pretrained
|
| 46 |
PaSST-S checkpoint:
|
| 47 |
|
| 48 |
+
- Upstream repository: <https://github.com/kkoutini/PaSST>
|
| 49 |
- Upstream revision: `2a5c818afcc2a215b2a1aaf1ed8be71f89d43201`
|
| 50 |
- Architecture identifier: `passt_s_swa_p16_128_ap476`
|
| 51 |
- Initial-weight asset: `passt-s-f128-p16-s10-ap.476-swa.pt`
|
| 52 |
+
- Initial-weight URL: <https://github.com/kkoutini/PaSST/releases/download/v0.0.1-audioset/passt-s-f128-p16-s10-ap.476-swa.pt>
|
| 53 |
- Initial-weight SHA256: `302903fa8c4aee817b11dc982da0b29aaf8d11a3e722420476d0a12c9db70c2c`
|
| 54 |
+
- PaSST software license: Apache-2.0; see the
|
| 55 |
+
[included license](../../LICENSES/PaSST-Apache-2.0.txt)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
The PaSST encoder was adapted to produce frequency-pooled temporal Class
|
| 58 |
Features, further trained for DCASE sound recognition, and frozen while the
|
| 59 |
complete SAID detector was trained.
|
| 60 |
|
| 61 |
+
### SAID training data
|
| 62 |
|
| 63 |
- Audio2Sph pretraining used online simulated scenes containing VCTK sources.
|
| 64 |
- Complete SAID training used SourceBank indices over VCTK, MUSDB18-HQ,
|
|
|
|
| 67 |
recordings and labels.
|
| 68 |
|
| 69 |
The internal SourceBank index contained 122,359 rows and has SHA256
|
| 70 |
+
`489f2405025d64f087a76a753cb0fae1051e91df00236ae2285ca2046d664535`.
|
| 71 |
+
It is retained as provenance and is not distributed. Audio files and dataset
|
| 72 |
+
labels are not included with the checkpoint. The complete data provenance is
|
| 73 |
+
summarized in the [training data notice](../../LICENSES/TRAINING_DATA.md).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
+
## Distribution and license
|
|
|
|
| 76 |
|
| 77 |
+
The checkpoint is distributed for non-commercial research under the
|
| 78 |
+
[SAID Model Weights Non-Commercial Research License 1.0](../../LICENSES/SAID-Model-Weights-NonCommercial-1.0.txt),
|
| 79 |
+
subject to every applicable upstream term. It contains a PaSST-derived
|
| 80 |
+
backbone and parameters trained from the SourceBank mixture described above.
|
| 81 |
+
The SAID weight license applies only to rights held by Runbang Wang and does
|
| 82 |
+
not replace upstream terms. Original training audio and labels are not
|
| 83 |
+
included.
|
| 84 |
+
|
| 85 |
+
The PaSST project distributes its software under Apache-2.0 and presents the
|
| 86 |
+
initial-weight asset above as an official pretrained model for inference and
|
| 87 |
+
fine-tuning. The SourceBank mixture includes non-commercial, restricted, or
|
| 88 |
+
Sampling+ terms; this release therefore applies the non-commercial research
|
| 89 |
+
boundary to the complete checkpoint. Exact revisions and attribution are
|
| 90 |
+
recorded in [Third-party notices](../../THIRD_PARTY_NOTICES.md).
|
| 91 |
+
|
| 92 |
+
Contains information from the CSTR VCTK Corpus, made available under the ODC
|
| 93 |
+
Attribution License 1.0. The corpus is copyright 2012, Centre for Speech
|
| 94 |
+
Technology Research, University of Edinburgh, and was constructed by
|
| 95 |
+
Christophe Veaux, Junichi Yamagishi, and Kirsten MacDonald. The official VCTK
|
| 96 |
+
0.80 record is <https://datashare.ed.ac.uk/handle/10283/2651>.
|
docs/compression.md
CHANGED
|
@@ -21,28 +21,34 @@ requested with `said infer --format npz` retain dense numerical maps and are
|
|
| 21 |
also outside this DCASE JSON postprocessing command.
|
| 22 |
|
| 23 |
The default `paper-table1` preset implements the evaluated Table 1 artifact.
|
| 24 |
-
For
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
The size constraint is 20,000,000 bytes for each prediction JSON. A file that
|
| 38 |
-
exceeds the limit is recomputed with the recorded stricter
|
| 39 |
-
|
|
|
|
|
|
|
| 40 |
attempted preset, its byte count, and the selected preset for each file.
|
| 41 |
Compression raises an error and publishes no output directory if all presets
|
| 42 |
remain above the limit. It never removes detections to satisfy the limit.
|
| 43 |
|
| 44 |
-
Table 1 uses decimal megabytes and the
|
| 45 |
-
split:
|
| 46 |
|
| 47 |
| Prediction | Macro mAP (4.2) | Macro Pearson r (6.30) | Max. JSON | Avg. JSON |
|
| 48 |
|---|---:|---:|---:|---:|
|
|
|
|
| 21 |
also outside this DCASE JSON postprocessing command.
|
| 22 |
|
| 23 |
The default `paper-table1` preset implements the evaluated Table 1 artifact.
|
| 24 |
+
For each acoustic map it first removes points below 10% of the map peak.
|
| 25 |
+
Confidence at least 0.20 selects a two-pixel grid and adds no boundary points.
|
| 26 |
+
Lower confidence selects a six-pixel grid and adds support points two pixels
|
| 27 |
+
from the low-energy boundary, with support energy equal to 12% of the peak.
|
| 28 |
+
Every detection and its metadata are retained.
|
| 29 |
|
| 30 |
+
Classes 2, 3, 5, and 10 have no point cap; their strongest point in each
|
| 31 |
+
selected grid cell is retained. Other classes use an 88-point cap. Maps that
|
| 32 |
+
already contain at most 88 points after thresholding and boundary support keep
|
| 33 |
+
those points. Larger maps first form grid candidates. If the grid leaves fewer
|
| 34 |
+
than 88 candidates, selection returns to all post-threshold and boundary
|
| 35 |
+
points. The cap then selects across high-, medium-, and low-energy bands while
|
| 36 |
+
favoring spatial spread, until at most 88 remain. Coordinates use three
|
| 37 |
+
decimals, energies use four, and integral coordinates are written as JSON
|
| 38 |
+
integers. The complete settings, input SHA256, and output SHA256 are recorded in
|
| 39 |
+
`compression_manifest.json`.
|
| 40 |
|
| 41 |
The size constraint is 20,000,000 bytes for each prediction JSON. A file that
|
| 42 |
+
exceeds the limit is recomputed with the recorded stricter setting: the
|
| 43 |
+
confidence split becomes 0.25, the low-confidence boundary offset becomes four
|
| 44 |
+
pixels, and the 88-point cap applies to every class. Point budgets of 64, 48,
|
| 45 |
+
and 32 are then tried in sequence if needed. The manifest stores every
|
| 46 |
attempted preset, its byte count, and the selected preset for each file.
|
| 47 |
Compression raises an error and publishes no output directory if all presets
|
| 48 |
remain above the limit. It never removes detections to satisfy the limit.
|
| 49 |
|
| 50 |
+
Table 1 uses the paper SAID (PaSST) checkpoint, decimal megabytes, and the
|
| 51 |
+
complete 78-recording development-test split:
|
| 52 |
|
| 53 |
| Prediction | Macro mAP (4.2) | Macro Pearson r (6.30) | Max. JSON | Avg. JSON |
|
| 54 |
|---|---:|---:|---:|---:|
|
docs/configuration.md
CHANGED
|
@@ -1,98 +1,112 @@
|
|
| 1 |
# Configuration
|
| 2 |
|
| 3 |
-
`said train --config configs/training/<recipe>.yaml`
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
| 11 |
|---|---|---|
|
| 12 |
-
| `schema` | `said-config-v1` |
|
| 13 |
-
| `preset` | `paper` | Published
|
| 14 |
-
| `model` | `said`, `audio2sph` | Complete SAID
|
| 15 |
-
| `class_feature_encoder` | `passt`, `audiomae`, `null` |
|
| 16 |
-
| `data` | `dcase_recordings`, `simulated_scenes` |
|
| 17 |
-
| `data_config` | path |
|
| 18 |
| `load_said_ckpt` | path, `null` | Complete SAID initialization |
|
| 19 |
-
| `load_audio2sph_ckpt` | path, `null` | Audio2Sph
|
| 20 |
| `load_class_feature_encoder_ckpt` | path, `null` | Class Feature Encoder initialization when assembling SAID |
|
|
|
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
-
| Training object | Data |
|
| 25 |
-
|---|---|---|---|
|
| 26 |
-
| `said` | `dcase_recordings` |
|
| 27 |
-
| `said` | `simulated_scenes` | `
|
| 28 |
-
| `audio2sph` | `simulated_scenes` | `
|
| 29 |
|
| 30 |
Complete-model initialization is mutually exclusive with component
|
| 31 |
-
initialization.
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
`
|
| 52 |
-
`
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|---|---|---|
|
| 60 |
-
| `audio2sph.yaml` |
|
| 61 |
-
| `sourcebank_passt.yaml` | `
|
| 62 |
-
| `sourcebank_audiomae.yaml` | `
|
| 63 |
-
| `dcase_passt.yaml` | `
|
| 64 |
-
| `dcase_audiomae.yaml` | `
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
#
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
|
|
|
|
|
| 1 |
# Configuration
|
| 2 |
|
| 3 |
+
`said train --config configs/training/<recipe>.yaml` reads a training recipe.
|
| 4 |
+
The recipe points to `configs/data.yaml`, which contains local dataset paths
|
| 5 |
+
and Online Scene Generation settings. Relative paths are resolved from the
|
| 6 |
+
file that contains them.
|
| 7 |
+
|
| 8 |
+
## Training recipe fields
|
| 9 |
+
|
| 10 |
+
Every top-level field below is required:
|
| 11 |
+
|
| 12 |
+
| Field | Accepted value | Purpose |
|
| 13 |
|---|---|---|
|
| 14 |
+
| `schema` | `said-config-v1` | Public configuration version |
|
| 15 |
+
| `preset` | `paper` | Published architecture and objective settings |
|
| 16 |
+
| `model` | `said`, `audio2sph` | Complete SAID or Audio2Sph + Panoramic Decoder |
|
| 17 |
+
| `class_feature_encoder` | `passt`, `audiomae`, `null` | Class Feature Encoder; `null` for Audio2Sph |
|
| 18 |
+
| `data` | `dcase_recordings`, `simulated_scenes` | Selected section of the data configuration |
|
| 19 |
+
| `data_config` | path | Data configuration file |
|
| 20 |
| `load_said_ckpt` | path, `null` | Complete SAID initialization |
|
| 21 |
+
| `load_audio2sph_ckpt` | path, `null` | Audio2Sph initialization |
|
| 22 |
| `load_class_feature_encoder_ckpt` | path, `null` | Class Feature Encoder initialization when assembling SAID |
|
| 23 |
+
| `training` | mapping | Optimization, output, logging, validation, and checkpoint settings |
|
| 24 |
|
| 25 |
+
The initialization combinations are:
|
| 26 |
|
| 27 |
+
| Training object | Data | Required initialization | Result |
|
| 28 |
+
|---|---|---|---|
|
| 29 |
+
| `said` | `dcase_recordings` | `load_said_ckpt` | Fine-tune a complete SAID model |
|
| 30 |
+
| `said` | `simulated_scenes` | `load_audio2sph_ckpt` and `load_class_feature_encoder_ckpt` | Extract Audio2Sph and Class Feature Encoder components, assemble SAID, and train on SourceBank scenes |
|
| 31 |
+
| `audio2sph` | `simulated_scenes` | none, or `load_audio2sph_ckpt` | Train Audio2Sph + Panoramic Decoder from the beginning or initialize the complete pretraining model |
|
| 32 |
|
| 33 |
Complete-model initialization is mutually exclusive with component
|
| 34 |
+
initialization. For complete SAID,
|
| 35 |
+
`class_feature_encoder: passt` selects SAID (PaSST), and
|
| 36 |
+
`class_feature_encoder: audiomae` selects SAID (AudioMAE). Checkpoint keys,
|
| 37 |
+
tensor shapes, and dtypes are validated before training begins.
|
| 38 |
+
|
| 39 |
+
## Training settings
|
| 40 |
+
|
| 41 |
+
Fields from `output_directory` through `log_every_steps` are required. The
|
| 42 |
+
three validation fields are optional and their defaults are shown below. The
|
| 43 |
+
table also records the values used by the released recipes.
|
| 44 |
+
|
| 45 |
+
| Field | Released recipe value | Purpose |
|
| 46 |
+
|---|---|---|
|
| 47 |
+
| `output_directory` | route-specific path under `runs/` | Run outputs and checkpoints |
|
| 48 |
+
| `total_steps` | 2,500,000 for Audio2Sph; 500,000 for SAID | Optimizer updates |
|
| 49 |
+
| `batch_size` | `1` | Samples per optimizer update |
|
| 50 |
+
| `num_workers` | `8` | Data-loader workers |
|
| 51 |
+
| `seed` | route-specific integer | Model, sampling, and data-order seed |
|
| 52 |
+
| `device` | `auto` | CUDA when available, otherwise CPU |
|
| 53 |
+
| `learning_rate` | `1.0e-4` for simulated scenes; `1.5e-6` for DCASE | Main parameter-group learning rate; required, with `null` selecting the same route-specific values |
|
| 54 |
+
| `audio2sph_learning_rate` | `2.5e-6` | Audio2Sph parameter group during SourceBank SAID training; retained but unused by the Audio2Sph and DCASE recipes |
|
| 55 |
+
| `warmup_steps` | `1,000` | Linear warmup duration |
|
| 56 |
+
| `minimum_learning_rate_ratio` | `0.1` | Final cosine-schedule ratio |
|
| 57 |
+
| `ema_decay` | `0.999` | Exponential-moving-average decay |
|
| 58 |
+
| `save_every_steps` | `10,000` | Latest checkpoint cadence |
|
| 59 |
+
| `keep_every_steps` | `100,000` | Retained milestone cadence |
|
| 60 |
+
| `log_every_steps` | `100` | Terminal and `metrics.jsonl` cadence |
|
| 61 |
+
| `validate_every_steps` | `10,000` for simulated scenes; `null` for DCASE | Optional validation cadence; default `null` |
|
| 62 |
+
| `validation_batches` | `16` for simulated scenes; `0` for DCASE | Optional fixed validation batches; default `0` |
|
| 63 |
+
| `selection_metric` | `validation_loss` | Optional metric minimized for `best.ema.ckpt`; default `validation_loss` |
|
| 64 |
+
|
| 65 |
+
`keep_every_steps` must be a multiple of `save_every_steps`. When validation
|
| 66 |
+
is enabled, `validate_every_steps` must also be a multiple of
|
| 67 |
+
`save_every_steps` so the selected state is resumable.
|
| 68 |
+
|
| 69 |
+
## Released recipes
|
| 70 |
+
|
| 71 |
+
| Recipe | Reads by default | Writes |
|
| 72 |
|---|---|---|
|
| 73 |
+
| `audio2sph.yaml` | Prepared VCTK through Online Scene Generation | `runs/audio2sph_pretraining/` |
|
| 74 |
+
| `sourcebank_passt.yaml` | `audio2sph.ckpt`, PaSST tensors from `said_passt.ckpt`, and SourceBank | `runs/said_sourcebank_passt/` |
|
| 75 |
+
| `sourcebank_audiomae.yaml` | `audio2sph.ckpt`, AudioMAE tensors from `said_audiomae.ckpt`, and SourceBank | `runs/said_sourcebank_audiomae/` |
|
| 76 |
+
| `dcase_passt.yaml` | `said_passt.ckpt` and DCASE recordings | `runs/said_dcase_fine_tuning_passt/` |
|
| 77 |
+
| `dcase_audiomae.yaml` | `said_audiomae.ckpt` and DCASE recordings | `runs/said_dcase_fine_tuning_audiomae/` |
|
| 78 |
+
|
| 79 |
+
These defaults make each recipe an independent published-model entry point.
|
| 80 |
+
To carry newly trained weights forward, replace the next recipe's
|
| 81 |
+
`load_audio2sph_ckpt` or `load_said_ckpt` with the preceding `.ema.ckpt`.
|
| 82 |
+
[Training](training.md#pass-a-newly-trained-model-to-the-next-route) gives the
|
| 83 |
+
exact handoff paths.
|
| 84 |
+
|
| 85 |
+
## Checkpoint paths and resume
|
| 86 |
+
|
| 87 |
+
Canonical published paths in the repository-root `checkpoints/` directory are
|
| 88 |
+
downloaded from the official
|
| 89 |
+
[Hugging Face repository](https://huggingface.co/IN03X/SAID) and verified by
|
| 90 |
+
byte length and SHA256. `SAID_CHECKPOINT_BASE_URL` selects another authorized
|
| 91 |
+
mirror. Other checkpoint paths must already exist locally.
|
| 92 |
+
|
| 93 |
+
`load_said_ckpt` and `load_audio2sph_ckpt` accept flat model-weight files for
|
| 94 |
+
initialization. Rerunning the same training command instead restores
|
| 95 |
+
`latest.training.pt` from `output_directory`. `--resume PATH` selects another
|
| 96 |
+
complete training state, and the stored training-recipe and data-configuration
|
| 97 |
+
fingerprint must match the current files.
|
| 98 |
+
|
| 99 |
+
## Data configuration
|
| 100 |
+
|
| 101 |
+
`configs/data.yaml` contains these sections:
|
| 102 |
+
|
| 103 |
+
- `dcase_recordings`: DCASE root, split names, rotation views, source limit,
|
| 104 |
+
and class balancing;
|
| 105 |
+
- `simulated_scenes`: VCTK, SourceBank, room, source, activity, noise, and
|
| 106 |
+
target-map settings;
|
| 107 |
+
- `audio`: microphone array, **1-based Eigenmike capsule numbers**
|
| 108 |
+
`[6, 10, 26, 22]`, 48 kHz sample rate, and two-second segment duration.
|
| 109 |
+
|
| 110 |
+
Only the section selected by the recipe's `data` field is validated and used.
|
| 111 |
+
[Data](data.md) gives the required directory layouts and SourceBank manifest
|
| 112 |
+
schema.
|
docs/data.md
CHANGED
|
@@ -100,9 +100,9 @@ The preparation command checks the release identity in `README`, the ODC-By
|
|
| 100 |
speaker list into 99 training speakers and 10 held-out speakers. Speech activity
|
| 101 |
is measured by RMS over 0.05 s windows with a 0.1 hop ratio; samples covered by
|
| 102 |
windows at or below 0.0055 RMS are removed. Each remaining waveform is repeated
|
| 103 |
-
to two seconds at 48 kHz. The prepared directory retains
|
| 104 |
-
machine-readable record of these parameters. Audio2Sph
|
| 105 |
-
record before Online Scene Generation begins.
|
| 106 |
|
| 107 |
## SourceBank for complete SAID training
|
| 108 |
|
|
@@ -211,4 +211,4 @@ sections. The top-level training configuration selects one with
|
|
| 211 |
`data: dcase_recordings` or `data: simulated_scenes`. Paths may be absolute or
|
| 212 |
relative to the data configuration file. `audio.array: eigenmike32` selects
|
| 213 |
the Eigenmike geometry, while `capsule_indices_1based: [6, 10, 26, 22]`
|
| 214 |
-
records the four
|
|
|
|
| 100 |
speaker list into 99 training speakers and 10 held-out speakers. Speech activity
|
| 101 |
is measured by RMS over 0.05 s windows with a 0.1 hop ratio; samples covered by
|
| 102 |
windows at or below 0.0055 RMS are removed. Each remaining waveform is repeated
|
| 103 |
+
or truncated to exactly two seconds at 48 kHz. The prepared directory retains
|
| 104 |
+
the VCTK notices and a machine-readable record of these parameters. Audio2Sph
|
| 105 |
+
training validates that record before Online Scene Generation begins.
|
| 106 |
|
| 107 |
## SourceBank for complete SAID training
|
| 108 |
|
|
|
|
| 211 |
`data: dcase_recordings` or `data: simulated_scenes`. Paths may be absolute or
|
| 212 |
relative to the data configuration file. `audio.array: eigenmike32` selects
|
| 213 |
the Eigenmike geometry, while `capsule_indices_1based: [6, 10, 26, 22]`
|
| 214 |
+
records the four **1-based Eigenmike capsule numbers** used by SAID.
|
docs/evaluation.md
CHANGED
|
@@ -74,9 +74,26 @@ said evaluate "$HOME/datasets/dcase2026_task3" \
|
|
| 74 |
The example includes `--add-previous-metrics` because it reproduces the paper
|
| 75 |
table.
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
| Command | Metrics produced |
|
| 78 |
|---|---|
|
| 79 |
-
| `said evaluate ...` | Current (6.30) Macro mAP, class-agnostic AP, Macro Pearson r, and Class-F1 |
|
| 80 |
| `said evaluate ... --add-previous-metrics` | All default metrics, plus (4.2) Paper Macro mAP and Paper Mask AP |
|
| 81 |
|
| 82 |
`--add-previous-metrics` adds the two (4.2) AP values. It does not change
|
|
@@ -111,6 +128,17 @@ With `--add-previous-metrics`, `metrics.json` contains:
|
|
| 111 |
|
| 112 |
Without `--add-previous-metrics`, the final two fields are absent.
|
| 113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
## Score existing predictions
|
| 115 |
|
| 116 |
Inference does not need to be repeated:
|
|
@@ -135,7 +163,7 @@ said evaluate "$HOME/datasets/dcase2026_task3" \
|
|
| 135 |
|
| 136 |
## Paper inference protocol
|
| 137 |
|
| 138 |
-
- selected Eigenmike
|
| 139 |
- two-second windows, retaining the first 20 of 21 detector positions;
|
| 140 |
- 10 predictions per second;
|
| 141 |
- at most four slots per frame with confidence at least 0.05;
|
|
@@ -173,6 +201,8 @@ official metric formulas and parameters are unchanged. The evaluator's 20 MB
|
|
| 173 |
submission guard is checked separately by `said compress` and is not applied
|
| 174 |
when reproducing local scores.
|
| 175 |
|
| 176 |
-
|
| 177 |
-
interrupted command validates the checkpoint, dataset,
|
| 178 |
-
prediction hashes before continuing.
|
|
|
|
|
|
|
|
|
| 74 |
The example includes `--add-previous-metrics` because it reproduces the paper
|
| 75 |
table.
|
| 76 |
|
| 77 |
+
The command writes to `said_evaluation/` by default:
|
| 78 |
+
|
| 79 |
+
```text
|
| 80 |
+
said_evaluation/
|
| 81 |
+
├── evaluation_manifest.json
|
| 82 |
+
├── inference_outputs/
|
| 83 |
+
│ └── 78 *_inference.json files
|
| 84 |
+
├── metrics.json
|
| 85 |
+
└── evaluator.json
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
The uncompressed PaSST prediction files used for the paper average 369.58 MB
|
| 89 |
+
per recording and require approximately 28.8 GB for all 78 recordings. An
|
| 90 |
+
interrupted inference run can be continued with the same command: SAID checks
|
| 91 |
+
the model, dataset, protocol, and hashes of completed predictions before
|
| 92 |
+
resuming.
|
| 93 |
+
|
| 94 |
| Command | Metrics produced |
|
| 95 |
|---|---|
|
| 96 |
+
| `said evaluate ...` | Current (6.30) Macro mAP, class-agnostic AP, Macro Pearson r, and Macro Class-F1 |
|
| 97 |
| `said evaluate ... --add-previous-metrics` | All default metrics, plus (4.2) Paper Macro mAP and Paper Mask AP |
|
| 98 |
|
| 99 |
`--add-previous-metrics` adds the two (4.2) AP values. It does not change
|
|
|
|
| 128 |
|
| 129 |
Without `--add-previous-metrics`, the final two fields are absent.
|
| 130 |
|
| 131 |
+
### Macro Class-F1
|
| 132 |
+
|
| 133 |
+
Macro Class-F1 separates class assignment from map-overlap AP. At each frame,
|
| 134 |
+
ground-truth and predicted sources are matched without using their classes:
|
| 135 |
+
the cost is the great-circle distance between the peak points of their maps,
|
| 136 |
+
Hungarian assignment finds the minimum-cost pairs, and only pairs within 20°
|
| 137 |
+
are retained. The class confusion matrix is accumulated across all
|
| 138 |
+
recordings. Unmatched sources do not enter this diagnostic. F1 is computed for
|
| 139 |
+
every reference class present in the evaluated data; a class with no retained
|
| 140 |
+
support receives zero, and the reported value is the macro average.
|
| 141 |
+
|
| 142 |
## Score existing predictions
|
| 143 |
|
| 144 |
Inference does not need to be repeated:
|
|
|
|
| 163 |
|
| 164 |
## Paper inference protocol
|
| 165 |
|
| 166 |
+
- selected **1-based Eigenmike capsule numbers** `[6, 10, 26, 22]` at 48 kHz;
|
| 167 |
- two-second windows, retaining the first 20 of 21 detector positions;
|
| 168 |
- 10 predictions per second;
|
| 169 |
- at most four slots per frame with confidence at least 0.05;
|
|
|
|
| 201 |
submission guard is checked separately by `said compress` and is not applied
|
| 202 |
when reproducing local scores.
|
| 203 |
|
| 204 |
+
Inference progress is recorded after each completed recording. Repeating an
|
| 205 |
+
interrupted full-evaluation command validates the checkpoint, dataset,
|
| 206 |
+
protocol, and completed prediction hashes before continuing inference. Metric
|
| 207 |
+
workers display per-recording progress but recompute the metric stage after an
|
| 208 |
+
interruption.
|
docs/inference.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
| 2 |
|
| 3 |
## Command line
|
| 4 |
|
|
|
|
|
|
|
| 5 |
Select either complete paper model. On first use, SAID downloads its checkpoint
|
| 6 |
from the official Hugging Face repository and verifies its recorded size,
|
| 7 |
SHA256, schema, shapes, and dtypes before deserialization:
|
|
@@ -21,8 +23,7 @@ This writes `said_demo_output/audio2sph_demo_1.mp4` through
|
|
| 21 |
`audio2sph_demo_4.mp4`. Each video merges the official per-source Ground Truth
|
| 22 |
maps by a pixelwise maximum on the left and shows the Audio2Sph + Panoramic
|
| 23 |
Decoder prediction on the right. Both sides use one fixed zero-to-one display
|
| 24 |
-
scale and contain no class legend.
|
| 25 |
-
1920×568, H.264 video with 48 kHz stereo AAC audio.
|
| 26 |
|
| 27 |
The command writes four synchronized comparison videos:
|
| 28 |
|
|
@@ -46,14 +47,14 @@ The generated files use these fixed excerpts:
|
|
| 46 |
| `*_demo_3.mp4` | Sony | `fold4_room24_mix002` | 20--40 s |
|
| 47 |
| `*_demo_4.mp4` | Sony | `fold4_room23_mix003` | 0--20 s |
|
| 48 |
|
| 49 |
-
Each file is
|
| 50 |
-
|
| 51 |
-
synchronized 360-degree video displays the resulting
|
| 52 |
-
recorded scene
|
| 53 |
-
|
| 54 |
-
coordinate conversion, and overlay
|
| 55 |
-
|
| 56 |
-
values.
|
| 57 |
|
| 58 |
The source and wheel include these four licensed excerpts: the four selected
|
| 59 |
Eigenmike channels at the official 24 kHz sample rate, the corresponding
|
|
@@ -78,8 +79,9 @@ partial files, publish atomically, and preserve any existing completed file
|
|
| 78 |
for explicit integrity diagnosis.
|
| 79 |
|
| 80 |
The input is either the four Eigenmike capsule signals used by SAID, in the
|
| 81 |
-
order `[6, 10, 26, 22]`, or a complete 32-channel Eigenmike recording.
|
| 82 |
-
|
|
|
|
| 83 |
|
| 84 |
SAID processes complete recordings in two-second windows. Every window
|
| 85 |
produces 21 internal detector positions; the endpoint is omitted when windows
|
|
@@ -90,29 +92,57 @@ whose start is earlier than the recording duration is retained.
|
|
| 90 |
Audio2Sph inference uses the same two-second segmentation and boundary rule at
|
| 91 |
its native 100 Hz time base. Each window produces 201 positions; the endpoint
|
| 92 |
is omitted before concatenation, yielding 200 non-overlapping frame starts per
|
| 93 |
-
two-second window. Its `audio2sph-prediction-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
- `frame_index` and `slot_index`;
|
| 107 |
- zero-based `class_id`;
|
| 108 |
- paper `confidence`;
|
| 109 |
- the corresponding 180×360 `refined_map` stored losslessly as float32.
|
| 110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
The map row runs from +90° elevation at the top to −90° at the bottom. For a
|
| 112 |
map column `x_sph`, the standard DCASE horizontal coordinate is
|
| 113 |
`(179 - x_sph) mod 360`. The DCASE exporter applies this conversion.
|
| 114 |
|
| 115 |
-
|
| 116 |
four slots per frame by default. These are the paper evaluation selection
|
| 117 |
settings, rather than additional model layers. They can be changed without
|
| 118 |
changing the model forward pass:
|
|
@@ -134,6 +164,25 @@ said infer recording.wav \
|
|
| 134 |
--recording-domain tau
|
| 135 |
```
|
| 136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
## Python API
|
| 138 |
|
| 139 |
```python
|
|
@@ -176,7 +225,26 @@ The iterator returns each prediction window after it is computed and therefore
|
|
| 176 |
does not retain the complete set of predicted maps. The audio loader currently
|
| 177 |
loads the input recording before segmented inference.
|
| 178 |
|
| 179 |
-
## Reading
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
|
| 181 |
```python
|
| 182 |
import json
|
|
@@ -190,3 +258,15 @@ for record in manifest["chunks"]:
|
|
| 190 |
confidence = chunk["confidence"]
|
| 191 |
refined_map = chunk["refined_map"]
|
| 192 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
## Command line
|
| 4 |
|
| 5 |
+
FFmpeg must be available on `PATH` for `said demo` and `said infer --visual`.
|
| 6 |
+
|
| 7 |
Select either complete paper model. On first use, SAID downloads its checkpoint
|
| 8 |
from the official Hugging Face repository and verifies its recorded size,
|
| 9 |
SHA256, schema, shapes, and dtypes before deserialization:
|
|
|
|
| 23 |
`audio2sph_demo_4.mp4`. Each video merges the official per-source Ground Truth
|
| 24 |
maps by a pixelwise maximum on the left and shows the Audio2Sph + Panoramic
|
| 25 |
Decoder prediction on the right. Both sides use one fixed zero-to-one display
|
| 26 |
+
scale and contain no class legend.
|
|
|
|
| 27 |
|
| 28 |
The command writes four synchronized comparison videos:
|
| 29 |
|
|
|
|
| 47 |
| `*_demo_3.mp4` | Sony | `fold4_room24_mix002` | 20--40 s |
|
| 48 |
| `*_demo_4.mp4` | Sony | `fold4_room23_mix003` | 0--20 s |
|
| 49 |
|
| 50 |
+
Each complete-SAID file is 1920×600; each Audio2Sph + Panoramic Decoder file
|
| 51 |
+
is 1920×568. All generated files are 20 seconds with H.264 video and 48 kHz
|
| 52 |
+
stereo AAC audio. The synchronized 360-degree video displays the resulting
|
| 53 |
+
acoustic maps in the recorded scene, with Ground Truth on the left and
|
| 54 |
+
Prediction on the right. Complete-SAID videos share a fixed per-scene category
|
| 55 |
+
legend, colors, time labels, coordinate conversion, and overlay scale across
|
| 56 |
+
both views. Individual maps are peak-normalized for display, while inference
|
| 57 |
+
archives and reported metrics retain their original values.
|
| 58 |
|
| 59 |
The source and wheel include these four licensed excerpts: the four selected
|
| 60 |
Eigenmike channels at the official 24 kHz sample rate, the corresponding
|
|
|
|
| 79 |
for explicit integrity diagnosis.
|
| 80 |
|
| 81 |
The input is either the four Eigenmike capsule signals used by SAID, in the
|
| 82 |
+
order `[6, 10, 26, 22]`, or a complete 32-channel Eigenmike recording. These
|
| 83 |
+
are **1-based Eigenmike capsule numbers**. The loader selects the four signals
|
| 84 |
+
and resamples the recording to 48 kHz.
|
| 85 |
|
| 86 |
SAID processes complete recordings in two-second windows. Every window
|
| 87 |
produces 21 internal detector positions; the endpoint is omitted when windows
|
|
|
|
| 92 |
Audio2Sph inference uses the same two-second segmentation and boundary rule at
|
| 93 |
its native 100 Hz time base. Each window produces 201 positions; the endpoint
|
| 94 |
is omitted before concatenation, yielding 200 non-overlapping frame starts per
|
| 95 |
+
two-second window. Its default `audio2sph-prediction-json-v1` output records
|
| 96 |
+
one class-agnostic annotation per 100 Hz frame. Each annotation contains its
|
| 97 |
+
frame index and spherical points at or above 10% of the map peak. The schema
|
| 98 |
+
records that category IDs and class confidence are not defined for Audio2Sph.
|
| 99 |
+
|
| 100 |
+
All three public model routes write one JSON file by default:
|
| 101 |
+
|
| 102 |
+
```text
|
| 103 |
+
said_output/
|
| 104 |
+
└── recording_inference.json
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
For complete SAID, each annotation contains its 10 Hz frame index, instance
|
| 108 |
+
ID, zero-based DCASE class ID, confidence, and spherical acoustic-map points.
|
| 109 |
+
This is standard DCASE JSON and is accepted by the compression command. It can
|
| 110 |
+
also be scored by the evaluation command when its recording filename matches a
|
| 111 |
+
DCASE development-test label. Audio2Sph uses the class-agnostic schema
|
| 112 |
+
described above. In both schemas, values below 10% of each map's peak are
|
| 113 |
+
omitted; the paper's grid compression is not applied.
|
| 114 |
+
|
| 115 |
+
Use the optional NumPy archive when exact float32 maps are required:
|
| 116 |
+
|
| 117 |
+
```bash
|
| 118 |
+
said infer recording.wav --model said_passt --format npz
|
| 119 |
+
said infer recording.wav --model audio2sph --format npz
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
The complete SAID command creates a lossless `said-prediction-archive-v1`
|
| 123 |
+
directory. It is distinct from standard DCASE JSON and from the paper's lossy
|
| 124 |
+
JSON compression method. Its `manifest.json` records the model, class
|
| 125 |
+
taxonomy, frame rate, map dimensions, checkpoint SHA256, Class Feature
|
| 126 |
+
Encoder, recording domain, frame-time rule, selection settings, and ordered
|
| 127 |
+
chunk files. Each losslessly compressed NumPy chunk contains:
|
| 128 |
|
| 129 |
- `frame_index` and `slot_index`;
|
| 130 |
- zero-based `class_id`;
|
| 131 |
- paper `confidence`;
|
| 132 |
- the corresponding 180×360 `refined_map` stored losslessly as float32.
|
| 133 |
|
| 134 |
+
The Audio2Sph command creates an
|
| 135 |
+
`audio2sph-prediction-archive-v1` directory. Its manifest records the model,
|
| 136 |
+
checkpoint, 100 Hz time base, map dimensions, frame-time rule, and ordered
|
| 137 |
+
chunks. Each chunk contains one float32 `map` array with shape
|
| 138 |
+
`[frames, 180, 360]`; class IDs, confidence, slots, and recording-domain
|
| 139 |
+
metadata do not apply to this class-agnostic route.
|
| 140 |
+
|
| 141 |
The map row runs from +90° elevation at the top to −90° at the bottom. For a
|
| 142 |
map column `x_sph`, the standard DCASE horizontal coordinate is
|
| 143 |
`(179 - x_sph) mod 360`. The DCASE exporter applies this conversion.
|
| 144 |
|
| 145 |
+
Complete SAID retains candidates with confidence at least 0.05 and at most
|
| 146 |
four slots per frame by default. These are the paper evaluation selection
|
| 147 |
settings, rather than additional model layers. They can be changed without
|
| 148 |
changing the model forward pass:
|
|
|
|
| 164 |
--recording-domain tau
|
| 165 |
```
|
| 166 |
|
| 167 |
+
## Optional visualization
|
| 168 |
+
|
| 169 |
+
Pass a synchronized equirectangular video to render the prediction with the
|
| 170 |
+
same coordinate conversion, class colors, heat-map overlay, time labels,
|
| 171 |
+
audio handling, and FFmpeg encoder used by `said demo`:
|
| 172 |
+
|
| 173 |
+
```bash
|
| 174 |
+
said infer recording.wav \
|
| 175 |
+
--model said_passt \
|
| 176 |
+
--visual panorama.mp4
|
| 177 |
+
```
|
| 178 |
+
|
| 179 |
+
The output directory then contains both `recording_inference.json` and
|
| 180 |
+
`recording_prediction.mp4`. Complete SAID displays its labeled predictions;
|
| 181 |
+
Audio2Sph displays its class-agnostic acoustic field. Audio2Sph retains 100 Hz
|
| 182 |
+
numerical output while its MP4 is rendered at 10 fps. Combining `--visual`
|
| 183 |
+
with `--format npz` retains the lossless archive alongside the MP4. Prediction
|
| 184 |
+
is computed once; visualization reuses that result.
|
| 185 |
+
|
| 186 |
## Python API
|
| 187 |
|
| 188 |
```python
|
|
|
|
| 225 |
does not retain the complete set of predicted maps. The audio loader currently
|
| 226 |
loads the input recording before segmented inference.
|
| 227 |
|
| 228 |
+
## Reading outputs
|
| 229 |
+
|
| 230 |
+
The default output is ordinary JSON:
|
| 231 |
+
|
| 232 |
+
```python
|
| 233 |
+
import json
|
| 234 |
+
|
| 235 |
+
prediction = json.load(
|
| 236 |
+
open("said_output/recording_inference.json", encoding="utf-8")
|
| 237 |
+
)
|
| 238 |
+
for annotation in prediction["annotations"]:
|
| 239 |
+
frame = annotation["metadata_frame_index"]
|
| 240 |
+
points = annotation["segmentation"]
|
| 241 |
+
```
|
| 242 |
+
|
| 243 |
+
Complete SAID annotations additionally contain `category_id`, `instance_id`,
|
| 244 |
+
and `score`. The Audio2Sph top-level schema identifies the file as
|
| 245 |
+
class-agnostic and records its 100 Hz time base.
|
| 246 |
+
|
| 247 |
+
An explicitly requested complete-SAID NPZ archive can be decoded with NumPy:
|
| 248 |
|
| 249 |
```python
|
| 250 |
import json
|
|
|
|
| 258 |
confidence = chunk["confidence"]
|
| 259 |
refined_map = chunk["refined_map"]
|
| 260 |
```
|
| 261 |
+
|
| 262 |
+
For an Audio2Sph NPZ archive, each chunk contains only the dense maps:
|
| 263 |
+
|
| 264 |
+
```python
|
| 265 |
+
import json
|
| 266 |
+
import numpy as np
|
| 267 |
+
|
| 268 |
+
manifest = json.load(open("said_output/manifest.json", encoding="utf-8"))
|
| 269 |
+
for record in manifest["chunks"]:
|
| 270 |
+
with np.load("said_output/" + record["file"]) as chunk:
|
| 271 |
+
acoustic_map = chunk["map"] # [frames, 180, 360]
|
| 272 |
+
```
|
docs/media/audio2sph_demo_1.mp4
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b611ec23d16f97d1dd34ef1863827b6dd61af967abc3292be605a636cefd7663
|
| 3 |
+
size 2440190
|
docs/media/audio2sph_demo_3.mp4
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d74ce51e6970845a5b9fd9422a776ace27b456282b6804ddb7d7ad1f5a49065
|
| 3 |
+
size 2717112
|
docs/media/said_demo_1.mp4
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a8093c3011847bf34440db3251d958e450ed5328aec463abc496e1509c0b7e71
|
| 3 |
+
size 2471983
|
docs/media/said_demo_3.mp4
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:88b4cdbe4698ee0a4215a301dce39a8d2c013d4cd9a29633b6270eeaaef32c35
|
| 3 |
+
size 2809644
|
docs/model_architecture.md
CHANGED
|
@@ -27,7 +27,7 @@ SAID
|
|
| 27 |
|
| 28 |
The Mask Decoder reads Large, Medium, and Small Features in that order and
|
| 29 |
repeats the cycle three times. It produces predictions before the first layer
|
| 30 |
-
and after each of the nine layers. Class Feature
|
| 31 |
in all nine layers.
|
| 32 |
|
| 33 |
## Paper-to-code names
|
|
@@ -135,11 +135,12 @@ dictionaries whose serialized identifiers predate the final paper terminology.
|
|
| 135 |
The compatibility boundary verifies each original file and maps its tensors to
|
| 136 |
the hierarchy above without rewriting the checkpoint.
|
| 137 |
|
| 138 |
-
|
| 139 |
-
recognition-classifier
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
Feature
|
|
|
|
| 143 |
|
| 144 |
Checkpoint loading verifies file size, SHA256, the submitted component schema,
|
| 145 |
collision-free key normalization, and exact runtime key/shape/dtype equality
|
|
|
|
| 27 |
|
| 28 |
The Mask Decoder reads Large, Medium, and Small Features in that order and
|
| 29 |
repeats the cycle three times. It produces predictions before the first layer
|
| 30 |
+
and after each of the nine layers. Class Feature Cross-Attention remains active
|
| 31 |
in all nine layers.
|
| 32 |
|
| 33 |
## Paper-to-code names
|
|
|
|
| 135 |
The compatibility boundary verifies each original file and maps its tensors to
|
| 136 |
the hierarchy above without rewriting the checkpoint.
|
| 137 |
|
| 138 |
+
The runtime SAID hierarchy excludes the Panoramic Decoder and the unused
|
| 139 |
+
recognition-classifier head. The submitted flat checkpoints still contain
|
| 140 |
+
those compatibility-only tensors. The loader first verifies the original file
|
| 141 |
+
and submitted schema, then maps only the active runtime tensors. The temporal
|
| 142 |
+
Class Feature Encoder backbone and every Class Feature Cross-Attention layer
|
| 143 |
+
remain active.
|
| 144 |
|
| 145 |
Checkpoint loading verifies file size, SHA256, the submitted component schema,
|
| 146 |
collision-free key normalization, and exact runtime key/shape/dtype equality
|
docs/training.md
CHANGED
|
@@ -1,136 +1,136 @@
|
|
| 1 |
# Training
|
| 2 |
|
| 3 |
-
|
| 4 |
-
training workflow:
|
| 5 |
|
| 6 |
-
```
|
| 7 |
-
|
| 8 |
-
→ retain Audio2Sph encoder
|
| 9 |
-
→ remove Panoramic Decoder
|
| 10 |
-
→ attach Sph2Imaging
|
| 11 |
-
→ train complete SAID on SourceBank
|
| 12 |
-
→ fine-tune SAID on DCASE
|
| 13 |
```
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
the matching complete paper checkpoint. The loader extracts the matching PaSST
|
| 33 |
-
or AudioMAE temporal feature tensors directly, so no separate Class Feature
|
| 34 |
-
Encoder asset is required.
|
| 35 |
|
| 36 |
```bash
|
| 37 |
-
said train --config configs/training/audio2sph.yaml
|
| 38 |
-
said train --config configs/training/sourcebank_passt.yaml
|
| 39 |
said train --config configs/training/dcase_passt.yaml
|
| 40 |
```
|
| 41 |
|
| 42 |
-
Replace `passt` with `audiomae`
|
| 43 |
-
variant. These reference recipes are immediately runnable because their
|
| 44 |
-
initialization fields point to published checkpoint assets. To carry a newly
|
| 45 |
-
trained model through the complete three-part workflow, set the next recipe's
|
| 46 |
-
initialization field to the preceding run output:
|
| 47 |
-
|
| 48 |
-
The `../../...` values below are resolved relative to the corresponding file
|
| 49 |
-
under `configs/training/`.
|
| 50 |
|
| 51 |
-
|
| 52 |
-
|---|---|---|
|
| 53 |
-
| `sourcebank_passt.yaml` or `sourcebank_audiomae.yaml` | `load_audio2sph_ckpt` | `../../runs/audio2sph_pretraining/latest.ema.ckpt` |
|
| 54 |
-
| `dcase_passt.yaml` | `load_said_ckpt` | `../../runs/said_sourcebank_passt/latest.ema.ckpt` |
|
| 55 |
-
| `dcase_audiomae.yaml` | `load_said_ckpt` | `../../runs/said_sourcebank_audiomae/latest.ema.ckpt` |
|
| 56 |
|
| 57 |
-
The
|
| 58 |
-
through `load_class_feature_encoder_ckpt`. Its encoder type must match the
|
| 59 |
-
recipe's `class_feature_encoder` value. The default initialization assets are:
|
| 60 |
|
| 61 |
```text
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
-> PaSST Class Feature Encoder initialization or complete DCASE fine-tuning
|
| 66 |
```
|
| 67 |
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
Every official paper checkpoint is downloaded and verified when its canonical
|
| 74 |
-
project path is first used. Edit a `load_*_ckpt` field to select an explicit
|
| 75 |
-
local asset, or set `SAID_CHECKPOINT_BASE_URL` to use an alternative release
|
| 76 |
-
mirror.
|
| 77 |
-
|
| 78 |
-
The paper checkpoint used a 122,359-row internal SourceBank index with SHA256
|
| 79 |
-
`489f2405025d64f087a76a753cb0fae1051e91df00236ae2285ca2046d664535`:
|
| 80 |
-
43,832 VCTK rows, 70,416 MUSDB18-HQ rows, 4,672 FSD50K rows, and 3,439
|
| 81 |
-
verified FSDKaggle2018 rows. That provenance index is not distributed. The
|
| 82 |
-
public SourceBank schema is a rights-aware reconstruction interface for audio
|
| 83 |
-
obtained by each user; it is not a byte-for-byte copy of the internal index.
|
| 84 |
-
Checkpoint-level metric reproduction uses the versioned paper checkpoints.
|
| 85 |
-
|
| 86 |
-
Audio2Sph and SourceBank training validate deterministic held-out generated
|
| 87 |
-
batches and select EMA weights by minimum validation loss. DCASE fine-tuning
|
| 88 |
-
does not use the development-test recordings for training-time model
|
| 89 |
-
selection; its configured endpoint and retained milestones are evaluated after
|
| 90 |
-
training. The current state is written to `latest.ema.ckpt`, and the complete
|
| 91 |
-
resumable state to `latest.training.pt`. Validation-enabled recipes also write
|
| 92 |
-
`best.ema.ckpt` and `best.json`. Retained milestone steps include both EMA and
|
| 93 |
-
training-state checkpoints. `latest` is the default handoff between training
|
| 94 |
-
phases; `best` is a validation diagnostic when validation is enabled.
|
| 95 |
-
|
| 96 |
-
The terminal reports concise step, loss, learning-rate, throughput, ETA,
|
| 97 |
-
validation, and checkpoint status. Complete loss components and
|
| 98 |
-
machine-readable records remain in the run's `metrics.jsonl`.
|
| 99 |
-
|
| 100 |
-
Online Scene Generation uses the renderer dependencies:
|
| 101 |
|
| 102 |
```bash
|
| 103 |
pip install -e '.[render]'
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
```
|
| 105 |
|
| 106 |
-
The
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
[Data](data.md) defines the DCASE, VCTK, and SourceBank
|
| 113 |
-
interfaces.
|
| 114 |
|
| 115 |
-
|
|
|
|
|
|
|
| 116 |
|
| 117 |
```bash
|
| 118 |
-
said
|
| 119 |
-
|
|
|
|
| 120 |
```
|
| 121 |
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
excludes the Panoramic Decoder when assembling complete SAID.
|
| 127 |
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
does not merge adjacent official label frames.
|
| 132 |
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Training
|
| 2 |
|
| 3 |
+
All released training routes use one command:
|
|
|
|
| 4 |
|
| 5 |
+
```bash
|
| 6 |
+
said train --config configs/training/<recipe>.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
```
|
| 8 |
|
| 9 |
+
Before running a recipe, set the paths it needs in `configs/data.yaml`. Each
|
| 10 |
+
recipe is an independent entry point: it loads the published initialization
|
| 11 |
+
listed in its YAML unless that path is changed. Running one recipe does not
|
| 12 |
+
automatically change the initialization of another recipe.
|
| 13 |
+
|
| 14 |
+
## Choose a route
|
| 15 |
+
|
| 16 |
+
| Goal | Recipe | Local data required | Published initialization |
|
| 17 |
+
|---|---|---|---|
|
| 18 |
+
| Fine-tune SAID (PaSST) on DCASE | `dcase_passt.yaml` | DCASE development audio and labels | `said_passt.ckpt` |
|
| 19 |
+
| Fine-tune SAID (AudioMAE) on DCASE | `dcase_audiomae.yaml` | DCASE development audio and labels | `said_audiomae.ckpt` |
|
| 20 |
+
| Train SAID (PaSST) with SourceBank | `sourcebank_passt.yaml` | SourceBank manifest and local audio | `audio2sph.ckpt` and the PaSST Class Feature Encoder from `said_passt.ckpt` |
|
| 21 |
+
| Train SAID (AudioMAE) with SourceBank | `sourcebank_audiomae.yaml` | SourceBank manifest and local audio | `audio2sph.ckpt` and the AudioMAE Class Feature Encoder from `said_audiomae.ckpt` |
|
| 22 |
+
| Train Audio2Sph + Panoramic Decoder | `audio2sph.yaml` | Prepared VCTK v0.80 | none |
|
| 23 |
+
|
| 24 |
+
The quickest training check is DCASE fine-tuning. After setting
|
| 25 |
+
`dcase_recordings.root` in `configs/data.yaml`, run:
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
```bash
|
|
|
|
|
|
|
| 28 |
said train --config configs/training/dcase_passt.yaml
|
| 29 |
```
|
| 30 |
|
| 31 |
+
Replace `passt` with `audiomae` to use SAID (AudioMAE).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
## Complete paper workflow
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
The paper training workflow is:
|
|
|
|
|
|
|
| 36 |
|
| 37 |
```text
|
| 38 |
+
Audio2Sph pretraining
|
| 39 |
+
→ complete SAID training with SourceBank and Online Scene Generation
|
| 40 |
+
→ DCASE fine-tuning
|
|
|
|
| 41 |
```
|
| 42 |
|
| 43 |
+
### 1. Train Audio2Sph
|
| 44 |
+
|
| 45 |
+
Install the Online Scene Generation dependencies, set the VCTK input and
|
| 46 |
+
prepared-output paths, prepare VCTK once, and then start training:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
```bash
|
| 49 |
pip install -e '.[render]'
|
| 50 |
+
|
| 51 |
+
# Set simulated_scenes.vctk.source_root and prepared_root in configs/data.yaml.
|
| 52 |
+
said prepare --config configs/training/audio2sph.yaml
|
| 53 |
+
said train --config configs/training/audio2sph.yaml
|
| 54 |
```
|
| 55 |
|
| 56 |
+
The preparation step converts VCTK v0.80 into the validated two-second input
|
| 57 |
+
used by the recipe. The training recipe runs 2.5 million optimizer steps with
|
| 58 |
+
batch size one and writes Audio2Sph together with its training-time Panoramic
|
| 59 |
+
Decoder.
|
| 60 |
+
|
| 61 |
+
### 2. Train complete SAID with SourceBank
|
|
|
|
|
|
|
| 62 |
|
| 63 |
+
Set `simulated_scenes.sourcebank.manifest` and
|
| 64 |
+
`simulated_scenes.sourcebank.source_audio_root` in `configs/data.yaml`, then
|
| 65 |
+
run one Class Feature Encoder route:
|
| 66 |
|
| 67 |
```bash
|
| 68 |
+
said train --config configs/training/sourcebank_passt.yaml
|
| 69 |
+
# or
|
| 70 |
+
said train --config configs/training/sourcebank_audiomae.yaml
|
| 71 |
```
|
| 72 |
|
| 73 |
+
This route keeps the Audio2Sph encoder, removes the Panoramic Decoder, attaches
|
| 74 |
+
Sph2Imaging, and trains complete SAID on generated two-second scenes. It uses
|
| 75 |
+
exact 21-frame training targets. [Data](data.md) defines the SourceBank
|
| 76 |
+
manifest and permission contract.
|
|
|
|
| 77 |
|
| 78 |
+
### 3. Fine-tune complete SAID on DCASE
|
| 79 |
+
|
| 80 |
+
Set `dcase_recordings.root` in `configs/data.yaml`, then run the matching
|
| 81 |
+
recipe:
|
| 82 |
+
|
| 83 |
+
```bash
|
| 84 |
+
said train --config configs/training/dcase_passt.yaml
|
| 85 |
+
# or
|
| 86 |
+
said train --config configs/training/dcase_audiomae.yaml
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
DCASE fine-tuning consumes 20 official half-open 10 Hz frames per two-second
|
| 90 |
+
sample and discards only the detector endpoint during loss computation. It
|
| 91 |
does not merge adjacent official label frames.
|
| 92 |
|
| 93 |
+
## Pass a newly trained model to the next route
|
| 94 |
+
|
| 95 |
+
The published recipes start from published checkpoints. To continue a newly
|
| 96 |
+
trained workflow, edit the next recipe before launching it:
|
| 97 |
+
|
| 98 |
+
| Next recipe | Field to change | Example preceding output |
|
| 99 |
+
|---|---|---|
|
| 100 |
+
| `sourcebank_passt.yaml` or `sourcebank_audiomae.yaml` | `load_audio2sph_ckpt` | `../../runs/audio2sph_pretraining/latest.ema.ckpt` |
|
| 101 |
+
| `dcase_passt.yaml` | `load_said_ckpt` | `../../runs/said_sourcebank_passt/latest.ema.ckpt` |
|
| 102 |
+
| `dcase_audiomae.yaml` | `load_said_ckpt` | `../../runs/said_sourcebank_audiomae/latest.ema.ckpt` |
|
| 103 |
+
|
| 104 |
+
The SourceBank recipes also use `load_class_feature_encoder_ckpt` to extract
|
| 105 |
+
the selected frozen Class Feature Encoder. Its type must match
|
| 106 |
+
`class_feature_encoder: passt` or `class_feature_encoder: audiomae`.
|
| 107 |
+
|
| 108 |
+
Canonical published paths under `checkpoints/` are downloaded and verified on
|
| 109 |
+
first use. Any other path is treated as an explicit local checkpoint.
|
| 110 |
+
|
| 111 |
+
## Checkpoints and resume
|
| 112 |
+
|
| 113 |
+
Each run writes into its configured `training.output_directory`:
|
| 114 |
+
|
| 115 |
+
| File | Purpose |
|
| 116 |
+
|---|---|
|
| 117 |
+
| `latest.ema.ckpt` | Latest model weights; use this or a retained EMA milestone to initialize another recipe |
|
| 118 |
+
| `latest.training.pt` | Model, optimizer, scheduler, random state, step, and validation state for exact resume |
|
| 119 |
+
| `best.ema.ckpt`, `best.json` | Lowest validation loss when validation is enabled |
|
| 120 |
+
| `step-*.ema.ckpt`, `step-*.training.pt` | Retained milestones at `keep_every_steps` |
|
| 121 |
+
| `metrics.jsonl` | Complete machine-readable training and validation records |
|
| 122 |
+
|
| 123 |
+
Rerunning the same command resumes `latest.training.pt` automatically. Use
|
| 124 |
+
`--resume PATH` only to select another `.training.pt` from the same training
|
| 125 |
+
recipe and the same data configuration. The trainer verifies a fingerprint of
|
| 126 |
+
both YAML files before restoring the optimizer and random state.
|
| 127 |
+
|
| 128 |
+
Use a flat `.ema.ckpt` through `load_audio2sph_ckpt` or `load_said_ckpt` when
|
| 129 |
+
moving between routes. Validation-enabled Audio2Sph and SourceBank recipes
|
| 130 |
+
record `best.ema.ckpt`, while the handoff examples above deliberately use the
|
| 131 |
+
latest completed state. DCASE fine-tuning leaves validation disabled so the
|
| 132 |
+
development-test recordings remain reserved for full-recording evaluation.
|
| 133 |
+
|
| 134 |
+
The terminal reports step, loss, learning rate, throughput, ETA, validation,
|
| 135 |
+
and checkpoint events. [Configuration](configuration.md) defines every recipe
|
| 136 |
+
field; [Data](data.md) defines the required dataset layouts.
|