Skip to content

Commit

Permalink
chore: vc_single -> vc_inference
Browse files Browse the repository at this point in the history
  • Loading branch information
Tps-F committed Mar 7, 2024
1 parent cf00b3f commit 4918cd3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ from rvc.modules.vc.modules import VC
def main():
vc = VC()
vc.get_vc("{model.pth}")
tgt_sr, audio_opt, times, _ = vc.vc_single(
tgt_sr, audio_opt, times, _ = vc.vc_inference(
1, Path("{InputAudio}")
)
wavfile.write("{OutputAudio}", tgt_sr, audio_opt)
Expand Down
4 changes: 2 additions & 2 deletions rvc/modules/vc/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_vc(self, sid: str, *to_return_protect: int):

return self.n_spk, return_protect, index

def vc_single(
def vc_inference(
self,
sid: int,
input_audio_path: Path,
Expand Down Expand Up @@ -164,7 +164,7 @@ def vc_multi(
paths = [path.name for path in paths]
infos = []
for path in paths:
tgt_sr, audio_opt, _, info = self.vc_single(
tgt_sr, audio_opt, _, info = self.vc_inference(
sid,
Path(path),
f0_up_key,
Expand Down
2 changes: 1 addition & 1 deletion rvc/wrapper/api/endpoints/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def inference(
):
vc = VC()
vc.get_vc(modelpath)
tgt_sr, audio_opt, times, _ = vc.vc_single(
tgt_sr, audio_opt, times, _ = vc.vc_inference(
sid,
input,
f0_up_key,
Expand Down
2 changes: 1 addition & 1 deletion rvc/wrapper/cli/handler/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def infer(
load_dotenv()
vc = VC()
vc.get_vc(modelpath)
tgt_sr, audio_opt, times, _ = vc.vc_single(
tgt_sr, audio_opt, times, _ = vc.vc_inference(
sid,
inputpath,
f0upkey,
Expand Down

0 comments on commit 4918cd3

Please sign in to comment.