RVC-Project / RVC-Project/Retrieval-based-Voice-Conversion-WebUI
Cannot find .index file even after separate Index training
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 38.4k
- Forks
- 5.3k
- PR merge metrics
- No merged PRs in 30d
Description
I first used the one-click training and it was missing the .index file, so I followed the instructions on other Issues tabs and the wiki. But after training feature index saparately, this happens.
File "C:\Users\edenw\OneDrive\桌面\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\routes.py", line 321, in run_predict
output = await app.blocks.process_api(
File "C:\Users\edenw\OneDrive\桌面\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\blocks.py", line 1006, in process_api
result = await self.call_function(fn_index, inputs, iterator, request)
File "C:\Users\edenw\OneDrive\桌面\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\blocks.py", line 859, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\Users\edenw\OneDrive\桌面\RVC-beta-v2-0528\runtime\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\Users\edenw\OneDrive\桌面\RVC-beta-v2-0528\runtime\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "C:\Users\edenw\OneDrive\桌面\RVC-beta-v2-0528\runtime\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
result = context.run(func, *args)
File "C:\Users\edenw\OneDrive\桌面\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\utils.py", line 408, in async_iteration
return next(iterator)
File "C:\Users\edenw\OneDrive\桌面\RVC-beta-v2-0528\infer-web.py", line 804, in train_index
faiss.write_index(
File "C:\Users\edenw\OneDrive\桌面\RVC-beta-v2-0528\runtime\lib\site-packages\faiss\swigfaiss.py", line 8255, in write_index
return _swigfaiss.write_index(*args)
RuntimeError: Error in __cdecl faiss::FileIOWriter::FileIOWriter(const char *) at D:\a\faiss-wheels\faiss-wheels\faiss\faiss\impl\io.cpp:98: Error: 'f' failed: could not open C:\Users\edenw\OneDrive\桌面\RVC-beta-v2-0528/logs/my-voice/trained_IVF275_Flat_nprobe_1_my-voice_v2.index for writing: No such file or directory```
I might have missed a past Issue or two, but I genuinely couldn't figure out how to fix it.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at infer-web.py line 804 and inspect the separate index-training flow around the faiss.write_index call. Reproduce the failure using the traceback's training setup and verify the expected logs/my-voice output path. Done means the index-training flow completes and writes the .index file without the reported FileIOWriter error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100