Skip to content

Commit

Permalink
Update pyannote/audio/pipelines/speech_separation.py
Browse files Browse the repository at this point in the history
Co-authored-by: Hervé BREDIN <[email protected]>
  • Loading branch information
Lebourdais and hbredin authored Oct 23, 2024
1 parent 3bf0cbd commit 6de6952
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyannote/audio/pipelines/speech_separation.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,11 +701,9 @@ def apply(
# re-order sources so that they match
# the order given by diarization.labels()
inverse_mapping = {label: index for index, label in mapping.items()}
original_sliding_window = sources.sliding_window
data = sources.data[
source.data = sources.data[
:, [inverse_mapping[label] for label in diarization.labels()]
]
sources = SlidingWindowFeature(data, original_sliding_window)

if not return_embeddings:
return diarization, sources
Expand Down

0 comments on commit 6de6952

Please sign in to comment.