mirror of
https://github.com/pyannote/pyannote-audio.git
synced 2026-11-20 13:07:51 +09:00
* feat(cli): add --subfolder option to benchmark command (#2063) * fix(utils): fix `SpeakerDiarizationMixin.optimal_mapping` when `reference` is a mapping * fix(task): fix `balance` option crashing training with `KeyError: 'metadata'` (#2067) * fix(io): fix `Audio.crop` raising when an in-memory waveform is cropped up to its very end (#2068) * fix(model): make Model.default_activation return identity for unsupported tasks * fix: compute sample duration from preloaded waveform * fix(pipeline): omit unset runtime options from model references (#2080) Co-authored-by: abeeranajam31 <128603901+abeeranajam31@users.noreply.github.com> Co-authored-by: antoinelaurent <antoinelaurent@me.com> Co-authored-by: Kayvan Zahiri <123409429+Kayvan-Zahiri@users.noreply.github.com> Co-authored-by: Mohammad Hijjawi <51020382+MohammadHijjawi97@users.noreply.github.com>
81 lines
2.1 KiB
TOML
81 lines
2.1 KiB
TOML
[project]
|
|
name = "pyannote-audio"
|
|
description = "State-of-the-art speaker diarization toolkit"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
authors = [{ name = "Hervé BREDIN", email = "herve@pyannote.ai" }]
|
|
requires-python = ">=3.11"
|
|
|
|
dynamic = ["version"]
|
|
|
|
dependencies = [
|
|
"asteroid-filterbanks>=0.4.0",
|
|
"einops>=0.8.1",
|
|
"huggingface-hub>=0.28.1",
|
|
"lightning>=2.4",
|
|
"opentelemetry-api>=1.34.0",
|
|
"opentelemetry-sdk>=1.34.0",
|
|
"opentelemetry-exporter-otlp>=1.34.0",
|
|
"pyannote-core>=6.0.1",
|
|
"pyannote-database>=6.1.1",
|
|
"pyannote-metrics>=4.0.0",
|
|
"pyannote-pipeline>=4.0.0",
|
|
"pytorch-metric-learning>=2.8.1",
|
|
"rich>=13.9.4",
|
|
"safetensors>=0.5.2",
|
|
"torch-audiomentations>=0.12.0",
|
|
"torch>=2.8.0",
|
|
"torchaudio>=2.8.0",
|
|
"torchcodec>=0.7.0",
|
|
"torchmetrics>=1.6.1",
|
|
"matplotlib>=3.11.0",
|
|
"pyannoteai-sdk>=0.3.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
pyannote-audio = "pyannote.audio.__main__:app"
|
|
|
|
[project.optional-dependencies]
|
|
test = ["papermill>=2.6.0", "pytest>=8.3.4"]
|
|
doc = ["sphinx-rtd-theme>=3.0.2", "sphinx>=8.1.3"]
|
|
cli = ["typer>=0.15.1"]
|
|
separation = ["asteroid>=0.5.2", "transformers>=4.48.3"]
|
|
dev = ["ipython>=8.32.0"]
|
|
|
|
[build-system]
|
|
requires = ["hatchling==1.32.0", "hatch-vcs"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.version]
|
|
source = "vcs"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/pyannote"]
|
|
|
|
[tool.hatch.build.targets.sdist]
|
|
include = [
|
|
"/src", "/tests", "/doc", "/README.md", "/CHANGELOG.md", "/LICENSE",
|
|
"/pyproject.toml",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = ["ipykernel>=6.29.5"]
|
|
|
|
[tool.pytest.ini_options]
|
|
markers = [
|
|
"network: downloads public models from Hugging Face",
|
|
"notebook: executes historical tutorial notebooks (opt in explicitly)",
|
|
]
|
|
addopts = "-m 'not notebook'"
|
|
|
|
[tool.ruff]
|
|
target-version = "py311"
|
|
# Historical notebooks target older APIs and are maintained separately.
|
|
extend-exclude = ["*.ipynb", "tutorials/AMI-diarization-setup"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E4", "E7", "E9", "F", "I", "UP"]
|
|
# Imports intentionally follow version initialization or notebook setup.
|
|
# Preserve existing enum string behavior and mathematical variable names.
|
|
ignore = ["E402", "E741", "UP042"]
|