mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-01-20 11:00:23 +00:00
Total_fea not needed now. Better and faster retrieval performance.
Total_fea not needed now. Better and faster retrieval performance.
This commit is contained in:
@@ -123,6 +123,7 @@ class VC(object):
|
|||||||
# _, I = index.search(npy, 1)
|
# _, I = index.search(npy, 1)
|
||||||
# npy = big_npy[I.squeeze()]
|
# npy = big_npy[I.squeeze()]
|
||||||
|
|
||||||
|
#by github @nadare881
|
||||||
score, ix = index.search(npy, k=8)
|
score, ix = index.search(npy, k=8)
|
||||||
weight = np.square(1 / score)
|
weight = np.square(1 / score)
|
||||||
weight /= weight.sum(axis=1, keepdims=True)
|
weight /= weight.sum(axis=1, keepdims=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user