Update gui.py

This commit is contained in:
RVC-Boss 2023-05-11 14:29:56 +00:00 committed by GitHub
parent c84371844a
commit ef016ae6a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
gui.py
View File

@ -133,7 +133,7 @@ class RVC:
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(
npy = np.sum(self.big_npy[ix] * np.expand_dims(weight, axis=2), axis=1).astype(
"float16"
)