-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add readme * fix * fix * fix final
- Loading branch information
Showing
1 changed file
with
44 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,45 @@ | ||
# aria-amt | ||
MIDI conditioned automatic music transcription | ||
|
||
Efficient and robust implementation of seq-to-seq automatic piano transcription. | ||
|
||
## Install | ||
|
||
Requires Python 3.11 | ||
|
||
``` | ||
git clone https://github.com/EleutherAI/aria-amt.git | ||
cd aria-amt | ||
pip install -e . | ||
``` | ||
|
||
Download the preliminary model weights: | ||
|
||
``` | ||
wget https://storage.googleapis.com/aria-checkpoints/amt/small-0.safetensors | ||
``` | ||
|
||
## Usage | ||
|
||
You can download mp3s from youtube using [yt-dlp](https://github.com/yt-dlp/yt-dlp): | ||
|
||
``` | ||
yt-dlp --audio-format mp3 --extract-audio --no-playlist --audio-quality 0 <youtube-link> -o <save-path> | ||
``` | ||
|
||
You can then transcribe using the cli: | ||
|
||
``` | ||
aria-amt transcribe \ | ||
small-final \ | ||
<path-to-checkpoint> \ | ||
-load_path <path-to-audio> \ | ||
-save_dir <path-to-save-dir> \ | ||
-bs 1 \ | ||
-compile \ | ||
-q8 | ||
``` | ||
|
||
If you want to do batch transcription, use the `-load_dir` flag and adjust `-bs` accordingly. Compiling may take some time, but provides a significant speedup. | ||
|
||
NOTE: Currently only bf16 is supported. | ||
|