Run this model with HF Jobs
Run bumstern/segmentation_model_russian_data on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/bumstern/segmentation_model_russian_data. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/bumstern/segmentation_model_russian_data on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use bumstern/segmentation_model_russian_data with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- pyannote.audio
How to use bumstern/segmentation_model_russian_data with pyannote.audio:
from pyannote.audio import Model, Inference model = Model.from_pretrained("bumstern/segmentation_model_russian_data") inference = Inference(model) # inference on the whole file inference("file.wav") # inference on an excerpt from pyannote.core import Segment excerpt = Segment(start=2.0, end=5.0) inference.crop("file.wav", excerpt) - Notebooks
- Google Colab
- Kaggle
Segmentation model
This model was trained on AMI-MixHeadset and my own synthetic dataset of Russian speech.
Training time: 5 hours on GTX 3060
This model can be used for diarization model from pyannote/speaker-diarization
| Benchmark | DER% |
|---|---|
| AMI (headset mix, only_words) | 38.8 |
Usage example
import yaml
from yaml.loader import SafeLoader
import torch
from pyannote.audio import Model
from pyannote.audio.pipelines import SpeakerDiarization
segm_model = torch.load('model/segm_model.pth', map_location=torch.device('cpu'))
embed_model = Model.from_pretrained("pyannote/embedding", use_auth_token='ACCESS_TOKEN_GOES_HERE')
diar_pipeline = SpeakerDiarization(
segmentation=segm_model,
segmentation_batch_size=16,
clustering="AgglomerativeClustering",
embedding=embed_model
)
with open('model/config.yaml', 'r') as f:
diar_config = yaml.load(f, Loader=SafeLoader)
diar_pipeline.instantiate(diar_config)
annotation = diar_pipeline('audio.wav')
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support