Downloads · 30 days
129
58% of all-time downloads
tjpurdy/Piano-Separation-Model-small
Piano-Separation-Model-small is a audio-to-audio model from tjpurdy. Use it for the audio-to-audio task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-4.0.
This repository contains a 17 MB piano separation model and inference script for running it.
Downloads · 30 days
129
58% of all-time downloads
All-time downloads
221
Public
Parameters
8.8M
17.6 MB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors17.6 MB · 100%
From the Hugging Face model README
This repository contains a 17 MB piano separation model and inference script for running it.
The model takes an audio track as input and outputs the isolated piano.
Listen to some examples here https://tjpurdy.github.io/Piano-Separation-Model-small/
wav, flac, mp3wav, flac (--output_format wav / --output_format flac)pip install torch einops rotary-embedding-torch numpy soundfile safetensors
Download the inference.py file then run the code below after setting the --input_dir (model and config will be auto-downloaded).
python inference.py --input_dir 'Insert path to file or directory containing file(s) here'
Please cite this repository if you use this model in research or a project.
Wei-Tsung Lu, Ju-Chiang Wang, Qiuqiang Kong, Yun-Ning Hung - https://arxiv.org/abs/2309.02612 lucidrains - https://github.com/lucidrains/BS-RoFormer
<p align=> <img alt="train-loss" src="https://raw.githubusercontent.com/tjpurdy/Piano-Separation-Model-small/main/docs/trainloss.png"> </p>