Views
No views yet
m-a-p/MERT-v1-95M.1git clone https://github.com/AMAAI-Lab/MelodySim.git
2cd MelodySim
3pip install -r requirements.txt1from huggingface_hub import hf_hub_download
2
3repo_id = "amaai-lab/MelodySim"
4model_path = hf_hub_download(repo_id=repo_id, filename="siamese_net_20250328.ckpt")wget https://huggingface.co/amaai-lab/MelodySim/resolve/main/siamese_net_20250328.ckptinference.py to run the model on two audio files, analyzing their similarity and reaching a decesion on whether or not they are the same song. We provide a positive pair and a negative pair as examples. Try outpython inference.py -audio-path1 ./data/example_wavs/Track01968_original.mp3 -audio-path2 ./data/example_wavs/Track01976_original.mp3 -ckpt-path path/to/checkpoint.ckpt
python inference.py -audio-path1 ./data/example_wavs/Track01976_original.mp3 -audio-path2 ./data/example_wavs/Track01976_version1.mp3 -ckpt-path path/to/checkpoint.ckpt-window-len-sec, -hop-len-sec (the way segmenting the input audios);--proportion-thres (how many similar segments should we consider the two pieces to be the same);--decision-thres (between 0 and 1, the smallest similarity value that we consider to be the same);--min-hits (for each window in piece1, the minimum number of similar windows in piece2 to assign that window to be plagiarized).| Precision | Recall | F1 | |
|---|---|---|---|
| Different | 1.00 | 0.94 | 0.97 |
| Similar | 0.94 | 1.00 | 0.97 |
| Average | 0.97 | 0.97 | 0.97 |
| Accuracy | 0.97 |
1@article{lu2025melodysim,
2 title={Text2midi-InferAlign: Improving Symbolic Music Generation with Inference-Time Alignment},
3 author={Tongyu Lu and Charlotta-Marlena Geist and Jan Melechovsky and Abhinaba Roy and Dorien Herremans},
4 year={2025},
5 journal={arXiv:2505.20979}
6}