JusperLee commited on
Commit
7ed0f3a
·
verified ·
1 Parent(s): 83187bb

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +251 -0
README.md ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - audio-classification
5
+ - audio-to-audio
6
+ language:
7
+ - en
8
+ tags:
9
+ - audio-separation
10
+ - universal-separation
11
+ - audio-scene-understanding
12
+ size_categories:
13
+ - n>1T
14
+ ---
15
+ <h1 align="center">A Semantically Consistent Dataset for Data-Efficient Query-Based Universal Sound Separation</h1>
16
+ <p align="center">
17
+ <img src="https://raw.githubusercontent.com/JusperLee/Hive/refs/heads/main/assert/logo.png" alt="Logo" width="250"/>
18
+ </p>
19
+ <p align="center">
20
+ <strong>Kai Li<sup>*</sup>, Jintao Cheng<sup>*</sup>, Chang Zeng, Zijun Yan, Helin Wang, Zixiong Su, Bo Zheng, Xiaolin Hu</strong><br>
21
+ <strong>Tsinghua University, Shanda AI, Johns Hopkins University</strong><br>
22
+ <strong><sup>*</sup>Equal contribution</strong><br>
23
+ <a href="https://arxiv.org/abs/2601.22599">📜 Arxiv 2026</a> | <a href="https://cslikai.cn/Hive/">🎶 Demo</a> | <a href="https://huggingface.co/datasets/JusperLee/Hive">🤗 Metadata</a> | <a href="https://huggingface.co/datasets/JusperLee/Hive-ALL">🤗 Hive-ALL Audio</a> | <a href="https://huggingface.co/spaces/JusperLee/Hive">🤗 Space</a>
24
+ </p>
25
+
26
+ <p align="center">
27
+ <img src="https://visitor-badge.laobi.icu/badge?page_id=JusperLee.Hive" alt="访客统计" />
28
+ <img src="https://img.shields.io/github/stars/JusperLee/Hive?style=social" alt="GitHub stars">
29
+ <img alt="Static Badge" src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" />
30
+ </p>
31
+
32
+ ---
33
+
34
+ ## 💥 News
35
+
36
+ - [2026-05-21] **Hive-ALL** is now also available on **[ModelScope](https://modelscope.cn/datasets/JusperLee/Hive-All/files)** for users in China who prefer faster downloads via the ModelScope mirror. 🇨🇳🚀
37
+ - [2026-05-19] We release **[Hive-ALL](https://huggingface.co/datasets/JusperLee/Hive-ALL)**, the pre-generated mixed audio dataset (9.17 TB, WebDataset format). No need to re-mix from metadata. 🚀
38
+ - [2026-03-09] We release `infer_audiosep.py` for one-command AudioSep inference in Hive. The script automatically downloads config and checkpoints from [JusperLee/AudioSep-hive](https://huggingface.co/JusperLee/AudioSep-hive). 🚀
39
+ - [2026-03-09] We release `infer_flowsep.py` for one-command FlowSep inference in Hive, with automatic config and checkpoint download from [JusperLee/FlowSep-hive](https://huggingface.co/JusperLee/FlowSep-hive). 🚀
40
+ - [2026-03-09] We release `app.py`, a unified Gradio demo that supports both **AudioSep-hive** and **FlowSep-hive** in a single interface. 🚀
41
+ - [2026-03-09] Community Hugging Face Space is available at [JusperLee/Hive](https://huggingface.co/spaces/JusperLee/Hive) for quick interactive demo. 🚀
42
+ - [2026-02-09] Thanks to [@faiteamartaliius](https://huggingface.co/faiteamartaliius) for using this codebase to synthesize data and publicly sharing a third-party Hive-style dataset: [faiteamartaliius/Hive](https://huggingface.co/datasets/faiteamartaliius/Hive). 🙏
43
+
44
+
45
+ ## 📌 Table of Contents
46
+
47
+ - [📄 Abstract](#-abstract)
48
+ - [📂 Repository Structure](#-repository-structure)
49
+ - [🍯 Hive Dataset](#-hive-dataset)
50
+ - [⚙️ Data Collection Pipeline](#️-data-collection-pipeline)
51
+ - [🎧 Inference](#-inference)
52
+ - [🖥️ Gradio App](#️-gradio-app)
53
+ - [📖 Citation](#-citation)
54
+ - [⚖️ License](#️-license)
55
+ - [🙏 Acknowledgments](#-acknowledgments)
56
+
57
+
58
+ ## 📄 Abstract
59
+
60
+ <p align="justify">
61
+ Query-based universal sound separation is fundamental to intelligent auditory systems, aiming to isolate specific sources from unconstrained mixtures.
62
+ Despite recent advances, existing methods continue to suffer from residual interference in complex acoustic scenes.
63
+ This performance limitation stems largely from a data bottleneck: ubiquitous in-the-wild datasets contain weak labels and severe event co-occurrence.
64
+ These flaws induce models to learn spurious correlations between background noise and target categories instead of robust acoustic features.
65
+ To address this, we propose an automated pipeline that eliminates co-occurrence noise by mining high-purity single-event segments
66
+ from unconstrained recordings and synthesizing mixtures via semantically consistent strategies.
67
+ Utilizing this pipeline, we constructed <i>Hive</i>, a high-quality synthetic dataset comprising 2k hours of audio.
68
+ <a style="color:blue;">Experimental results demonstrate that, despite using only <b>~0.2%</b> of the data scale of million-hour baselines,
69
+ models trained on Hive achieve competitive separation accuracy and perceptual quality.</a>
70
+ Moreover, these models exhibit remarkable zero-shot generalization on out-of-distribution evaluation benchmarks such as MUSDB18-HQ and USS-Bench.
71
+ These findings highlight that <a style="background-color:LightYellow;color:red;">prioritizing supervision purity enables significant data efficiency</a>,
72
+ offering a new paradigm for training robust auditory foundation models with reduced computational costs.
73
+ </p>
74
+
75
+
76
+ ## 📂 Repository Structure
77
+
78
+ ```
79
+ .
80
+ ├── hive_dataset/ # Hive Dataset generation and curation
81
+ │ ├── mix_from_metadata/ # Generate mixtures from metadata
82
+ │ │ ├── mix_from_metadata.py
83
+ │ │ └── dataset_paths.json
84
+ │ ├── mix_curation/ # Data curation for mix audio
85
+ │ │ ├── mix_data_curation.py
86
+ │ │ └── ontology.json
87
+ │ ├── README.md # Dataset documentation
88
+ │ ├── requirements.txt
89
+ │ └── LICENSE
90
+ ├── pipeline/ # Single-Event Data Collection Pipeline
91
+ │ ├── code/ # Pipeline scripts
92
+ │ │ ├── 01_audio_chunking.py
93
+ │ │ ├── 02_filter_single_label.py
94
+ │ │ ├── 03_filter_single_event_qwen.py
95
+ │ │ ├── 04_audioset_label_audiotag.py
96
+ │ │ ├── 05_leaf_label_qwen.py
97
+ │ │ └── 06_superres_apollo.py
98
+ │ ├── data/ # Pipeline data directories
99
+ │ ├── ontology/ # AudioSet ontologies
100
+ │ ├── icefall/ # AudioTag model repository
101
+ │ ├── Apollo/ # Apollo model repository
102
+ │ ├── requirements.txt # Pipeline dependencies
103
+ │ └── README.md # Pipeline documentation
104
+ ├── LICENCE # Apache 2.0 License
105
+ └── README.md
106
+ ```
107
+
108
+
109
+ ## 🍯 Hive Dataset
110
+
111
+ **Hive** is a high-quality synthetic dataset with 2,442 hours of raw audio and 19.6M mixtures for Universal Sound Separation.
112
+
113
+ **Features:**
114
+ - 283 sound categories from AudioSet ontology
115
+ - Semantically consistent mixing logic
116
+ - 44.1kHz sample rate
117
+
118
+ **Two release formats:**
119
+ - **[JusperLee/Hive](https://huggingface.co/datasets/JusperLee/Hive)** — metadata-only release (Parquet, ~1.24 GB). Use `mix_from_metadata.py` to regenerate mixtures locally from the original 12 source datasets.
120
+ - **[JusperLee/Hive-ALL](https://huggingface.co/datasets/JusperLee/Hive-ALL)** — pre-generated mixed audio (285 GB, WebDataset `.tar` shards, 2-source mixtures). Ready to stream and train without any re-mixing step.
121
+
122
+ Please refer to [`hive_dataset/`](hive_dataset/) for details
123
+
124
+
125
+ ## ⚙️ Data Collection Pipeline
126
+
127
+ An automated 6-step pipeline for mining high-purity single-event audio from weakly-labeled sources.
128
+
129
+ **Pipeline Stages:**
130
+ 1. Audio Chunking - Split long audio into segments
131
+ 2. Single Label Filtering - Remove multi-label samples
132
+ 3. Single Event Filtering - Verify acoustic purity with Qwen3-Omni
133
+ 4. AudioSet Label Tagging - Assign ontology labels with AudioTag
134
+ 5. Leaf Label Classification - Refine to leaf nodes with Qwen3-Omni
135
+ 6. Audio Super-Resolution - Upsample to 44.1kHz with Apollo
136
+
137
+ Please refer to [`pipeline/`](pipeline/) for details
138
+
139
+
140
+ ## 🎧 Inference
141
+
142
+ Hive provides two inference scripts with automatic checkpoint/config download from Hugging Face:
143
+
144
+ - `infer_audiosep.py` -> [JusperLee/AudioSep-hive](https://huggingface.co/JusperLee/AudioSep-hive)
145
+ - `infer_flowsep.py` -> [JusperLee/FlowSep-hive](https://huggingface.co/JusperLee/FlowSep-hive)
146
+
147
+ ### 1) Install dependencies
148
+
149
+ ```bash
150
+ cd Hive
151
+ pip install torch torchaudio librosa pyyaml pytorch-lightning huggingface_hub gradio
152
+ ```
153
+
154
+ ### 2) AudioSep inference
155
+
156
+ ```bash
157
+ python infer_audiosep.py \
158
+ --audio_file /path/to/mixture.wav \
159
+ --text "acoustic guitar" \
160
+ --output_file /path/to/audiosep_output.wav
161
+ ```
162
+
163
+ ### 3) FlowSep inference
164
+
165
+ ```bash
166
+ python infer_flowsep.py \
167
+ --audio_file /path/to/mixture.wav \
168
+ --text "acoustic guitar" \
169
+ --output_file /path/to/flowsep_output.wav
170
+ ```
171
+
172
+ ## 🖥️ Gradio App
173
+
174
+ `app.py` launches an interactive local demo with both models in one UI:
175
+
176
+ - Model choices: `AudioSep-hive`, `FlowSep-hive`
177
+ - Input: mixed audio + text query
178
+ - Output: separated waveform
179
+
180
+ Run:
181
+
182
+ ```bash
183
+ cd Hive
184
+ python app.py
185
+ ```
186
+
187
+ Then open the local Gradio URL printed in terminal.
188
+
189
+ ## 📖 Citation
190
+
191
+ If you use this code or the Hive Dataset, please cite:
192
+
193
+ ```bibtex
194
+ @article{li2026semantically,
195
+ title={A Semantically Consistent Dataset for Data-Efficient Query-Based Universal Sound Separation},
196
+ author={Li, Kai and Cheng, Jintao and Zeng, Chang and Yan, Zijun and Wang, Helin and Su, Zixiong and Zheng, Bo and Hu, Xiaolin},
197
+ journal={arXiv preprint arXiv:2601.22599},
198
+ year={2026}
199
+ }
200
+ ```
201
+
202
+
203
+ ## ⚖️ License
204
+
205
+ ### Project License
206
+
207
+ This project is licensed under the Apache License 2.0. See [LICENCE](LICENCE) for details.
208
+
209
+ ### Model Licenses
210
+
211
+ - **Qwen3-Omni**: Apache 2.0
212
+ - **AudioTag**: Apache 2.0
213
+ - **Apollo**: Check model repository for specific license
214
+
215
+
216
+ ## 🙏 Acknowledgments
217
+
218
+ The Hive dataset is a collaborative achievement built upon the foundation of the open-source audio community. We extend our deepest gratitude to the researchers and organizations who curated the twelve foundational datasets. Their work provides the essential long-tailed acoustic space for advancing **Universal Sound Separation**.
219
+
220
+ ### 🏛️ Foundational Data Sources
221
+
222
+ We gratefully acknowledge the following core datasets which provided the majority of our high-fidelity clips:
223
+
224
+ - **BBC Sound Effects** (369,603 clips, 1,020.62h) - Professional-grade recordings with broadcast-level fidelity under Remix License
225
+ - **AudioSet** (326,890 clips, 896.61h) - Large-scale benchmark from YouTube under CC BY (Google)
226
+ - **VGGSound** (115,191 clips, 319.10h) - Real-world acoustic diversity under CC BY 4.0 (University of Oxford)
227
+ - **FreeSound** (17,451 clips, 46.90h) - Rich crowdsourced soundscapes under CC0/BY/BY-NC (MTG-UPF)
228
+
229
+ ### 🎯 Specialized Domain Contributors
230
+
231
+ Our sincere thanks go to the following datasets for providing the raw source audio that forms the specialized domains of the **Hive Dataset**:
232
+
233
+ **Music & Speech:**
234
+ - **MUSIC21** (32,701 clips, 90.28h) - Solo and ensemble instruments for harmonic structure modeling
235
+ - **Voicebank-DEMAND** (12,376 clips, 9.94h) - Clean speech signals under CC BY 4.0
236
+ - **FSD50K** (636 clips, 0.80h) - Finely annotated subset based on AudioSet ontology
237
+
238
+ **Environmental & Events:**
239
+ - **ClothoV2** (14,759 clips, 38.19h) - Audio captioning dataset with rich temporal evolution
240
+ - **AVE** (3,054 clips, 6.91h) - Audio-visual event localization under CC BY-NC-SA
241
+ - **SoundBible** (2,501 clips, 5.78h) - Curated short clips under CC BY 4.0
242
+ - **DCASE** (1,969 clips, 5.46h) - Acoustic scene detection challenges
243
+ - **ESC50** (1,433 clips, 1.99h) - Environmental sound classification benchmark under CC BY-NC 3.0
244
+
245
+ ### ⚖️ License & Ethical Compliance
246
+
247
+ All source data were processed in strict accordance with their respective licenses (e.g., CC BY, CC0, Remix License). An automated data collection pipeline was employed to ensure that only semantically aligned and single-label pure segments were extracted, respecting the original intent of the data contributors while enhancing their utility for sound separation tasks.
248
+
249
+ **Important Note**: This repository releases only the **metadata** (JSON files containing mixing parameters and source references) for reproducibility. We do **not** redistribute the original audio files from the source datasets. Users must independently download and prepare the source datasets according to their respective licenses and terms of use.
250
+
251
+ *We thank all original contributors for their invaluable service to the scientific community.*