JusperLee commited on
Commit
c68bd80
1 Parent(s): 0b123a4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +113 -0
README.md CHANGED
@@ -7,6 +7,119 @@ tags:
7
  - music
8
  ---
9
 
 
 
 
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
 
 
7
  - music
8
  ---
9
 
10
+ <p align="center">
11
+ <img src="https://cslikai.cn/Apollo/asserts/apollo-logo.png" alt="Logo" width="150"/>
12
+ </p>
13
 
14
+ <p align="center">
15
+ <strong>Kai Li<sup>1,2</sup>, Yi Luo<sup>2</sup></strong><br>
16
+ <strong><sup>1</sup>Tsinghua University, Beijing, China</strong><br>
17
+ <strong><sup>2</sup>Tencent AI Lab, Shenzhen, China</strong><br>
18
+ <a href="#">ArXiv</a> | <a href="https://cslikai.cn/Apollo/">Demo</a>
19
+
20
+ <p align="center">
21
+ <img src="https://visitor-badge.laobi.icu/badge?page_id=JusperLee.Apollo" alt="访客统计" />
22
+ <img src="https://img.shields.io/github/stars/JusperLee/Apollo?style=social" alt="GitHub stars" />
23
+ <img alt="Static Badge" src="https://img.shields.io/badge/license-CC%20BY--SA%204.0-blue">
24
+ </p>
25
+
26
+ <p align="center">
27
+
28
+ # Apollo: Band-sequence Modeling for High-Quality Music Restoration in Compressed Audio
29
+
30
+ ## 📖 Abstract
31
+
32
+ Apollo is a novel music restoration method designed to address distortions and artefacts caused by audio codecs, especially at low bitrates. Operating in the frequency domain, Apollo uses a frequency band-split module, band-sequence modeling, and frequency band reconstruction to restore the audio quality of **MP3-compressed music**. It divides the spectrogram into sub-bands, extracts gain-shape representations, and models both sub-band and temporal information for high-quality audio recovery. Trained with a Generative Adversarial Network (GAN), Apollo outperforms existing SR-GAN models on the **MUSDB18-HQ and MoisesDB** datasets, excelling in complex multi-instrument and vocal scenarios, while maintaining efficiency.
33
+
34
+ ## 🔥 News
35
+
36
+ - [2024.09.10] Apollo is now available on [ArXiv](#) and [Demo](https://cslikai.cn/Apollo/).
37
+ - [2024.09.106] Apollo checkpoints and pre-trained models are available for download.
38
+
39
+ ## ⚡️ Installation
40
+
41
+ clone the repository
42
+
43
+ ```bash
44
+ git clone https://github.com/JusperLee/Apollo.git && cd Apollo
45
+ conda create --name look2hear --file look2hear.yml
46
+ conda activate look2hear
47
+ ```
48
+
49
+ ## 🖥️ Usage
50
+
51
+ ### 🗂️ Datasets
52
+
53
+ Apollo is trained on the MUSDB18-HQ and MoisesDB datasets. To download the datasets, run the following commands:
54
+
55
+ ```bash
56
+ wget https://zenodo.org/records/3338373/files/musdb18hq.zip?download=1
57
+ wget https://ds-website-downloads.55c2710389d9da776875002a7d018e59.r2.cloudflarestorage.com/moisesdb.zip
58
+ ```
59
+ During data preprocessing, we drew inspiration from music separation techniques and implemented the following steps:
60
+
61
+ 1. **Source Activity Detection (SAD):**
62
+ We used a Source Activity Detector (SAD) to remove silent regions from the audio tracks, retaining only the significant portions for training.
63
+
64
+ 2. **Data Augmentation:**
65
+ We performed real-time data augmentation by mixing tracks from different songs. For each mix, we randomly selected between 1 and 8 stems from the 11 available tracks, extracting 3-second clips from each selected stem. These clips were scaled in energy by a random factor within the range of [-10, 10] dB relative to their original levels. The selected clips were then summed together to create simulated mixed music.
66
+
67
+ 3. **Simulating Dynamic Bitrate Compression:**
68
+ We simulated various bitrate scenarios by applying MP3 codecs with bitrates of [24000, 32000, 48000, 64000, 96000, 128000].
69
+
70
+ 4. **Rescaling:**
71
+ To ensure consistency across all samples, we rescaled both the target and the encoded audio based on their maximum absolute values.
72
+
73
+ 5. **Saving as HDF5:**
74
+ After preprocessing, all data (including the source stems, mixed tracks, and compressed audio) was saved in HDF5 format, making it easy to load for training and evaluation purposes.
75
+
76
+ ### 🚀 Training
77
+ To train the Apollo model, run the following command:
78
+
79
+ ```bash
80
+ python train.py --conf_dir=configs/apollo.yml
81
+ ```
82
+
83
+ ### 🎨 Evaluation
84
+ To evaluate the Apollo model, run the following command:
85
+
86
+ ```bash
87
+ python inference.py --in_wav=assets/input.wav --out_wav=assets/output.wav
88
+ ```
89
+
90
+ ## 📊 Results
91
+
92
+ *Here, you can include a brief overview of the performance metrics or results that Apollo achieves using different bitrates*
93
+
94
+ ![](./https://cslikai.cn/Apollo/asserts/bitrates.png)
95
+
96
+
97
+ *Different methods' SDR/SI-SNR/VISQOL scores for various types of music, as well as the number of model parameters and GPU inference time. For the GPU inference time test, a music signal with a sampling rate of 44.1 kHz and a length of 1 second was used.*
98
+ ![](./https://cslikai.cn/Apollo/asserts/types.png)
99
+
100
+ ## License
101
+
102
+ <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
103
+
104
+ ## Acknowledgements
105
+
106
+ Apollo is developed by the **Look2Hear** at Tsinghua University.
107
+
108
+ ## Citation
109
+
110
+ If you use Apollo in your research or project, please cite the following paper:
111
+
112
+ ```
113
+ @article{li2024apollo,
114
+ title={Apollo: Band-sequence Modeling for High-Quality Music Restoration in Compressed Audio},
115
+ author={Li, Kai and Luo, Yi},
116
+ journal={xxxxxx},
117
+ year={2024}
118
+ }
119
+ ```
120
+
121
+ ## Contact
122
+
123
+ For any questions or feedback regarding Apollo, feel free to reach out to us via email: `[email protected]`
124
 
125