From dc0c8756b5e1732df92fbed9b1dc87dcc2e2f566 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Wed, 26 Apr 2023 19:17:48 +0800 Subject: [PATCH] Total_fea not needed now. Better and faster retrieval performance. Total_fea not needed now. Better and faster retrieval performance. --- vc_infer_pipeline.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vc_infer_pipeline.py b/vc_infer_pipeline.py index 1db5e56..6ff5eb5 100644 --- a/vc_infer_pipeline.py +++ b/vc_infer_pipeline.py @@ -123,6 +123,7 @@ class VC(object): # _, I = index.search(npy, 1) # npy = big_npy[I.squeeze()] + #by github @nadare881 score, ix = index.search(npy, k=8) weight = np.square(1 / score) weight /= weight.sum(axis=1, keepdims=True)