Other
IN03X commited on
Commit
177e832
·
verified ·
1 Parent(s): a4c06f0

Release Audio2Sph-L 543k weights and document four-second SourceBank generation

Browse files
CITATION.cff CHANGED
@@ -9,7 +9,7 @@ authors:
9
  given-names: Runbang
10
  repository-code: https://github.com/IN03X/SAID
11
  preferred-citation:
12
- type: article
13
  title: >-
14
  SAID: Semantic Acoustic Imaging Detector for Sound Event Localization and
15
  Detection
@@ -22,11 +22,16 @@ preferred-citation:
22
  given-names: Yin
23
  - family-names: Kong
24
  given-names: Qiuqiang
25
- status: preprint
 
 
 
 
 
26
  identifiers:
27
  - type: other
28
  value: arXiv:2609.31492
29
  description: arXiv identifier
30
- url: https://arxiv.org/abs/2609.31492
31
- notes: Accepted at the DCASE 2026 Workshop
32
  year: 2026
 
9
  given-names: Runbang
10
  repository-code: https://github.com/IN03X/SAID
11
  preferred-citation:
12
+ type: conference-paper
13
  title: >-
14
  SAID: Semantic Acoustic Imaging Detector for Sound Event Localization and
15
  Detection
 
22
  given-names: Yin
23
  - family-names: Kong
24
  given-names: Qiuqiang
25
+ collection-title: Proceedings of the 11th Workshop on Detection and Classification of Acoustic Scenes and Events (DCASE 2026)
26
+ start: 136
27
+ end: 140
28
+ month: 10
29
+ doi: 10.5281/zenodo.22954971
30
+ isbn: 979-8-234-25461-0
31
  identifiers:
32
  - type: other
33
  value: arXiv:2609.31492
34
  description: arXiv identifier
35
+ url: https://dcase.community/workshop2026/proceedings#headingwang2026
36
+ notes: The DOI identifies the complete workshop proceedings; this paper appears on pages 136–140. The preprint is available at https://arxiv.org/abs/2609.31492.
37
  year: 2026
LICENSES/TAU-SRIR.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2022 Tampere University and its licensors
2
+ All rights reserved.
3
+
4
+ Permission is hereby granted, without written agreement and without license or royalty fees, to use and copy the TAU Spatial Room Impulse Response Database (“Work”) described in this document and composed of audio and metadata. This grant is only for experimental and non-commercial purposes, provided that the copyright notice in its entirety appear in all copies of this Work, and the original source of this Work, (Audio Research Group at Tampere University), is acknowledged in any publication that reports research using this Work.
5
+
6
+ Any commercial use of the Work or any part thereof is strictly prohibited.
7
+
8
+ Commercial use include, but is not limited to:
9
+ - selling or reproducing the Work
10
+ - selling or distributing the results or content achieved by use of the Work
11
+ - providing services by using the Work.
12
+
13
+ IN NO EVENT SHALL TAMPERE UNIVERSITY OR ITS LICENSORS BE LIABLE TO ANY PARTY
14
+ FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS WORK AND ITS DOCUMENTATION, EVEN IF TAMPERE UNIVERSITY OR ITS LICENSORS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15
+
16
+ TAMPERE UNIVERSITY AND ALL ITS LICENSORS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE WORK PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE TAMPERE UNIVERSITY HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
README.md CHANGED
@@ -14,6 +14,7 @@ pipeline_tag: other
14
  <a href="https://huggingface.co/IN03X/SAID"><img src="https://img.shields.io/badge/Hugging%20Face-FFD21E?style=flat-square" alt="Hugging Face"></a>
15
  <a href="https://dcase.community/challenge2026/task-semantic-acoustic-imaging-for-sound-event-localization-and-detection-from-spatial-audio-and-audiovisual-scenes-results"><img src="https://img.shields.io/badge/DCASE2026%20Results-1F7A4D?style=flat-square" alt="DCASE2026 Results"></a>
16
  <a href="https://arxiv.org/abs/2609.31492"><img src="https://img.shields.io/badge/arXiv-2609.31492-B31B1B?style=flat-square" alt="arXiv"></a>
 
17
  </p>
18
 
19
  <p align="center">
@@ -22,7 +23,7 @@ pipeline_tag: other
22
 
23
  ## Overview
24
 
25
- Accepted at the DCASE 2026 Workshop.
26
 
27
  SAID predicts a separate **labeled acoustic map** for every active sound source
28
  from four-channel spatial audio. Each 180 × 360 map represents the source
@@ -34,6 +35,21 @@ paper.
34
 
35
  Details: [Model Architecture](docs/model_architecture.md).
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  ## Demos
38
 
39
  The following 20-second examples show SAID (PaSST) and Audio2Sph + Panoramic
@@ -185,7 +201,8 @@ the included adapters:
185
 
186
  - DCASE2026 Task 3 recordings and labels for fine-tuning and evaluation;
187
  - VCTK v0.80 for Audio2Sph pretraining;
188
- - an authorized SourceBank manifest for class-labeled Online Scene Generation.
 
189
 
190
  Details: [Training](docs/training.md), [Data](docs/data.md), and
191
  [Configuration](docs/configuration.md).
@@ -198,6 +215,7 @@ Details: [Training](docs/training.md), [Data](docs/data.md), and
198
  - [Configuration](docs/configuration.md)
199
  - [Data](docs/data.md)
200
  - [Model Architecture](docs/model_architecture.md)
 
201
  - [Compression](docs/compression.md), an optional DCASE JSON
202
  post-processing utility
203
 
@@ -223,16 +241,19 @@ fine-tuned derivatives, is not permitted under the weights license.
223
  If you use SAID, please cite:
224
 
225
  ```bibtex
226
- @article{wang2026said,
227
- title = {{SAID}: Semantic Acoustic Imaging Detector for Sound Event
228
- Localization and Detection},
229
- author = {Wang, Runbang and Liang, Zining and Cao, Yin and Kong, Qiuqiang},
230
- year = {2026},
231
- eprint = {2609.31492},
232
- archivePrefix = {arXiv},
233
- primaryClass = {eess.AS},
234
- url = {https://arxiv.org/abs/2609.31492},
235
- note = {Accepted at the DCASE 2026 Workshop}
 
 
 
236
  }
237
  ```
238
 
@@ -248,4 +269,4 @@ CUHK. Detailed source revisions and notices are provided in
248
  [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
249
 
250
  This work was supported by the Innovation and Technology Fund (ITF), Hong Kong,
251
- under Project ITS/301/24.
 
14
  <a href="https://huggingface.co/IN03X/SAID"><img src="https://img.shields.io/badge/Hugging%20Face-FFD21E?style=flat-square" alt="Hugging Face"></a>
15
  <a href="https://dcase.community/challenge2026/task-semantic-acoustic-imaging-for-sound-event-localization-and-detection-from-spatial-audio-and-audiovisual-scenes-results"><img src="https://img.shields.io/badge/DCASE2026%20Results-1F7A4D?style=flat-square" alt="DCASE2026 Results"></a>
16
  <a href="https://arxiv.org/abs/2609.31492"><img src="https://img.shields.io/badge/arXiv-2609.31492-B31B1B?style=flat-square" alt="arXiv"></a>
17
+ <a href="https://dcase.community/workshop2026/proceedings#headingwang2026"><img src="https://img.shields.io/badge/DCASE2026%20Paper-1F7A4D?style=flat-square" alt="DCASE2026 Paper"></a>
18
  </p>
19
 
20
  <p align="center">
 
23
 
24
  ## Overview
25
 
26
+ Published in the [DCASE 2026 Workshop proceedings](https://dcase.community/workshop2026/proceedings#headingwang2026), pp. 136–140.
27
 
28
  SAID predicts a separate **labeled acoustic map** for every active sound source
29
  from four-channel spatial audio. Each 180 × 360 map represents the source
 
35
 
36
  Details: [Model Architecture](docs/model_architecture.md).
37
 
38
+ ## Updates
39
+
40
+ ### 2026-11-11 — Audio2Sph-L
41
+
42
+ Audio2Sph-L adds a **13-class output head** alongside the Any head and
43
+ extends the audio input from **2 seconds to 4 seconds**. This extension is
44
+ separate from the paper models and results. **SAID-L connects Audio2Sph-L
45
+ to Sph2Imaging**; training code is included, with no pretrained SAID-L weights.
46
+ Audio2Sph-L [pretrained weights](https://huggingface.co/IN03X/SAID/blob/main/audio2sph_l.ckpt)
47
+ are available. Its four-second data generator adds moving sources, same-class
48
+ crossings and measured room responses to the paper models' two-second static
49
+ scenes. Both L models use this generator for SourceBank training.
50
+
51
+ Details: [Audio2Sph-L](docs/audio2sph_l.md).
52
+
53
  ## Demos
54
 
55
  The following 20-second examples show SAID (PaSST) and Audio2Sph + Panoramic
 
201
 
202
  - DCASE2026 Task 3 recordings and labels for fine-tuning and evaluation;
203
  - VCTK v0.80 for Audio2Sph pretraining;
204
+ - VCTK, MUSDB18-HQ, FSD50K and FSDKaggle2018 for class-labeled Online Scene
205
+ Generation; `said prepare` builds the SourceBank index from your downloads.
206
 
207
  Details: [Training](docs/training.md), [Data](docs/data.md), and
208
  [Configuration](docs/configuration.md).
 
215
  - [Configuration](docs/configuration.md)
216
  - [Data](docs/data.md)
217
  - [Model Architecture](docs/model_architecture.md)
218
+ - [Audio2Sph-L](docs/audio2sph_l.md), the 2026-11-11 extension
219
  - [Compression](docs/compression.md), an optional DCASE JSON
220
  post-processing utility
221
 
 
241
  If you use SAID, please cite:
242
 
243
  ```bibtex
244
+ @inproceedings{wang2026said,
245
+ title = {{SAID}: Semantic Acoustic Imaging Detector for Sound Event
246
+ Localization and Detection},
247
+ author = {Wang, Runbang and Liang, Zining and Cao, Yin and Kong, Qiuqiang},
248
+ booktitle = {Proceedings of the 11th Workshop on Detection and Classification
249
+ of Acoustic Scenes and Events (DCASE 2026)},
250
+ address = {Boston, USA},
251
+ month = oct,
252
+ year = {2026},
253
+ pages = {136--140},
254
+ isbn = {979-8-234-25461-0},
255
+ doi = {10.5281/zenodo.22954971},
256
+ url = {https://dcase.community/workshop2026/proceedings#headingwang2026}
257
  }
258
  ```
259
 
 
269
  [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
270
 
271
  This work was supported by the Innovation and Technology Fund (ITF), Hong Kong,
272
+ under Project ITS/301/24.
SHA256SUMS CHANGED
@@ -1,3 +1,4 @@
1
  85b72bd4a0749dd4ca080ddea30eba68a903af465d916408a03e21912609ca1b said_passt.ckpt
2
  018f9d05bfa681456334811abe6e62c59331a0a8f4313eb763e5c32b0148c626 said_audiomae.ckpt
3
  bd4c2c44e24d4c207785a46cfc95efffc3f9a7a9a357d4563553a886be0b917b audio2sph.ckpt
 
 
1
  85b72bd4a0749dd4ca080ddea30eba68a903af465d916408a03e21912609ca1b said_passt.ckpt
2
  018f9d05bfa681456334811abe6e62c59331a0a8f4313eb763e5c32b0148c626 said_audiomae.ckpt
3
  bd4c2c44e24d4c207785a46cfc95efffc3f9a7a9a357d4563553a886be0b917b audio2sph.ckpt
4
+ d4992ee47c971526bae5499e6272370526565a30ecee50ececdc589cf432df99 audio2sph_l.ckpt
audio2sph_l.ckpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4992ee47c971526bae5499e6272370526565a30ecee50ececdc589cf432df99
3
+ size 147306278
docs/audio2sph_l.md ADDED
@@ -0,0 +1,275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Audio2Sph-L and SAID-L
2
+
3
+ **2026-11-11 update — extension to the paper models.**
4
+
5
+ Audio2Sph-L is an additional model developed after the paper experiments.
6
+ The paper's Audio2Sph, SAID-PaSST and SAID-AudioMAE remain unchanged.
7
+
8
+ The main changes are an additional 13-class output head alongside the Any
9
+ head and an increase in input duration from 2 seconds to 4 seconds.
10
+ Audio2Sph-L code and pretrained weights are available. SAID-L has training
11
+ code but no pretrained full-model weights or reported performance results.
12
+
13
+ ## Model differences
14
+
15
+ | | Audio2Sph with panoramic decoder | Audio2Sph-L |
16
+ |---|---|---|
17
+ | Input | Four-channel audio, 48 kHz, 2 seconds | Four-channel audio, 48 kHz, 4 seconds |
18
+ | Spherical features | 16 channels on a 45 × 90 grid | 128 channels on a 45 × 90 grid |
19
+ | Feature formation | Separate attention at three encoder scales, followed by summation | Joint multi-scale attention with eight spatiotemporal refinement blocks |
20
+ | Output decoder | Shallow spatial decoder | Separate spatiotemporal residual decoders for Any and classes |
21
+ | Output maps | One class-agnostic Any map at 180 × 360 | One Any map and 13 DCASE class maps at 45 × 90 |
22
+
23
+ The L model uses a 256-channel internal spherical state before projecting
24
+ to the 128-channel exported features. Its Any and class decoders have six
25
+ and eight residual blocks, respectively. It predicts class maps directly
26
+ from audio, without a PaSST or AudioMAE Class Feature Encoder.
27
+
28
+ Each class map represents the union of sources of that class. It is not a
29
+ list of separately identified source instances. The Any map represents
30
+ activity across all classes.
31
+
32
+ ## Training supervision
33
+
34
+ Audio2Sph-L uses the original multi-loss training objective:
35
+
36
+ - Class maps: weighted binary cross-entropy and Dice on active class maps.
37
+ - Any map: weighted binary cross-entropy and Dice on all frames.
38
+ - Wrong-class penalty and class-margin penalty, each with weight 0.25.
39
+
40
+ For binary cross-entropy, pixels with positive soft targets have weight 30;
41
+ other pixels have weight 1. Each term is normalized by its total pixel
42
+ weight. The class-margin parameter is 0.25. The Any target is the maximum
43
+ of the 13 class targets at each pixel.
44
+
45
+ For a four-second training clip, the network produces 41 temporal positions.
46
+ SourceBank and prepared-scene training align logits to the 40 target frames by linear interpolation
47
+ with `align_corners=False`, before applying the losses.
48
+
49
+ The historical L pretraining data include static, extended and moving sources, same-class
50
+ crossing sources, and measured room responses. This differs from the
51
+ original two-second static-scene recipe.
52
+
53
+ ## Relationship to SAID
54
+
55
+ Audio2Sph-L is a standalone model. Its feature dimensions differ from the
56
+ paper Audio2Sph, so its checkpoint is not a drop-in initialization for the
57
+ published SAID models. SAID-L connects its 128-channel spherical features
58
+ directly to Sph2Imaging, whose input convolution accepts 128 rather than
59
+ 16 channels. The instance decoder, Class Feature Encoder (PaSST or AudioMAE),
60
+ and source-instance losses follow SAID. The pretrained Any and class-map
61
+ heads are retained for checkpoint compatibility but are frozen and skipped
62
+ in SAID-L; they do not replace the instance decoder.
63
+
64
+ SAID-L model and training code are included. No pretrained SAID-L checkpoint
65
+ or performance results are provided.
66
+
67
+ ## Train Audio2Sph-L with SourceBank
68
+
69
+ The default training route uses SourceBank and four-second simulated scenes.
70
+ Install `pip install -e '.[render]'`, download the source datasets following
71
+ [Data](data.md), and set the `sourcebank` and `renderer` paths and dataset authorizations in
72
+ `configs/data_sourcebank_l.yaml`. Then run:
73
+
74
+ ```bash
75
+ said prepare --config configs/training/audio2sph_l.yaml
76
+ said train --config configs/training/audio2sph_l.yaml
77
+ ```
78
+
79
+ `prepare` builds the SourceBank index, independent source-identity train/validation
80
+ partitions, Eigenmike responses and the TAU response subset. `train` renders four-second audio and
81
+ 13-class spatial targets online; no private CSV or prepared NPZ is required.
82
+ The default starts from random weights and saves to `runs/audio2sph_l/`.
83
+ Set `load_audio2sph_ckpt` to a local L checkpoint to initialize from weights.
84
+
85
+ The supplied learning rates (`audio2sph_learning_rate: 1e-6` and
86
+ `learning_rate: 1e-5`) and 100,000-step budget are starting settings, not a
87
+ validated from-scratch reproduction of the historical 543,000-step model.
88
+ Loading weights initializes a new optimizer; `--resume` restores a saved
89
+ training state, including its optimizer and step.
90
+
91
+ The four-second renderer includes static point sources, extended sources,
92
+ measured-room point sources, moving sources and same-class crossings. Their
93
+ sampling probabilities are 26.67%, 26.67%, 26.67%, 15% and 5%, respectively.
94
+ It also applies source activity, source gains, room backgrounds and non-target
95
+ interference. Targets contain the target sources only; same-class maps use a
96
+ pixelwise maximum.
97
+
98
+ Additional inputs for `renderer`:
99
+
100
+ - `tau_root`: extracted [TAU Spatial Room Impulse Response Database](https://zenodo.org/records/6408611), containing `TAU-SRIR_DB/` and `TAU-SNoise_DB/`.
101
+ - `audioset_ontology`: [AudioSet ontology.json](https://github.com/audioset/ontology/blob/master/ontology.json), used to exclude target classes from FSD50K interference.
102
+ - `prepared_root`: a writable directory for generated assets. Keep it on a volume with sufficient free space.
103
+ - `training_use_authorized`: set to `true` after reviewing the TAU and source-dataset terms.
104
+
105
+ The supplied source pool uses the four downloadable SourceBank corpora described
106
+ in [Data](data.md). It does not reconstruct the historical checkpoint's exact
107
+ 500k-scene pool, which also included ASA2 stems and locally indexed AudioSet audio.
108
+
109
+ ## Resources and acceptance
110
+
111
+ Use batch size 1 initially. The four-second SourceBank routes have passed
112
+ short CUDA training, validation and checkpoint-saving checks on an RTX 4090
113
+ (24 GB), with two data workers. L forward computation uses BF16 on CUDA;
114
+ matching and losses use FP32. The CLI enables expandable CUDA allocations
115
+ unless `PYTORCH_CUDA_ALLOC_CONF` is already set. More workers increase CPU/RAM
116
+ usage, not GPU batch size; lower `training.num_workers` if resources are shared.
117
+
118
+ In our preparation check, generated SourceBank/TAU assets occupied about
119
+ 1.3 GiB, in addition to the downloaded corpora. Reserve several GiB for these
120
+ assets and additional space for retained model and optimizer checkpoints.
121
+ Online rendering varies by scene: same-class crossings and moving sources
122
+ can take longer than static sources. The progress bar measures completed
123
+ training steps, including data generation.
124
+
125
+ These checks establish runnable training, not convergence or reproduction
126
+ of the historical checkpoint's scores. CPU training is also supported.
127
+
128
+ ## Optional DCASE training / fine-tuning
129
+
130
+ Download DCASE audio and labels following [Data](data.md), then set
131
+ `dcase_recordings.root` in `configs/data_said_l.yaml`:
132
+
133
+ ```bash
134
+ said train --config configs/training/dcase_audio2sph_l.yaml
135
+ ```
136
+
137
+ This optional entry point loads `runs/audio2sph_l/latest.ema.ckpt` from the
138
+ SourceBank training above. Set `load_audio2sph_ckpt` to another local L
139
+ checkpoint if needed; setting it to `null` explicitly starts from random weights.
140
+ The loader builds the 13 class targets automatically by taking the pixelwise
141
+ maximum of valid source maps within each class. No CSV or NPZ conversion is
142
+ needed. DCASE's 40 official frames use the first 40 predictions of each
143
+ four-second clip; the endpoint prediction is excluded.
144
+
145
+ Use the same configuration for inference to retain this frame alignment:
146
+
147
+ ```bash
148
+ said infer recording.wav --config configs/training/dcase_audio2sph_l.yaml --checkpoint runs/audio2sph_l_dcase/latest.ema.ckpt
149
+ ```
150
+
151
+ The multi-term losses are retained. This DCASE training entry point is **not
152
+ a reproduction of the released Audio2Sph-L checkpoint's mixed synthetic-data
153
+ pretraining** described above. The five-family renderer is included; the
154
+ historical expanded source collection is not reconstructed by the public recipe.
155
+
156
+ ## Train SAID-L with SourceBank
157
+
158
+ After the Audio2Sph-L training above, the default SAID-L configuration loads
159
+ `runs/audio2sph_l/latest.ema.ckpt` and shares `configs/data_sourcebank_l.yaml`.
160
+ Run:
161
+
162
+ ```bash
163
+ said train --config configs/training/said_l.yaml
164
+ ```
165
+
166
+ For another Audio2Sph-L checkpoint, set `load_audio2sph_ckpt` in `said_l.yaml`.
167
+ For optional DCASE fine-tuning, use `configs/training/dcase_said_l.yaml` and
168
+ set `configs/data_said_l.yaml`. To fine-tune a complete SAID-L model, set
169
+ `load_said_ckpt` and clear both component initialization fields.
170
+
171
+ This trains a new Sph2Imaging decoder on four-second clips, initialized with
172
+ Audio2Sph-L and the frozen PaSST Class Feature Encoder from the paper checkpoint.
173
+ The latter downloads automatically. To use AudioMAE, change
174
+ `class_feature_encoder` to `audiomae` and `load_class_feature_encoder_ckpt` to
175
+ `../../checkpoints/said_audiomae.ckpt` in the same training configuration.
176
+ These are starting settings; long-training SAID-L performance has not been evaluated.
177
+ The pretrained Audio2Sph-L encoder uses `audio2sph_learning_rate`; the new
178
+ decoder uses `learning_rate`. The Class Feature Encoder remains frozen.
179
+ The SourceBank route supplies 40 source-map frames at 45 × 90. SAID-L
180
+ supervises its first 40 output frames and uses bilinear 180 × 360 targets
181
+ for the refinement loss. Standalone Audio2Sph-L retains its historical
182
+ 41-to-40 prediction interpolation and multi-term class/Any losses.
183
+
184
+ Training saves weights and resumable state under `runs/said_l/`.
185
+ Use the saved weights for inference:
186
+
187
+ ```bash
188
+ said infer recording.wav --config configs/training/said_l.yaml --checkpoint runs/said_l/latest.ema.ckpt
189
+ ```
190
+
191
+ SAID-L returns labeled source-instance maps in the same JSON format as SAID.
192
+ Use `said train --config configs/training/said_l.yaml --resume PATH` to restore
193
+ the complete training state. To start a new run from your SAID-L weights,
194
+ set `load_said_ckpt` to their path and set both component checkpoint fields
195
+ to `null`.
196
+
197
+ ## Inference and demos
198
+
199
+ To use weights from your own training, run:
200
+
201
+ ```bash
202
+ said infer recording.wav --config configs/training/audio2sph_l.yaml --checkpoint runs/audio2sph_l/latest.ema.ckpt
203
+ ```
204
+
205
+ The following commands automatically download the released pretrained
206
+ checkpoint to `checkpoints/audio2sph_l.ckpt` on first use:
207
+
208
+ ```bash
209
+ said demo --model audio2sph_l
210
+ said infer recording.wav --model audio2sph_l
211
+ ```
212
+
213
+ Input channel selection is the same as for SAID: the complete Eigenmike
214
+ recording or capsules `[6, 10, 26, 22]` in that order, using 1-based indices.
215
+ Long recordings are processed in four-second windows. The final window is
216
+ zero-padded; saved frames cover only the original recording duration.
217
+
218
+ The default JSON contains a dense `class_maps[13,45,90]` array and an
219
+ `any_map[45,90]` array per frame, at 10 frames per second. Class names and
220
+ axis names are included in the file. These are class-union maps, so this
221
+ format is distinct from SAID's source-instance DCASE JSON.
222
+
223
+ Rows use colatitude from 0° (up) to 180° (down), with 45 evenly spaced
224
+ positions. Columns use azimuth from 0° to 360°, with 90 evenly spaced
225
+ positions. Both axes include their endpoints, matching the training targets;
226
+ the first and last columns therefore address the same direction.
227
+
228
+ Add `--format npz` for compressed arrays or `--visual` for a video preview.
229
+ NPZ chunks contain `class_maps[T,13,45,90]` and `any_maps[T,45,90]`, with
230
+ frame offsets in `manifest.json`. Visualization enlarges maps to 180 × 360
231
+ for display; saved predictions retain the native 45 × 90 resolution.
232
+
233
+ ## Fine-tuning with prepared scenes
234
+
235
+ Install the training dependencies described in [Training](training.md).
236
+ Set `prepared_scenes.root` in `configs/data_l.yaml`, then run:
237
+
238
+ ```bash
239
+ said train --config configs/training/prepared_audio2sph_l.yaml
240
+ ```
241
+
242
+ The dataset directory contains `train/*.npz` and `validation/*.npz`.
243
+ Each file represents one four-second example and contains exactly:
244
+
245
+ | Array | Shape | Meaning |
246
+ |---|---|---|
247
+ | `audio` | `[4,192000]` | Float32 waveform, 48 kHz, capsule order above |
248
+ | `class_maps` | `[40,13,45,90]` | Float32 class-union targets in `[0,1]`, at 10 fps |
249
+
250
+ Class order follows [Data](data.md). Targets include frame activity; sources
251
+ of the same class are combined by a pixelwise maximum. The Any target is
252
+ derived during training. Use separate scenes for training and validation.
253
+ The supplied configuration loads `checkpoints/audio2sph_l.ckpt` and uses
254
+ the multi-loss supervision described above.
255
+
256
+ This interface supports fine-tuning on prepared scenes. The original L
257
+ training used a separate four-second scene-generation pipeline; the paper's
258
+ two-second Online Scene Generation recipe does not reproduce that dataset.
259
+ The default SourceBank entry point above provides online four-second generation.
260
+
261
+ ## Release status
262
+
263
+ The selected checkpoint is step **543,000** of the original multi-loss
264
+ training run. The public SourceBank routes have passed short training, validation
265
+ and checkpoint-saving checks for both L models. The checkpoint is available
266
+ on [Hugging Face](https://huggingface.co/IN03X/SAID/blob/main/audio2sph_l.ckpt).
267
+ Existing paper checkpoints and commands are unchanged.
268
+
269
+ The L source pools extend the paper data with ASA2 stems, AudioSet-indexed
270
+ recordings, TAU room responses/backgrounds, and additional FSD50K clips.
271
+ Source recordings are not included in this repository. Their terms remain
272
+ separate from the software license. The weights are provided for
273
+ non-commercial research under the same model-weight license as the paper
274
+ checkpoints. See the [checkpoint card](checkpoints/audio2sph_l.md) for
275
+ provenance and applicable notices.
docs/checkpoints/audio2sph_l.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Audio2Sph-L checkpoint
2
+
3
+ Released on 2026-11-11 as an extension to the paper models.
4
+
5
+ - File: [`audio2sph_l.ckpt`](https://huggingface.co/IN03X/SAID/blob/main/audio2sph_l.ckpt).
6
+ - Training step: 543,000; original multi-loss supervision, not the BCE-only variant.
7
+ - Input: four channels, 48 kHz, four seconds.
8
+ - Output: Any and 13 class-union maps at 45 × 90, plus 128-channel spherical features.
9
+ - Format: tensor-only state dictionary, 550 tensors, 147,306,278 bytes.
10
+ - SHA256: `d4992ee47c971526bae5499e6272370526565a30ecee50ececdc589cf432df99`.
11
+
12
+ This initializes Audio2Sph-L or the encoder of SAID-L, not the paper SAID
13
+ architecture. No pretrained complete SAID-L checkpoint is supplied.
14
+ See [Audio2Sph-L](../audio2sph_l.md) for inference and training.
15
+
16
+ ## Data and rights
17
+
18
+ The historical training source pool includes VCTK, MUSDB18-HQ, FSD50K,
19
+ FSDKaggle2018, ASA2 stems and AudioSet-indexed recordings, with measured
20
+ TAU room responses/backgrounds and additional FSD50K non-target interference.
21
+ The public data recipe uses the four directly downloadable SourceBank corpora
22
+ and the same five scene families; it does not reconstruct the full historical
23
+ source pool. No source recordings are distributed with these weights.
24
+
25
+ License: [SAID Model Weights Non-Commercial Research License 1.0](../../LICENSES/SAID-Model-Weights-NonCommercial-1.0.txt).
26
+ Copyright (c) 2026 Runbang Wang. The license grants only rights held by the
27
+ licensor and preserves applicable third-party terms.
28
+
29
+ Source attributions are supplied in
30
+ [`provenance/audio2sph_l_source_attributions.tsv`](https://huggingface.co/IN03X/SAID/blob/main/provenance/audio2sph_l_source_attributions.tsv).
31
+ ASA2's dataset card declares MIT, but does not provide a complete constituent
32
+ recording rights chain. AudioSet annotation licensing does not establish
33
+ rights to the indexed YouTube recordings. These provenance limitations are
34
+ disclosed; a non-commercial release is not a certification of all third-party rights.
35
+
36
+ We acknowledge the Audio Research Group at Tampere University for the
37
+ [TAU Spatial Room Impulse Response Database](https://zenodo.org/records/6408611).
38
+ Its [full notice](../../LICENSES/TAU-SRIR.txt) permits experimental,
39
+ non-commercial use and prohibits commercial distribution of results.
docs/configuration.md CHANGED
@@ -1,8 +1,10 @@
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
@@ -12,10 +14,10 @@ Every top-level field below is required:
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 |
@@ -29,6 +31,8 @@ The initialization combinations are:
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,
@@ -51,7 +55,7 @@ table also records the values used by the released recipes.
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 |
@@ -75,13 +79,21 @@ is enabled, `validate_every_steps` must also be a multiple of
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
 
1
  # Configuration
2
 
3
  `said train --config configs/training/<recipe>.yaml` reads a training recipe.
4
+ The recipe's `data_config` points to local dataset paths and scene settings:
5
+ `configs/data.yaml` for paper models, `configs/data_sourcebank_l.yaml` for
6
+ L simulation, or `configs/data_said_l.yaml` for optional L DCASE fine-tuning.
7
+ Relative paths are resolved from the
8
  file that contains them.
9
 
10
  ## Training recipe fields
 
14
  | Field | Accepted value | Purpose |
15
  |---|---|---|
16
  | `schema` | `said-config-v1` | Public configuration version |
17
+ | `preset` | `paper`, `audio2sph_l`, `said_l` | Architecture and objective settings; L presets match their model names |
18
+ | `model` | `said`, `audio2sph`, `audio2sph_l`, `said_l` | Training object |
19
  | `class_feature_encoder` | `passt`, `audiomae`, `null` | Class Feature Encoder; `null` for Audio2Sph |
20
+ | `data` | `dcase_recordings`, `simulated_scenes`, `prepared_scenes` | Selected data interface; prepared scenes are an optional Audio2Sph-L input |
21
  | `data_config` | path | Data configuration file |
22
  | `load_said_ckpt` | path, `null` | Complete SAID initialization |
23
  | `load_audio2sph_ckpt` | path, `null` | Audio2Sph initialization |
 
31
  | `said` | `dcase_recordings` | `load_said_ckpt` | Fine-tune a complete SAID model |
32
  | `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 |
33
  | `audio2sph` | `simulated_scenes` | none, or `load_audio2sph_ckpt` | Train Audio2Sph + Panoramic Decoder from the beginning or initialize the complete pretraining model |
34
+ | `audio2sph_l` | `simulated_scenes` | none, or `load_audio2sph_ckpt` | Four-second SourceBank training with Any and class-map supervision |
35
+ | `said_l` | `simulated_scenes` | Audio2Sph-L and Class Feature Encoder checkpoints | Assemble SAID-L and train on four-second SourceBank scenes |
36
 
37
  Complete-model initialization is mutually exclusive with component
38
  initialization. For complete SAID,
 
55
  | `seed` | route-specific integer | Model, sampling, and data-order seed |
56
  | `device` | `auto` | CUDA when available, otherwise CPU |
57
  | `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 |
58
+ | `audio2sph_learning_rate` | recipe-specific | Audio2Sph group in SourceBank SAID and all SAID-L recipes; backbone group in standalone Audio2Sph-L. Original Audio2Sph and paper DCASE recipes use `learning_rate` only |
59
  | `warmup_steps` | `1,000` | Linear warmup duration |
60
  | `minimum_learning_rate_ratio` | `0.1` | Final cosine-schedule ratio |
61
  | `ema_decay` | `0.999` | Exponential-moving-average decay |
 
79
  | `sourcebank_audiomae.yaml` | `audio2sph.ckpt`, AudioMAE tensors from `said_audiomae.ckpt`, and SourceBank | `runs/said_sourcebank_audiomae/` |
80
  | `dcase_passt.yaml` | `said_passt.ckpt` and DCASE recordings | `runs/said_dcase_fine_tuning_passt/` |
81
  | `dcase_audiomae.yaml` | `said_audiomae.ckpt` and DCASE recordings | `runs/said_dcase_fine_tuning_audiomae/` |
82
+ | `audio2sph_l.yaml` | SourceBank; four-second online simulation | `runs/audio2sph_l/` |
83
+ | `said_l.yaml` | Your `runs/audio2sph_l/latest.ema.ckpt`, PaSST tensors, and SourceBank | `runs/said_l/` |
84
+ | `dcase_audio2sph_l.yaml` | Your trained Audio2Sph-L and DCASE | `runs/audio2sph_l_dcase/` |
85
+ | `dcase_said_l.yaml` | Your trained SAID-L and DCASE | `runs/said_l_dcase/` |
86
 
87
+ The paper defaults make each paper recipe an independent published-model entry point.
88
  To carry newly trained weights forward, replace the next recipe's
89
  `load_audio2sph_ckpt` or `load_said_ckpt` with the preceding `.ema.ckpt`.
90
  [Training](training.md#pass-a-newly-trained-model-to-the-next-route) gives the
91
  exact handoff paths.
92
 
93
+ The L defaults instead connect the reader's preceding training output automatically.
94
+ L models always use four-second audio. See [Audio2Sph-L](audio2sph_l.md) for
95
+ renderer coverage and the optional prepared-scene interface.
96
+
97
  ## Checkpoint paths and resume
98
 
99
  Canonical published paths in the repository-root `checkpoints/` directory are
docs/data.md CHANGED
@@ -7,19 +7,48 @@ model or optimizer.
7
 
8
  ## Training data at a glance
9
 
10
- All local paths are configured once in `configs/data.yaml`. Absolute paths are
 
 
11
  accepted; relative paths are resolved from the directory containing that file.
12
 
13
  | Training recipe | Local data | Fields to set | Preparation or training command |
14
  |---|---|---|---|
15
  | DCASE fine-tuning | Extracted DCASE2026 Task 3 development audio and labels | `dcase_recordings.root` | `said train --config configs/training/dcase_passt.yaml` |
16
  | Audio2Sph pretraining | Original VCTK v0.80 corpus and an empty output directory | `simulated_scenes.vctk.source_root`, `simulated_scenes.vctk.prepared_root` | `said prepare --config configs/training/audio2sph.yaml` |
17
- | Complete SAID SourceBank training | Local class-labeled clips and a SourceBank manifest | `simulated_scenes.sourcebank.manifest`, `simulated_scenes.sourcebank.source_audio_root` | `said train --config configs/training/sourcebank_passt.yaml` |
 
18
 
19
  The AudioMAE recipes replace `passt` with `audiomae`. Each command validates
20
  only the local files used by its selected data adapter, so DCASE fine-tuning
21
  does not require VCTK or SourceBank files.
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  ## DCASE2026 recordings
24
 
25
  Obtain the DCASE2026 Task 3 Track A development data from the official
@@ -106,6 +135,74 @@ training validates that record before Online Scene Generation begins.
106
 
107
  ## SourceBank for complete SAID training
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  SourceBank is a local, license-aware index over clips obtained by each reader.
110
  Its public interface consists of a TSV or CSV manifest and an audio root.
111
  One practical layout is:
 
7
 
8
  ## Training data at a glance
9
 
10
+ Paper-model paths are configured in `configs/data.yaml`. L SourceBank training
11
+ uses `configs/data_sourcebank_l.yaml`; optional L DCASE fine-tuning uses
12
+ `configs/data_said_l.yaml`. Absolute paths are
13
  accepted; relative paths are resolved from the directory containing that file.
14
 
15
  | Training recipe | Local data | Fields to set | Preparation or training command |
16
  |---|---|---|---|
17
  | DCASE fine-tuning | Extracted DCASE2026 Task 3 development audio and labels | `dcase_recordings.root` | `said train --config configs/training/dcase_passt.yaml` |
18
  | Audio2Sph pretraining | Original VCTK v0.80 corpus and an empty output directory | `simulated_scenes.vctk.source_root`, `simulated_scenes.vctk.prepared_root` | `said prepare --config configs/training/audio2sph.yaml` |
19
+ | Complete SAID SourceBank training | Downloaded source corpora, or your own class-labeled collection | `simulated_scenes.sourcebank.manifest`, `simulated_scenes.sourcebank.source_audio_root` | `said prepare --config configs/training/sourcebank_passt.yaml`, then `said train` with the same config |
20
+ | Audio2Sph-L / SAID-L | SourceBank corpora, TAU room responses/backgrounds and AudioSet ontology | `sourcebank` and `renderer` in `configs/data_sourcebank_l.yaml` | `said prepare --config configs/training/audio2sph_l.yaml`; see [Audio2Sph-L](audio2sph_l.md#train-audio2sph-l-with-sourcebank) |
21
 
22
  The AudioMAE recipes replace `passt` with `audiomae`. Each command validates
23
  only the local files used by its selected data adapter, so DCASE fine-tuning
24
  does not require VCTK or SourceBank files.
25
 
26
+ ## How training data are generated
27
+
28
+ Download the required source datasets, configure their paths, then run
29
+ `said prepare` once and `said train`. Preparation builds reusable inputs;
30
+ training generates spatial mixtures and targets online rather than saving
31
+ every simulated recording.
32
+
33
+ | Route | What `prepare` builds | What `train` generates |
34
+ |---|---|---|
35
+ | Audio2Sph | Two-second VCTK clips and speaker split | Two-second static scenes with class-agnostic spatial supervision |
36
+ | SAID with SourceBank | A class-labeled index from VCTK, MUSDB18-HQ, FSD50K and FSDKaggle2018 | Two-second static scenes, including spatially extended sources, activity intervals and additive noise; source-instance maps and labels |
37
+ | Audio2Sph-L / SAID-L | SourceBank index, source-identity train/validation partitions, array responses, TAU response subset and non-target interference index | Four-second static point, extended, measured-room, moving and same-class crossing scenes; class-union maps for Audio2Sph-L or source-instance maps for SAID-L |
38
+
39
+ Both L models share the same prepared assets. L preparation additionally
40
+ requires the [TAU room-response/background dataset](https://zenodo.org/records/6408611)
41
+ and [AudioSet ontology](https://github.com/audioset/ontology/blob/master/ontology.json).
42
+ The ontology supplies class relationships for interference filtering; the
43
+ public recipe does not require downloading AudioSet recordings.
44
+
45
+ The released Audio2Sph-L weights were trained with a larger historical source
46
+ pool, also including ASA2 stems and AudioSet-indexed recordings. The public
47
+ four-corpus recipe provides the five scene families, but not an identical
48
+ copy of that historical source pool. See [Audio2Sph-L](audio2sph_l.md) for
49
+ sampling probabilities, targets and training commands. DCASE fine-tuning
50
+ uses real recordings and their labels directly, without this generation step.
51
+
52
  ## DCASE2026 recordings
53
 
54
  Obtain the DCASE2026 Task 3 Track A development data from the official
 
135
 
136
  ## SourceBank for complete SAID training
137
 
138
+ Download and extract these four datasets, including their metadata:
139
+
140
+ | Dataset | Official download | Files used by preparation |
141
+ |---|---|---|
142
+ | VCTK v0.80 | [Edinburgh](https://datashare.ed.ac.uk/handle/10283/2651) | `wav48/`, `speaker-info.txt` |
143
+ | MUSDB18-HQ | [Zenodo](https://doi.org/10.5281/zenodo.3338373) | `train/`, `test/`, including each track's stems |
144
+ | FSD50K | [Zenodo](https://doi.org/10.5281/zenodo.4060432) | Both audio splits, `FSD50K.ground_truth/`, `FSD50K.metadata/` |
145
+ | FSDKaggle2018 | [Zenodo](https://zenodo.org/records/2552860) | Both audio splits and `FSDKaggle2018.meta/` with post-competition labels |
146
+
147
+ Keep the extracted directories in this layout:
148
+
149
+ ```text
150
+ /path/to/source_audio/
151
+ ├── vctk/
152
+ │ ├── wav48/
153
+ │ └── speaker-info.txt
154
+ ├── musdb18hq/
155
+ │ ├── train/
156
+ │ └── test/
157
+ ├── fsd50k/
158
+ │ ├── FSD50K.dev_audio/
159
+ │ ├── FSD50K.eval_audio/
160
+ │ ├── FSD50K.ground_truth/
161
+ │ └��─ FSD50K.metadata/
162
+ └── fsdkaggle2018/
163
+ ├── FSDKaggle2018.audio_train/
164
+ ├── FSDKaggle2018.audio_test/
165
+ └── FSDKaggle2018.meta/
166
+ ```
167
+
168
+ In `configs/data.yaml` (paper models) or `configs/data_sourcebank_l.yaml`
169
+ (L models), edit the `sourcebank` block inside `simulated_scenes`:
170
+ set `source_audio_root` to this common parent, set the four paths under
171
+ `preparation.datasets`, and choose an unused output path for `manifest`.
172
+ After reviewing the dataset terms, set `preparation.training_use_authorized`
173
+ to `true`. Then run:
174
+
175
+ ```bash
176
+ said prepare --config configs/training/sourcebank_passt.yaml
177
+ said train --config configs/training/sourcebank_passt.yaml
178
+ ```
179
+
180
+ For Audio2Sph-L, use `configs/training/audio2sph_l.yaml` in both commands.
181
+ SAID-L shares that index and uses `configs/training/said_l.yaml` for training.
182
+ Before preparing either L model, also configure the TAU room-response dataset,
183
+ AudioSet ontology, prepared-assets directory and renderer authorization in
184
+ `configs/data_sourcebank_l.yaml`; see [Audio2Sph-L](audio2sph_l.md#train-audio2sph-l-with-sourcebank).
185
+
186
+ The paper SAID recipes load the published `checkpoints/audio2sph.ckpt` by
187
+ default. To use your own Audio2Sph training result instead, set
188
+ `load_audio2sph_ckpt` to `../../runs/audio2sph_pretraining/latest.ema.ckpt`
189
+ in the training YAML. Checkpoint paths are relative to that YAML file.
190
+
191
+ The command creates `sourcebank.tsv` or `sourcebank.csv` at the configured
192
+ path; you do not need a manifest from the authors or a custom conversion
193
+ script. The AudioMAE recipe uses the same prepared manifest. Preparation reads the
194
+ original files and creates an index; it does not copy the audio. It selects
195
+ the original recipe's training partition using speaker IDs for VCTK, track
196
+ names for MUSDB18-HQ, and event labels for FSD50K/FSDKaggle2018. This last
197
+ partition is label-based, not a claim of a source-disjoint validation set.
198
+ Clip end times use exact audio durations. The generated index is therefore
199
+ not byte-identical to the historical manifest described below.
200
+
201
+ For your own licensed collection, supply the manifest directly using the
202
+ following format. The two-second paper recipes can use it directly. L models
203
+ still require `said prepare` to build identity partitions and room-response
204
+ assets; each partition must cover all 13 classes.
205
+
206
  SourceBank is a local, license-aware index over clips obtained by each reader.
207
  Its public interface consists of a TSV or CSV manifest and an audio root.
208
  One practical layout is:
docs/inference.md CHANGED
@@ -19,6 +19,10 @@ Generate the class-agnostic Audio2Sph comparisons with:
19
  said demo --model audio2sph
20
  ```
21
 
 
 
 
 
22
  This writes `said_demo_output/audio2sph_demo_1.mp4` through
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
 
19
  said demo --model audio2sph
20
  ```
21
 
22
+ For the optional four-second, 13-class model, see
23
+ [Audio2Sph-L](audio2sph_l.md). Its class-union output format is documented
24
+ separately from the paper models below.
25
+
26
  This writes `said_demo_output/audio2sph_demo_1.mp4` through
27
  `audio2sph_demo_4.mp4`. Each video merges the official per-source Ground Truth
28
  maps by a pixelwise maximum on the left and shows the Audio2Sph + Panoramic
docs/training.md CHANGED
@@ -6,23 +6,26 @@ All released training routes use one command:
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
@@ -30,6 +33,13 @@ said train --config configs/training/dcase_passt.yaml
30
 
31
  Replace `passt` with `audiomae` to use SAID (AudioMAE).
32
 
 
 
 
 
 
 
 
33
  ## Complete paper workflow
34
 
35
  The paper training workflow is:
@@ -60,16 +70,22 @@ 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
@@ -124,6 +140,9 @@ 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
 
6
  said train --config configs/training/<recipe>.yaml
7
  ```
8
 
9
+ Before running a paper 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 | 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
+ | Train Audio2Sph-L with SourceBank | `audio2sph_l.yaml` | SourceBank audio and manifest; four-second scenes rendered during training | none |
24
+ | Train SAID-L with SourceBank | `said_l.yaml` | Same SourceBank and four-second renderer | Your trained Audio2Sph-L and the frozen Class Feature Encoder from a paper SAID checkpoint |
25
+ | Fine-tune L models on DCASE (optional) | `dcase_audio2sph_l.yaml` / `dcase_said_l.yaml` | DCASE development audio and labels | Set your trained model checkpoint |
26
 
27
+ To fine-tune a published paper model on DCASE, set
28
+ `dcase_recordings.root` in `configs/data.yaml`, then run:
29
 
30
  ```bash
31
  said train --config configs/training/dcase_passt.yaml
 
33
 
34
  Replace `passt` with `audiomae` to use SAID (AudioMAE).
35
 
36
+ For the four-second extensions, see [Audio2Sph-L and SAID-L](audio2sph_l.md).
37
+ Both L defaults use SourceBank and `configs/data_sourcebank_l.yaml`.
38
+ Audio2Sph-L uses class-union targets; SAID-L uses source-instance targets.
39
+ The optional `dcase_*_l.yaml` recipes read `configs/data_said_l.yaml`.
40
+ See the L document for the current renderer's coverage relative to the
41
+ historical pretrained checkpoint.
42
+
43
  ## Complete paper workflow
44
 
45
  The paper training workflow is:
 
70
 
71
  ### 2. Train complete SAID with SourceBank
72
 
73
+ Set the local dataset paths and permission declaration under
74
+ `simulated_scenes.sourcebank.preparation` in `configs/data.yaml`.
75
+ Build the manifest once, then choose a Class Feature Encoder route:
76
 
77
  ```bash
78
+ said prepare --config configs/training/sourcebank_passt.yaml
79
  said train --config configs/training/sourcebank_passt.yaml
80
  # or
81
  said train --config configs/training/sourcebank_audiomae.yaml
82
  ```
83
 
84
+ Both routes share the same SourceBank manifest. If you already have a manifest,
85
+ set `simulated_scenes.sourcebank.manifest` and `source_audio_root` directly;
86
+ the preparation step can be skipped. Dataset downloads, permissions and the
87
+ CSV fields are described in [Data](data.md).
88
+
89
  This route keeps the Audio2Sph encoder, removes the Panoramic Decoder, attaches
90
  Sph2Imaging, and trains complete SAID on generated two-second scenes. It uses
91
  exact 21-frame training targets. [Data](data.md) defines the SourceBank
 
140
  `--resume PATH` only to select another `.training.pt` from the same training
141
  recipe and the same data configuration. The trainer verifies a fingerprint of
142
  both YAML files before restoring the optimizer and random state.
143
+ Keep those configurations unchanged for resume, including `total_steps`.
144
+ To train beyond a completed budget, initialize a new run from its EMA weights
145
+ and choose a new output directory and budget; this starts a new optimizer.
146
 
147
  Use a flat `.ema.ckpt` through `load_audio2sph_ckpt` or `load_said_ckpt` when
148
  moving between routes. Validation-enabled Audio2Sph and SourceBank recipes
provenance/audio2sph_l_source_attributions.tsv ADDED
The diff for this file is too large to render. See raw diff