From 4a2c9c062f325e9c6b3e0616f682e2cbf91750b0 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Sun, 7 May 2023 17:42:30 +0000 Subject: [PATCH] Update gui.py --- gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.py b/gui.py index f8415c0..2d1fd3c 100644 --- a/gui.py +++ b/gui.py @@ -130,7 +130,7 @@ class RVC: # _, I = self.index.search(npy, 1) # npy = self.big_npy[I.squeeze()].astype("float16") - score, ix = index.search(npy, k=8) + score, ix = self.index.search(npy, k=8) weight = np.square(1 / score) weight /= weight.sum(axis=1, keepdims=True) npy = np.sum(big_npy[ix] * np.expand_dims(weight, axis=2), axis=1).astype(