Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
Sorting once is sufficient
  • Loading branch information
vikcost authored Nov 6, 2024
1 parent e9bbf73 commit 206827b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion wespeaker/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def spk2id(utt_spk_list):
spk_list = sorted(list(set(spk_list))) # remove overlap and sort

spk2id_dict = {}
spk_list.sort()
for i, spk in enumerate(spk_list):
spk2id_dict[spk] = i
return spk2id_dict

0 comments on commit 206827b

Please sign in to comment.