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

AttributeError: 'RVC' object has no attribute 'tgt_sr'报错无法解决

Open
#2,614 2 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

AttributeError: 'RVC' object has no attribute 'tgt_sr'。
尝试使用自己炼制的index和pth文件,会报这个错误。
然后将自己的pth文件和index文件分别放到assest/weights这个文件夹和logs文件夹下,然后选择,依然报这个错误。这个错误需要怎么解决?

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

Reproduce the error using the custom .pth file in assets/weights and the index file in logs, then trace where the RVC object is expected to receive tgt_sr. Compare the custom files with a working model and document the required model metadata or loading conditions so selection completes without the AttributeError.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.