fix: fix cluster re-numbering in VBx (#1918)

This commit is contained in:
Hervé BREDIN authored and GitHub committed 2025-09-12 13:53:13 +02:00
1 parent d287331fd7
commit 1fcd256e4c
1 file changed
+1 -3
+1 -3
View File
@@ -664,10 +664,8 @@ class VBxClustering(BaseClustering):
else:
hard_clusters = np.argmax(soft_clusters, axis=2)
# re-number clusters from 0 to num_large_clusters
_, hard_clusters = np.unique(hard_clusters, return_inverse=True)
hard_clusters = hard_clusters.reshape(num_chunks, num_speakers)
return hard_clusters, soft_clusters, centroids