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

AttributeError: 'RVC' object has no attribute 'tgt_sr'

Open
#2,315 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
38.4k
Forks
5.3k
PR merge metrics
No merged PRs in 30d

Description

i get a crash and this error when starting the voice conversion:

C:\Users\mouse\Programs\Retrieval-based-Voice-Conversion-WebUI>gui_v1.py
2024-09-19 23:01:44 | INFO | faiss.loader | Loading faiss with AVX2 support.
2024-09-19 23:01:44 | INFO | faiss.loader | Could not load library with AVX2 support due to:
ModuleNotFoundError("No module named 'faiss.swigfaiss_avx2'")
2024-09-19 23:01:44 | INFO | faiss.loader | Loading faiss.
2024-09-19 23:01:44 | INFO | faiss.loader | Successfully loaded faiss.
2024-09-19 23:01:44 | INFO | configs.config | Found GPU NVIDIA GeForce RTX 4060 Ti
2024-09-19 23:01:44 | INFO | configs.config | Half-precision floating-point: True, device: cuda:0
Input device: 1:CABLE Output (VB-Audio Virtual
Output device: 4:Headphones (UC USB Headset)
cuda_is_available: True
Traceback (most recent call last):
  File "C:\Users\mouse\Programs\Retrieval-based-Voice-Conversion-WebUI\infer\lib\rtrvc.py", line 99, in __init__
    models, _, _ = fairseq.checkpoint_utils.load_model_ensemble_and_task(
  File "C:\Users\mouse\AppData\Roaming\Python\Python310\site-packages\fairseq\checkpoint_utils.py", line 423, in load_model_ensemble_and_task
    raise IOError("Model file not found: {}".format(filename))
OSError: Model file not found: assets/hubert/hubert_base.pt

Traceback (most recent call last):
  File "C:\Users\mouse\Programs\Retrieval-based-Voice-Conversion-WebUI\gui_v1.py", line 1070, in <module>
    gui = GUI()
  File "C:\Users\mouse\Programs\Retrieval-based-Voice-Conversion-WebUI\gui_v1.py", line 150, in __init__
    self.launcher()
  File "C:\Users\mouse\Programs\Retrieval-based-Voice-Conversion-WebUI\gui_v1.py", line 532, in launcher
    self.event_handler()
  File "C:\Users\mouse\Programs\Retrieval-based-Voice-Conversion-WebUI\gui_v1.py", line 566, in event_handler
    self.start_vc()
  File "C:\Users\mouse\Programs\Retrieval-based-Voice-Conversion-WebUI\gui_v1.py", line 805, in start_vc
    if self.rvc.tgt_sr != self.gui_config.samplerate:
AttributeError: 'RVC' object has no attribute 'tgt_sr'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with gui_v1.py, especially start_vc and the call to infer/lib/rtrvc.py where RVC initialization fails. Check how the missing assets/hubert/hubert_base.pt error affects initialization, then reproduce startup and verify that voice conversion proceeds without the subsequent tgt_sr AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
audio-video-rtc, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.