Skip to content

Commit

Permalink
fix: increase support to avoid rounding errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hbredin committed Jan 28, 2022
1 parent e4298a4 commit fc81b00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyannote/audio/pipelines/speaker_diarization.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,9 @@ def oracle_cost_func(Y, y):
)

chunks = segmentations.sliding_window
support = Segment(chunks[0].start, chunks[num_chunks - 1].end)

reference = file["annotation"].discretize(
support=support, resolution=self._frames,
support=Segment(chunks[0].start, chunks[num_chunks - 1].end + chunks.step),
resolution=self._frames,
)

oracle_clusters = []
Expand Down

0 comments on commit fc81b00

Please sign in to comment.