From 8054281b24adb70e7270788111bfb63b7ba7caf9 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Wed, 30 Aug 2023 17:46:45 +0800 Subject: [PATCH] Add files via upload --- infer/modules/uvr5/modules.py | 2 +- infer/modules/uvr5/preprocess.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infer/modules/uvr5/modules.py b/infer/modules/uvr5/modules.py index 16ad0a9..db59987 100644 --- a/infer/modules/uvr5/modules.py +++ b/infer/modules/uvr5/modules.py @@ -57,7 +57,7 @@ def uvr(model_name, inp_root, save_root_vocal, paths, save_root_ins, agg, format traceback.print_exc() if need_reformat == 1: tmp_path = "%s/%s.reformatted.wav" % ( - os.path.join("tmp"), + os.path.join(os.environ["TEMP"]), os.path.basename(inp_path), ) os.system( diff --git a/infer/modules/uvr5/preprocess.py b/infer/modules/uvr5/preprocess.py index 26aeada..96eecc4 100644 --- a/infer/modules/uvr5/preprocess.py +++ b/infer/modules/uvr5/preprocess.py @@ -189,7 +189,7 @@ class AudioPreDeEcho: "agg": agg, "high_end_process": "mirroring", } - mp = ModelParameters("lib/uvr5_pack/lib_v5/modelparams/4band_v3.json") + mp = ModelParameters("infer/lib/uvr5_pack/lib_v5/modelparams/4band_v3.json") nout = 64 if "DeReverb" in model_path else 48 model = CascadedNet(mp.param["bins"] * 2, nout) cpk = torch.load(model_path, map_location="cpu")