The ONNX files of VyralSampler, and the model card
Browse filesFiles changed (5)
- LICENSEAdded+41
- README.mdAdded+56
- aligner_en.onnxAdded+3
- vad_pyannote.onnxAdded+3
- vocals_mel_band_roformer.onnxAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041The files of this repository are ONNX exports of three models. Each model is under theMIT license, with the notice of its source below.
aligner_en.onnx: wav2vec 2.0 of fairseq, through torchaudio (WAV2VEC2_ASR_BASE_960H)
MIT License
Copyright (c) Facebook, Inc. and its affiliates.
vad_pyannote.onnx: pyannote/segmentation, the copy that WhisperX ships
MIT License. The model card of pyannote/segmentation states the MIT license. The license file of pyannote.audio reads:
Copyright (c) 2020 CNRS
vocals_mel_band_roformer.onnx: the MelBand Roformer of Kimberley Jensen(huggingface.co/KimberleyJSN/melbandroformer)
MIT License. The model card states the MIT license and names no copyright line. The copyright stays with the author of the model.
The text of the MIT license, for each notice above:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556---license: mitlibrary_name: onnxruntimetags:- onnx- forced-alignment- voice-activity-detection- music-source-separation---
# VyralSampler models (MIT)
ONNX exports of three models for VyralSampler, an app that cuts a spoken or sung phraseout of a video as a sample. The app downloads these files and runs them in ONNX Runtime,with no torch. Each file keeps the license of its source: MIT for all files here. TheLICENSE file of this repository has the notice of each source.
| File | What it does | Source ||---|---|---|| `aligner_en.onnx` | The English wav2vec2 aligner: the exact edge of each word | torchaudio `WAV2VEC2_ASR_BASE_960H`, wav2vec 2.0 of fairseq (Baevski et al., 2020), as WhisperX uses it || `vad_pyannote.onnx` | The speech VAD of the speech route | pyannote/segmentation (Bredin et al.), the copy that WhisperX ships || `vocals_mel_band_roformer.onnx` | Vocals only: the vocal stem of a mix | The MelBand Roformer of Kimberley Jensen (KimberleyJSN/melbandroformer), the file that audio-separator downloads |
## How the project made the files
`tools/onnx_export.py` of VyralSampler exports each torch model with the legacy exporterof torch 2.8 (opset 17). The weights are the weights of the source. Each file holds itssettings in its metadata. These are the labels of the aligner, the window of the VAD, andthe STFT and the chunk length of the separator.
- **The aligner** takes 16 kHz mono audio and gives the logits of each 20 ms frame.- **The VAD** takes windows of 5 s and gives the score of 3 speakers for each frame.- **The separator** takes the STFT of a stereo chunk at 44.1 kHz and gives the masked STFT of the vocals. The STFT and the inverse STFT are outside the graph. The attention is the `MultiHeadAttention` op of ONNX Runtime (domain `com.microsoft`), so the file needs ONNX Runtime with its contrib ops. The app uses ONNX Runtime 1.26.0.
## How the project checked the files
The same tool compares the app with the libraries that it replaces (2026-11-21):
- The aligner: each word edge of WhisperX 3.8.6, to the ms, on 657 words.- The VAD: the speech chunks of WhisperX on 3 of 4 files. In 41 minutes of speech, one of 88 chunk edges moved by one frame (17 ms). torch itself differs as much between the CPU and the GPU.- The separator: the 16-bit stems of audio-separator 0.47, with 99.7% of the samples equal and the rest 1 in 32767 off.
## Licenses of the sources
- wav2vec 2.0 of fairseq: MIT. torchaudio redistributes the weights under the same license.- pyannote/segmentation: MIT, as its model card states.- The MelBand Roformer of Kimberley Jensen: MIT, as its model card states.
The French, German, Spanish and Italian aligners have another license (CC BY-NC 4.0),so they are in a repository of their own: `vyralsampler-models-nc`.123version https://git-lfs.github.com/spec/v1oid sha256:9756bda40d55f23da785e589cee41da6cf6dfbb8260fe68d95568335fcf10648size 377811382123version https://git-lfs.github.com/spec/v1oid sha256:b6a9f56b4845211276007597b94b83bfb3f087e0cda079c3c06b9368f839a302size 5914461123version https://git-lfs.github.com/spec/v1oid sha256:f8b17e9ba75eef6b15b602dd8d034b5874691d5795baa42f3582ad93e19aed10size 914649481LICENSEAdded+41
README.mdAdded+56
aligner_en.onnxAdded+3
vad_pyannote.onnxAdded+3
vocals_mel_band_roformer.onnxAdded+3