RVC-Project / RVC-Project/Retrieval-based-Voice-Conversion-WebUI
Conversion fails instantly despite successful training and indexing
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 38.4k
- Forks
- 5.3k
- PR merge metrics
- No merged PRs in 30d
Description
Hi all, I could really use some help.
I’ve successfully trained my model and generated the corresponding .index file using train-index-v2.py. However, no matter what I try, the audio conversion fails instantly with the following error:
2025-06-30 01:56:59 | WARNING | infer.modules.vc.modules | Traceback (most recent call last):
File "C:\\Users\\mys\\Desktop\\Retrieval-based-Voice-Conversion-WebUI\\infer\\modules\\vc\\modules.py", line 172, in vc_single
self.hubert_model = load_hubert(self.config)
File "C:\\Users\\mys\\Desktop\\Retrieval-based-Voice-Conversion-WebUI\\infer\\modules\\vc\\utils.py", line 23, in load_hubert
models, _, _ = checkpoint_utils.load_model_ensemble_and_task(
File "C:\\Users\\mys\\.venv_py310\\lib\\site-packages\\fairseq\\checkpoint_utils.py", line 425, in load_model_ensemble_and_task
state = load_checkpoint_to_cpu(filename, arg_overrides)
File "C:\\Users\\mys\\.venv_py310\\lib\\site-packages\\fairseq\\checkpoint_utils.py", line 317, in load_checkpoint_to_cpu
if "args" in state and state["args"] is not None and arg_overrides is not None:
TypeError: argument of type 'NoneType' is not iterable
Then Gradio throws this:
AttributeError: 'NoneType' object has no attribute 'tobytes'
It seems like HuBERT fails to load but I’ve double-checked that the hubert.pt file is definitely present in assets/hubert.
Has anyone run into this before? Any ideas how I can fix this?
Thanks in advance!
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 in infer/modules/vc/modules.py at vc_single and infer/modules/vc/utils.py at load_hubert, then inspect the fairseq checkpoint-loading traceback using the hubert.pt file under assets/hubert. Reproduce the conversion failure and trace why model loading returns None; done means conversion produces audio without the Gradio NoneType error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- audio-video-rtc, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100