Instructions to use pyannote/ci-segmentation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- pyannote.audio
How to use pyannote/ci-segmentation with pyannote.audio:
from pyannote.audio import Model, Inference model = Model.from_pretrained("pyannote/ci-segmentation") 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
Hervé BREDIN commited on
Commit ·
3a5e33c
1
Parent(s): dd586f4
initial import
Browse filesFiles changed (3)
- README.md+16
- config.yamlAdded+61
- pytorch_model.binAdded+3
12345678910111213141516171819---tags: - pyannote - pyannote-audio - pyannote-audio-modellicense: mitinference: false---
Dummy segmentation model used for continuous integration and unit tests.
```bashpyannote-audio-train \ +registry="[REDACTED]/pyannote-audio/tutorials/AMI-diarization-setup/pyannote/database.yml" \ protocol=AMI.SpeakerDiarization.only_words \ model=DebugSegmentation \ task=SpeakerDiarization \ trainer.max_epochs=1```12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061task: _target_: pyannote.audio.tasks.SpeakerDiarization duration: 5.0 max_speakers_per_chunk: 3 max_speakers_per_frame: 2 batch_size: 32 num_workers: 10 pin_memory: falsemodel: _target_: pyannote.audio.models.segmentation.debug.SimpleSegmentationModeloptimizer: _target_: torch.optim.Adam lr: 0.001 betas: - 0.9 - 0.999 eps: 1.0e-08 weight_decay: 0 amsgrad: falsescheduler: _target_: pyannote.audio.cli.lr_schedulers.CosineAnnealingWarmRestarts min_lr: 1.0e-08 max_lr: 0.001 patience: 1trainer: _target_: pytorch_lightning.Trainer accelerator: auto accumulate_grad_batches: 1 benchmark: null deterministic: false check_val_every_n_epoch: 1 devices: auto detect_anomaly: false enable_checkpointing: true enable_model_summary: true enable_progress_bar: true fast_dev_run: false gradient_clip_val: null gradient_clip_algorithm: norm limit_predict_batches: 1.0 limit_test_batches: 1.0 limit_train_batches: 1.0 limit_val_batches: 1.0 log_every_n_steps: 50 max_epochs: 1 max_steps: -1 max_time: null min_epochs: 1 min_steps: null num_nodes: 1 num_sanity_val_steps: 2 overfit_batches: 0.0 precision: 32 profiler: null reload_dataloaders_every_n_epochs: 0 use_distributed_sampler: true strategy: auto sync_batchnorm: false val_check_interval: 1.0protocol: AMI.SpeakerDiarization.only_wordsregistry: REDACTED/pyannote-audio/tutorials/AMI-diarization-setup/pyannote/database.yml123version https://git-lfs.github.com/spec/v1oid sha256:7656a3ba0cd193c2f9eb17fe2e5925c1eb680bc4d63fe4a2c92eeb2c574a7d2bsize 375564README.md+16
config.yamlAdded+61
pytorch_model.binAdded+3