From 206827bfe1158f5ff38557eda6847425bb8f80ca Mon Sep 17 00:00:00 2001 From: vikcost <152401927+vikcost@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:48:36 -0800 Subject: [PATCH] Update utils.py Sorting once is sufficient --- wespeaker/utils/utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/wespeaker/utils/utils.py b/wespeaker/utils/utils.py index 4514102d..44564da7 100644 --- a/wespeaker/utils/utils.py +++ b/wespeaker/utils/utils.py @@ -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