Voice Activity Detection
Transformers
PyTorch
speaker
speaker-diarization
meeting
wavlm
wespeaker
diarizen
pyannote
pyannote-audio-pipeline
Instructions to use Aukelly/diarizen-wavlm-large-s80-md with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Aukelly/diarizen-wavlm-large-s80-md with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Aukelly/diarizen-wavlm-large-s80-md", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| license: cc-by-nc-4.0 | |
| library_name: transformers | |
| pipeline_tag: voice-activity-detection | |
| tags: | |
| - speaker | |
| - speaker-diarization | |
| - meeting | |
| - wavlm | |
| - wespeaker | |
| - diarizen | |
| - pyannote | |
| - pyannote-audio-pipeline | |
| ## Overview | |
| This hub features the pre-trained model by [DiariZen](https://github.com/BUTSpeechFIT/DiariZen). The EEND component is built upon WavLM Large and Conformer layers. The model was trained on far-field, single-channel audio from a diverse set of public datasets, including AMI, AISHELL-4, AliMeeting, NOTSOFAR-1, MSDWild, DIHARD3, RAMC, and VoxConverse. | |
| Then structured pruning at 80% sparsity is applied. After pruning, the number of parameters in WavLM Large is reduced from **316.6M to 63.3M**, and the computational cost (MACs) decreases from **17.8G to 3.8G** per second. When loading this model, please ensure **non-commercial** usage, in accordance with the CC BY-NC 4.0 license. | |
| ## Note | |
| This is the original version of the repository. It is optimized for cases where no more than 3 speakers overlap at any given time. For scenarios with high speaker overlap (up to 4 simultaneous speakers), the [new repository](https://huggingface.co/BUT-FIT/diarizen-wavlm-large-s80-md-v2) is recommended as it provides significantly better performance under such conditions. | |
| ## Usage | |
| ```python | |
| from diarizen.pipelines.inference import DiariZenPipeline | |
| # load pre-trained model | |
| diar_pipeline = DiariZenPipeline.from_pretrained("BUT-FIT/diarizen-wavlm-large-s80-md") | |
| # apply diarization pipeline | |
| diar_results = diar_pipeline('audio.wav') | |
| # print results | |
| for turn, _, speaker in diar_results.itertracks(yield_label=True): | |
| print(f"start={turn.start:.1f}s stop={turn.end:.1f}s speaker_{speaker}") | |
| # load pre-trained model and save RTTM result | |
| diar_pipeline = DiariZenPipeline.from_pretrained( | |
| "BUT-FIT/diarizen-wavlm-large-s80-md", | |
| rttm_out_dir='.' | |
| ) | |
| # apply diarization pipeline | |
| diar_results = diar_pipeline('audio.wav', sess_name='session_name') | |
| ``` | |
| ## Results (collar=0s) | |
| | Dataset | [Pyannote v3.1](https://github.com/pyannote/pyannote-audio) | DiariZen | | |
| |:---------------|:-----------:|:-----------:| | |
| | AMI | 22.4 | 14.0 | | |
| | AISHELL-4 | 12.2 | 9.8 | | |
| | AliMeeting | 24.4 | 12.5 | | |
| | NOTSOFAR-1 | - | 17.9 | | |
| | MSDWild | 25.3 | 15.6 | | |
| | DIHARD3 | 21.7 | 14.5 | | |
| | RAMC | 22.2 | 11.0 | | |
| | VoxConverse | 11.3 | 9.2 | | |
| ## Citation | |
| If you found this work helpful, please consider citing: | |
| ``` | |
| @inproceedings{han2025leveraging, | |
| title={Leveraging self-supervised learning for speaker diarization}, | |
| author={Han, Jiangyu and Landini, Federico and Rohdin, Johan and Silnova, Anna and Diez, Mireia and Burget, Luk{\'a}{\v{s}}}, | |
| booktitle={Proc. ICASSP}, | |
| year={2025} | |
| } | |
| @article{han2025fine, | |
| title={Fine-tune Before Structured Pruning: Towards Compact and Accurate Self-Supervised Models for Speaker Diarization}, | |
| author={Han, Jiangyu and Landini, Federico and Rohdin, Johan and Silnova, Anna and Diez, Mireia and Cernocky, Jan and Burget, Lukas}, | |
| journal={arXiv preprint arXiv:2505.24111}, | |
| year={2025} | |
| } | |
| @article{han2025efficient, | |
| title={Efficient and Generalizable Speaker Diarization via Structured Pruning of Self-Supervised Models}, | |
| author={Han, Jiangyu and P{\'a}lka, Petr and Delcroix, Marc and Landini, Federico and Rohdin, Johan and Cernock{\`y}, Jan and Burget, Luk{\'a}{\v{s}}}, | |
| journal={arXiv preprint arXiv:2506.18623}, | |
| year={2025} | |
| } | |
| ``` | |
| ## License | |
| - **Source code**: MIT (see the [project’s GitHub repository](https://github.com/BUTSpeechFIT/DiariZen)). | |
| - **Model weights**: CC BY-NC 4.0 (non-commercial). | |
| - Rationale: some training datasets are research-only or non-commercial, so the released weights cannot be used commercially. |