We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9be8048 commit dc0c875Copy full SHA for dc0c875
1 file changed
vc_infer_pipeline.py
@@ -123,6 +123,7 @@ def vc(
123
# _, I = index.search(npy, 1)
124
# npy = big_npy[I.squeeze()]
125
126
+ #by github @nadare881
127
score, ix = index.search(npy, k=8)
128
weight = np.square(1 / score)
129
weight /= weight.sum(axis=1, keepdims=True)
0 commit comments