mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2024-12-29 19:15:04 +08:00
Update gui.py
This commit is contained in:
parent
5928d5358c
commit
4a2c9c062f
2
gui.py
2
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(
|
||||
|
Loading…
Reference in New Issue
Block a user