[GH-ISSUE #25] Index file argument broken #21

Open
opened 2026-10-20 09:53:10 +00:00 by bsakaguchi · 5 comments
Owner

Originally created by @shirounanashi on GitHub (Mar 29, 2024).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/issues/25

When I set the index rate to 0.75 or 0.7 (I haven't tried with other values) this message appears.

Traceback (most recent call last):
  File "D:\Biblioteca\Documentos\RVC Project\Retrieval-based-Voice-Conversion-develop\rvc\modules\vc\pipeline.py", line 307, in pipeline
    index = faiss.read_index(file_index)
  File "C:\Users\Guilherme\AppData\Local\Programs\Python\Python310\lib\site-packages\faiss\swigfaiss_avx2.py", line 10409, in read_index
    return _swigfaiss_avx2.read_index(*args)
TypeError: Wrong number or type of arguments for overloaded function 'read_index'.
  Possible C/C++ prototypes are:
    faiss::read_index(char const *,int)
    faiss::read_index(char const *)
    faiss::read_index(FILE *,int)
    faiss::read_index(FILE *)
    faiss::read_index(faiss::IOReader *,int)
    faiss::read_index(faiss::IOReader *)
Originally created by @shirounanashi on GitHub (Mar 29, 2024). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/issues/25 When I set the index rate to 0.75 or 0.7 (I haven't tried with other values) this message appears. ``` Traceback (most recent call last): File "D:\Biblioteca\Documentos\RVC Project\Retrieval-based-Voice-Conversion-develop\rvc\modules\vc\pipeline.py", line 307, in pipeline index = faiss.read_index(file_index) File "C:\Users\Guilherme\AppData\Local\Programs\Python\Python310\lib\site-packages\faiss\swigfaiss_avx2.py", line 10409, in read_index return _swigfaiss_avx2.read_index(*args) TypeError: Wrong number or type of arguments for overloaded function 'read_index'. Possible C/C++ prototypes are: faiss::read_index(char const *,int) faiss::read_index(char const *) faiss::read_index(FILE *,int) faiss::read_index(FILE *) faiss::read_index(faiss::IOReader *,int) faiss::read_index(faiss::IOReader *) ```
Author
Owner

@shirounanashi commented on GitHub (Mar 29, 2024):

Testing further, I discovered that it has nothing to do with the index rate, but with the keyword argument index file

<!-- gh-comment-id:2027461173 --> @shirounanashi commented on GitHub (Mar 29, 2024): Testing further, I discovered that it has nothing to do with the index rate, but with the keyword argument index file
Author
Owner

@PeterTucker commented on GitHub (May 28, 2024):

@shirounanashi how did you fix this? I'm getting the same error. Thanks!

<!-- gh-comment-id:2135942111 --> @PeterTucker commented on GitHub (May 28, 2024): @shirounanashi how did you fix this? I'm getting the same error. Thanks!
Author
Owner

@shirounanashi commented on GitHub (May 29, 2024):

@PeterTucker Sorry, but as far as I remember, I couldn't fix it

<!-- gh-comment-id:2137567340 --> @shirounanashi commented on GitHub (May 29, 2024): @PeterTucker Sorry, but as far as I remember, I couldn't fix it
Author
Owner

@PeterTucker commented on GitHub (Jun 1, 2024):

@shirounanashi @Tps-F yeah, looks like it doesn't work for right now.

<!-- gh-comment-id:2143440349 --> @PeterTucker commented on GitHub (Jun 1, 2024): @shirounanashi @Tps-F yeah, looks like it doesn't work for right now.
Author
Owner

@Tps-F commented on GitHub (Jun 1, 2024):

I'm sorry I couldn't fix it right now
I'll check it

<!-- gh-comment-id:2143440859 --> @Tps-F commented on GitHub (Jun 1, 2024): I'm sorry I couldn't fix it right now I'll check it
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion#21
No description provided.