Skip to content

Commit

Permalink
fix: fix computation of same_chunk matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
hbredin committed Jan 28, 2022
1 parent fc81b00 commit fd0c42c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyannote/audio/pipelines/speaker_diarization.py
Expand Up @@ -417,7 +417,10 @@ def oracle_cost_func(Y, y):
for i in permutation
]
)
chunk_idx.extend([c] * len(permutation))
chunk_idx.extend([
c if ((i is not None) and (active_reference[i])) else -1
for i in permutation
])

oracle_clusters = np.array(oracle_clusters)
oracle = 1.0 * squareform(pdist(oracle_clusters, metric="equal"))
Expand Down

0 comments on commit fd0c42c

Please sign in to comment.