From fc85f34596b5e2768de618a36508fc5bf9ec7bda Mon Sep 17 00:00:00 2001
From: 志浩 <neo.dzh@alibaba-inc.com>
Date: 星期四, 23 二月 2023 22:05:54 +0800
Subject: [PATCH] sond pipeline
---
egs/mars/sd/scripts/real_meeting_process/dump_real_meeting_chunks.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/egs/mars/sd/scripts/real_meeting_process/dump_real_meeting_chunks.py b/egs/mars/sd/scripts/real_meeting_process/dump_real_meeting_chunks.py
index 762d4c1..ce0700b 100644
--- a/egs/mars/sd/scripts/real_meeting_process/dump_real_meeting_chunks.py
+++ b/egs/mars/sd/scripts/real_meeting_process/dump_real_meeting_chunks.py
@@ -25,7 +25,7 @@
print("Speaker {} has only {} frames, but expect {} frames at least, use them all.".format(spk, count, 300))
short_spk_list.append(spk)
- ivc_list = [kaldiio.load_mat(utt2ivc[utt])[np.newaxis, :] for utt in utt_list]
+ ivc_list = [kaldiio.load_mat(utt2ivc[utt]) for utt in utt_list]
ivc = np.concatenate(ivc_list, axis=0)
ivc = np.mean(ivc, axis=0, keepdims=False)
return ivc
@@ -56,7 +56,7 @@
xvec_list = []
for spk in meeting2spk_list[mid]:
- spk_xvec = calc_rand_ivc(spk, spk2utt, utt2xvec, utt2frames, 1000)[np.newaxis, :]
+ spk_xvec = calc_rand_ivc(spk, spk2utt, utt2xvec, utt2frames, 1000)
xvec_list.append(spk_xvec)
for _ in range(args.n_spk - len(xvec_list)):
xvec_list.append(np.zeros((ivc_dim,), dtype=np.float32))
--
Gitblit v1.9.1