Skip to content

Commit

Permalink
chore: remove unused return (#1759)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbredin authored Oct 8, 2024
1 parent bd62a89 commit 5832510
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pyannote/audio/pipelines/speech_separation.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ def reconstruct(
clustered_segmentations, segmentations.sliding_window
)
return clustered_segmentations
return self.to_diarization(clustered_segmentations, count)

def apply(
self,
Expand Down Expand Up @@ -644,9 +643,9 @@ def apply(
len(speaker_activation), dtype=float
)

speaker_activation_with_context[np.concatenate(remaining_zeros)] = (
0.0
)
speaker_activation_with_context[
np.concatenate(remaining_zeros)
] = 0.0

discrete_diarization.data.T[i] = speaker_activation_with_context
num_sources = sources.data.shape[1]
Expand Down

0 comments on commit 5832510

Please sign in to comment.