Skip to content

Performance issue on the embeddings step #1955

@kenenbek

Description

@kenenbek

Tested versions

pyannote.audio-4.0.1
pyannote.audio-4.0.2

System information

Description: Ubuntu 24.04.3 LTS Release: 24.04

Issue description

I used a pyannote on a five mins long audio. Segmentation, speaker_counting take just 2 seconds. But embeddings takes a really long time. My GPU is RTX-4070.

My versions:

pyannote.audio-4.0.2
torchcodec-0.7.0
torch '2.8.0+cu128'
numpy-2.3.5
segmentation     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:02
speaker_counting ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
embeddings       ━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━  50% 0:08:35

Minimal reproduction example (MRE)

https://gist.github.com/kenenbek/22c66fb788487f64ce8ecacfe1626535

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions