Update gui.py

This commit is contained in:
RVC-Boss 2023-05-07 17:42:30 +00:00 committed by GitHub
parent 5928d5358c
commit 4a2c9c062f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
gui.py
View File

@ -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(