dsmuse-models / README.md
leejsool's picture
Add BTC chord recognition model (btc_chords.onnx), catalog entry, model card and license
7f98201 verified
|
Raw History Blame Contribute Delete
4.74 kB
---
license: other
license_name: cc-by-nc-4.0-and-cc-by-4.0
license_link: LICENSE.md
tags:
- audio
- music
- music-source-separation
- demucs
- chord-recognition
- onnx
---
# DSmuse models
Model files downloaded by the DSmuse app (a personal, non-commercial music
transcription app). `catalog.json` lists each file with its size and SHA-256;
the app checks both before using a file.
## htdemucs_6s.onnx — Hybrid Transformer Demucs (6 sources), ONNX
- **Original model**: HTDemucs 6-source (`htdemucs_6s`) by Alexandre Défossez
et al. (Meta AI), from [demucs](https://github.com/adefossez/demucs) 4.1.0;
weights from [adefossez/HTDemucs-6s](https://huggingface.co/adefossez/HTDemucs-6s).
Paper: Rouard, Massa, Défossez, *Hybrid Transformers for Music Source
Separation*, ICASSP 2023.
- **License**: the demucs README says the weight license is not fully clear
and that this 6-source model was trained only on a Meta internal dataset,
"which likely means CC-NC-BY license is applicable". This file is therefore
shared under **CC BY-NC 4.0: non-commercial use only, with attribution**.
The demucs code is MIT.
- **What was changed**: only the format. The network between the STFT and the
inverse STFT was exported to ONNX (opset 18, fp32); the app does the STFT /
iSTFT itself. The weights are unchanged. Max difference against the original
PyTorch model on the final stems: 8e-5.
- **Inputs**: `mix` `[1, 2, 343980]` (44.1 kHz stereo, 7.8 s, normalised) and
`mag` `[1, 4, 2048, 336]` (STFT real/imag of both channels, nfft 4096,
hop 1024).
- **Outputs**: `spec_out` `[1, 6, 4, 2048, 336]`, `time_out` `[1, 6, 2, 343980]`;
sources in order: drums, bass, other, vocals, guitar, piano.
- **Size / SHA-256**: 115,423,781 bytes,
`38f473ef84de10f6d397431fd8980f87dc284f38ebaefbf1c96c3eaf66a51be9`.
## piano_note_pedal.onnx — high-resolution piano transcription, ONNX
- **Original model**: "High-resolution Piano Transcription with Pedals by
Regressing Onset and Offset Times" by Qiuqiang Kong, Bochen Li, Xuchen Song,
Yuan Wan, Yuxuan Wang (ByteDance), IEEE/ACM TASLP 2021; code
[piano_transcription_inference](https://github.com/qiuqiangkong/piano_transcription_inference)
0.0.6 (MIT); weights `CRNN_note_F1=0.9677_pedal_F1=0.9186.pth` from
[Zenodo 4034264](https://zenodo.org/records/4034264).
- **License**: the weights are published under **CC BY 4.0** (Creative
Commons Attribution 4.0 International); this file is shared under the same
license with this attribution.
- **What was changed**: only the format. The whole note + pedal network
(log-mel front end included) exported to ONNX (opset 17, fp32); max
difference against PyTorch 8e-4.
- **Input**: `audio` `[1, 160000]` (10 s mono, 16 kHz).
- **Outputs**: `reg_onset_output`, `reg_offset_output`, `frame_output`,
`velocity_output` `[1, 1001, 88]`; `reg_pedal_onset_output`,
`reg_pedal_offset_output`, `pedal_frame_output` `[1, 1001, 1]`.
- **Size / SHA-256**: 154,214,196 bytes,
`cb715b94afb73676a994e879e406d158201a0d4e89c8f1e094bcf82bc546f0a2`.
---
DSmuse 앱이 내려받는 모델 파일입니다(개인·비상업용 채보 앱). `htdemucs_6s.onnx`는
Meta AI의 demucs HTDemucs 6소스 모델을 ONNX로 형식만 바꾼 것이고,
**CC BY-NC 4.0(비상업적 사용, 출처 표시)**으로만 나눕니다.
## btc_chords.onnx — BTC chord recognition (170 chords), ONNX
- **Original model**: "A Bi-directional Transformer for Musical Chord
Recognition" by Jonggwon Park, Kyoyun Choi, Sungwook Jeon, Dokyun Kim and
Jonghun Park, ISMIR 2019; code and weights
[jayg996/BTC-ISMIR19](https://github.com/jayg996/BTC-ISMIR19) (MIT),
checkpoint `btc_model_large_voca.pt`.
- **License**: the code is MIT (Copyright (c) 2019 Jonggwon Park). No separate
license is given for the weights, which were trained on audio of commercial
recordings (Isophonics, Robbie Williams, UsPop2002) whose terms are not
known. This file is shared for **non-commercial use only, with
attribution**.
- **What was changed**: only the format. The network from the CQT input to the
chord logits exported to ONNX (opset 17, fp32); max difference against
PyTorch 1.1e-5, same argmax on all test frames. The app computes the CQT
itself (22050 Hz, 144 bins, 24 per octave, hop 2048, log(|CQT| + 1e-6),
normalised with the checkpoint's mean -2.22799 / std 1.71913).
- **Input**: `cqt` `[1, 108, 144]` (10 s of frames).
- **Output**: `logits` `[1, 108, 170]`: 12 roots × 14 qualities (min, maj,
dim, aug, min6, maj6, min7, minmaj7, maj7, 7, dim7, hdim7, sus2, sus4),
then X (unknown) and N (no chord).
- **Size / SHA-256**: 13,069,786 bytes,
`9ab226df3c81d4cb94e630e5ac6ecb46a8a020840a79dafb97450cbf967d7e0f`.