RVC-Project/Retrieval-based-Voice-Conversion-WebUI

Accelerating Faiss retrieval using FastScan in Faiss

開放

#27 建立於 2023年4月10日

 (10 則留言) (0 個反應) (0 位負責人)Python (2,849 個分叉)batch import
enhancementgood first issue

倉庫指標

星標
 (18,427 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Thank you for the amazing software. I am particularly interested in the interesting applications of vector search. I am still in the process of setting up, but I plan to try running it soon.

While reading the source code, I noticed a point of concern in the faiss part and created an issue.

Currently, IVF512 is used in retrieval. While I think this is simple and effective as a baseline on the GPU, I believe there are better index factory options when running on the CPU. https://github.com/liujing04/Retrieval-based-Voice-Conversion-WebUI/blob/6c7c1d933ffe2217edc74afadff7eec0078d6d16/infer/train-index.py#L19

This can be done using the FastScan method, by simply changing the index factory from "IVF512,Flat" to "IVF512PQ128x4fsr,Rflat" (512 is the original IVF's parameter, PQ128 indicates half of 256 dimention).

Since I haven't been able to run RVC yet, I'm not sure if this parameter is effective, but in most cases, it works effectively on both the CPU and GPU. Once I run it and find it effective, I will report back in this issue.

貢獻者指南