-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[update] update readme and add cli usage for the dataset
- Loading branch information
1 parent
d139a27
commit 0752da0
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,40 @@ | ||
# Whisper-lyric | ||
|
||
Codebase to finetune whisper for music transcription. | ||
|
||
## Installation | ||
|
||
To install the required dependencies, run the following command: | ||
|
||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
|
||
## Dataset download | ||
|
||
To download the dataset, run the following command: | ||
|
||
```bash | ||
python download_dataset.py --num_images 1000 | ||
``` | ||
|
||
The dataset will be downloaded to the `data` directory. | ||
The format of the dataset is as follows: | ||
|
||
``` | ||
dataset | ||
├── audio | ||
│ ├── 0.wav | ||
│ ├── 1.wav | ||
│ ├── ... | ||
└── lyrics | ||
├── 0.txt | ||
├── 1.txt | ||
├── ... | ||
``` | ||
|
||
where `0.wav` corresponds to the audio file and `0.txt` corresponds to the lyrics transcription of the audio file. | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import argparse | ||
|
||
from dataset.build import SonautoAPI | ||
|
||
|
||
parser = argparse.ArgumentParser( | ||
description="Download images from Sonauto dataset", | ||
) | ||
parser.add_argument("--num_images", type=int, default=10) | ||
parser.add_argument("--clean", type=bool, default=True) | ||
|
||
args = parser.parse_args() | ||
|
||
api = SonautoAPI(clean=args.clean) | ||
api.download(args.num_images) |