Add files using upload-large-folder tool
Browse files- .gitattributes +2 -0
- README.md +265 -3
- qa/test.jsonl +0 -0
- qa/train.jsonl +3 -0
- qa/valid.jsonl +3 -0
.gitattributes
CHANGED
|
@@ -61,3 +61,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 61 |
metadata/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
metadata/valid.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 63 |
metadata/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 61 |
metadata/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
metadata/valid.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 63 |
metadata/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
qa/valid.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
qa/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,265 @@
|
|
| 1 |
-
-
|
| 2 |
-
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SO-Dataset: Spatial FOA Audio with FSD63 Event Labels
|
| 2 |
+
|
| 3 |
+
SO-Dataset is a large-scale spatial audio dataset in first-order ambisonics (FOA) format. Each example contains one FOA waveform and spatial event annotations in DCASE-style CSV files. The dataset combines simulated spatial scenes and real FOA recordings, and all sound event labels are mapped into a unified 63-class FSD taxonomy.
|
| 4 |
+
|
| 5 |
+
The public release stores audio and annotations as tar shards. The tar files preserve the same relative paths used by the metadata, so extracting the archives recreates the `audio/` and `annotations/` directories expected by the JSONL files.
|
| 6 |
+
|
| 7 |
+
## Dataset Contents
|
| 8 |
+
|
| 9 |
+
- **Audio format**: FOA waveform files (`.wav`)
|
| 10 |
+
- **Spatial annotations**: DCASE-style CSV files
|
| 11 |
+
- **Labels**: unified FSD63 label set
|
| 12 |
+
- **Splits**: `train`, `valid`, `test`
|
| 13 |
+
- **Metadata**: one JSON object per audio scene
|
| 14 |
+
- **Packaging**: path-preserving tar shards for easier download and upload
|
| 15 |
+
|
| 16 |
+
## File Structure
|
| 17 |
+
|
| 18 |
+
```text
|
| 19 |
+
SO-Dataset/
|
| 20 |
+
label_mapping.json
|
| 21 |
+
tar_shard_summary.json
|
| 22 |
+
|
| 23 |
+
metadata/
|
| 24 |
+
train.jsonl
|
| 25 |
+
valid.jsonl
|
| 26 |
+
test.jsonl
|
| 27 |
+
|
| 28 |
+
manifests/
|
| 29 |
+
audio-train.jsonl
|
| 30 |
+
audio-valid.jsonl
|
| 31 |
+
audio-test.jsonl
|
| 32 |
+
annotations-train.jsonl
|
| 33 |
+
annotations-valid.jsonl
|
| 34 |
+
annotations-test.jsonl
|
| 35 |
+
|
| 36 |
+
archives/
|
| 37 |
+
audio/
|
| 38 |
+
train/
|
| 39 |
+
audio-train-000000.tar
|
| 40 |
+
audio-train-000001.tar
|
| 41 |
+
...
|
| 42 |
+
valid/
|
| 43 |
+
test/
|
| 44 |
+
annotations/
|
| 45 |
+
train/
|
| 46 |
+
annotations-train-000000.tar
|
| 47 |
+
valid/
|
| 48 |
+
annotations-valid-000000.tar
|
| 49 |
+
test/
|
| 50 |
+
annotations-test-000000.tar
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
After extraction, the archives create:
|
| 54 |
+
|
| 55 |
+
```text
|
| 56 |
+
audio/{train,valid,test}/*.wav
|
| 57 |
+
annotations/{train,valid,test}/*.csv
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
These paths match the paths stored in `metadata/*.jsonl`.
|
| 61 |
+
|
| 62 |
+
## Dataset Statistics
|
| 63 |
+
|
| 64 |
+
| Split | Scenes / FOA files | Audio shards | Annotation files | Annotation shards |
|
| 65 |
+
|---|---:|---:|---:|---:|
|
| 66 |
+
| train | 329,610 | 188 | 1,032,417 | 1 |
|
| 67 |
+
| valid | 35,093 | 23 | 127,028 | 1 |
|
| 68 |
+
| test | 35,237 | 22 | 106,460 | 1 |
|
| 69 |
+
| total | 399,940 | 233 | 1,265,905 | 3 |
|
| 70 |
+
|
| 71 |
+
Total tar files: **236**.
|
| 72 |
+
|
| 73 |
+
Approximate payload sizes:
|
| 74 |
+
|
| 75 |
+
| Group | Payload bytes |
|
| 76 |
+
|---|---:|
|
| 77 |
+
| audio/train | 939,040,161,296 |
|
| 78 |
+
| audio/valid | 110,868,182,152 |
|
| 79 |
+
| audio/test | 108,399,164,604 |
|
| 80 |
+
| annotations/train | 2,350,160,868 |
|
| 81 |
+
| annotations/valid | 313,645,376 |
|
| 82 |
+
| annotations/test | 263,433,222 |
|
| 83 |
+
|
| 84 |
+
## Metadata Format
|
| 85 |
+
|
| 86 |
+
Each line in `metadata/{split}.jsonl` is a JSON object describing one FOA scene.
|
| 87 |
+
|
| 88 |
+
Example:
|
| 89 |
+
|
| 90 |
+
```json
|
| 91 |
+
{
|
| 92 |
+
"schema_version": "spatial_foa_scene_v1",
|
| 93 |
+
"split": "train",
|
| 94 |
+
"dataset": "sim_static",
|
| 95 |
+
"data_source": "sim_static",
|
| 96 |
+
"scene_id": "train/ov2_000000",
|
| 97 |
+
"audio": {
|
| 98 |
+
"duration_seconds": 20.0,
|
| 99 |
+
"foa_path": "audio/train/foa_fed1992f629ae5f3db28.wav"
|
| 100 |
+
},
|
| 101 |
+
"scene_annotation_csv_path": "annotations/train/foa_fed1992f629ae5f3db28.csv",
|
| 102 |
+
"sources": [
|
| 103 |
+
{
|
| 104 |
+
"source_id": "1",
|
| 105 |
+
"track_id": 0,
|
| 106 |
+
"original_label": "telephone_alarm",
|
| 107 |
+
"label": "telephone_alarm",
|
| 108 |
+
"label_id": 50,
|
| 109 |
+
"active_duration_seconds": 19.999937,
|
| 110 |
+
"active_times": [[0.000063, 20.0]],
|
| 111 |
+
"source_trajectory_csv_path": "annotations/train/foa_fed1992f629ae5f3db28_src00.csv",
|
| 112 |
+
"motion": {
|
| 113 |
+
"is_moving": false,
|
| 114 |
+
"pattern": null,
|
| 115 |
+
"description": null,
|
| 116 |
+
"scene_description": null
|
| 117 |
+
}
|
| 118 |
+
}
|
| 119 |
+
]
|
| 120 |
+
}
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
Important fields:
|
| 124 |
+
|
| 125 |
+
- `audio.foa_path`: relative path to the FOA waveform after extraction.
|
| 126 |
+
- `audio.duration_seconds`: audio duration in seconds.
|
| 127 |
+
- `scene_annotation_csv_path`: combined scene-level DCASE-style CSV annotation.
|
| 128 |
+
- `sources`: list of individual sound sources in the scene.
|
| 129 |
+
- `sources[*].source_trajectory_csv_path`: per-source trajectory CSV.
|
| 130 |
+
- `sources[*].original_label`: label before mapping.
|
| 131 |
+
- `sources[*].label` and `sources[*].label_id`: final FSD63 label and class id.
|
| 132 |
+
- `sources[*].active_times`: one or more `[start_seconds, end_seconds]` intervals.
|
| 133 |
+
- `sources[*].track_id`: source/event track id used in the CSV annotation.
|
| 134 |
+
|
| 135 |
+
## Label Mapping
|
| 136 |
+
|
| 137 |
+
`label_mapping.json` defines the FSD63 label space:
|
| 138 |
+
|
| 139 |
+
- `class_set`: `fsd63`
|
| 140 |
+
- `class_count`: `63`
|
| 141 |
+
- `class_names`: ordered class names
|
| 142 |
+
- `class_name_to_id`: class name to integer id
|
| 143 |
+
- `class_id_to_name`: integer id to class name
|
| 144 |
+
- `raw_label_aliases`: aliases used before final mapping, such as mapping singing variants to `singing`
|
| 145 |
+
|
| 146 |
+
Use `label_mapping.json` as the canonical class-id definition.
|
| 147 |
+
|
| 148 |
+
## Download
|
| 149 |
+
|
| 150 |
+
Install the Hugging Face CLI:
|
| 151 |
+
|
| 152 |
+
```bash
|
| 153 |
+
pip install -U "huggingface_hub[cli]"
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
Download the full dataset:
|
| 157 |
+
|
| 158 |
+
```bash
|
| 159 |
+
hf download dieKarotte/SO-Dataset \
|
| 160 |
+
--repo-type dataset \
|
| 161 |
+
--local-dir SO-Dataset
|
| 162 |
+
```
|
| 163 |
+
|
| 164 |
+
Download only metadata, manifests, and the label mapping:
|
| 165 |
+
|
| 166 |
+
```bash
|
| 167 |
+
hf download dieKarotte/SO-Dataset \
|
| 168 |
+
--repo-type dataset \
|
| 169 |
+
--local-dir SO-Dataset \
|
| 170 |
+
--include "metadata/*" \
|
| 171 |
+
--include "manifests/*" \
|
| 172 |
+
--include "label_mapping.json" \
|
| 173 |
+
--include "tar_shard_summary.json"
|
| 174 |
+
```
|
| 175 |
+
|
| 176 |
+
Download only the training audio shards:
|
| 177 |
+
|
| 178 |
+
```bash
|
| 179 |
+
hf download dieKarotte/SO-Dataset \
|
| 180 |
+
--repo-type dataset \
|
| 181 |
+
--local-dir SO-Dataset \
|
| 182 |
+
--include "archives/audio/train/*" \
|
| 183 |
+
--include "metadata/train.jsonl" \
|
| 184 |
+
--include "label_mapping.json"
|
| 185 |
+
```
|
| 186 |
+
|
| 187 |
+
## Extraction
|
| 188 |
+
|
| 189 |
+
Extract all audio and annotation shards from the dataset root:
|
| 190 |
+
|
| 191 |
+
```bash
|
| 192 |
+
cd SO-Dataset
|
| 193 |
+
|
| 194 |
+
find archives/audio -name "*.tar" -print0 | xargs -0 -n 1 -P 4 tar -xf
|
| 195 |
+
find archives/annotations -name "*.tar" -print0 | xargs -0 -n 1 -P 4 tar -xf
|
| 196 |
+
```
|
| 197 |
+
|
| 198 |
+
Extract only the training split:
|
| 199 |
+
|
| 200 |
+
```bash
|
| 201 |
+
cd SO-Dataset
|
| 202 |
+
|
| 203 |
+
find archives/audio/train -name "*.tar" -print0 | xargs -0 -n 1 -P 4 tar -xf
|
| 204 |
+
find archives/annotations/train -name "*.tar" -print0 | xargs -0 -n 1 -P 4 tar -xf
|
| 205 |
+
```
|
| 206 |
+
|
| 207 |
+
After extraction, metadata paths are directly usable:
|
| 208 |
+
|
| 209 |
+
```text
|
| 210 |
+
audio/train/foa_....wav
|
| 211 |
+
annotations/train/foa_....csv
|
| 212 |
+
annotations/train/foa_...._src00.csv
|
| 213 |
+
```
|
| 214 |
+
|
| 215 |
+
## Reading Metadata
|
| 216 |
+
|
| 217 |
+
```python
|
| 218 |
+
import json
|
| 219 |
+
from pathlib import Path
|
| 220 |
+
|
| 221 |
+
root = Path("SO-Dataset")
|
| 222 |
+
|
| 223 |
+
with (root / "metadata" / "train.jsonl").open("r", encoding="utf-8") as f:
|
| 224 |
+
item = json.loads(next(f))
|
| 225 |
+
|
| 226 |
+
audio_path = root / item["audio"]["foa_path"]
|
| 227 |
+
scene_csv_path = root / item["scene_annotation_csv_path"]
|
| 228 |
+
source_csv_paths = [
|
| 229 |
+
root / src["source_trajectory_csv_path"]
|
| 230 |
+
for src in item["sources"]
|
| 231 |
+
]
|
| 232 |
+
|
| 233 |
+
print(audio_path)
|
| 234 |
+
print(scene_csv_path)
|
| 235 |
+
print(source_csv_paths[:3])
|
| 236 |
+
```
|
| 237 |
+
|
| 238 |
+
## Manifests
|
| 239 |
+
|
| 240 |
+
The files in `manifests/` list the tar shards for each group and split.
|
| 241 |
+
|
| 242 |
+
Example row:
|
| 243 |
+
|
| 244 |
+
```json
|
| 245 |
+
{
|
| 246 |
+
"kind": "audio",
|
| 247 |
+
"split": "train",
|
| 248 |
+
"shard": "archives/audio/train/audio-train-000000.tar",
|
| 249 |
+
"files": 1741,
|
| 250 |
+
"payload_bytes": 4999665664,
|
| 251 |
+
"estimated_tar_bytes": 5000501760
|
| 252 |
+
}
|
| 253 |
+
```
|
| 254 |
+
|
| 255 |
+
## Notes
|
| 256 |
+
|
| 257 |
+
- The release is anonymized: public audio and CSV filenames use hashed names.
|
| 258 |
+
- Metadata paths are relative to the dataset root.
|
| 259 |
+
- The tar archives are not compressed. This keeps extraction fast and avoids heavy CPU cost for already-large waveform data.
|
| 260 |
+
- Scene-level CSV files contain the combined annotation for all active sources in a FOA scene.
|
| 261 |
+
- Per-source CSV files are also provided and are referenced from `sources[*].source_trajectory_csv_path`.
|
| 262 |
+
|
| 263 |
+
## Citation and License
|
| 264 |
+
|
| 265 |
+
Please cite this dataset as appropriate for your use. If you redistribute or use the dataset in downstream work, make sure your usage is compatible with the licenses of the underlying audio and spatial data sources.
|
qa/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
qa/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6dd75fcb9de31335ba1d0220040b3222b390117f22b2d1dacb8a61aea8dd67f
|
| 3 |
+
size 1159976590
|
qa/valid.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f67763e9ab4a1189a750e984c72879c55152221b02d2663be8ace9202c359f3
|
| 3 |
+
size 123512710
|