ozipoetra
commited on
Commit
·
142d247
1
Parent(s):
62d077f
fix
Browse files- app.py +2 -2
- assets/{rvmpe → rmvpe}/req-rvmpe.txt +0 -0
- assets/{rvmpe → rmvpe}/rmvpe.pt +0 -0
- lib/vc/vc_infer_pipeline.py +1 -1
app.py
CHANGED
@@ -58,8 +58,8 @@ else:
|
|
58 |
f0method_mode = ["pm", "harvest", "crepe"]
|
59 |
f0method_info = "PM is fast, Harvest is good but extremely slow, Rvmpe is alternative to harvest (might be better), and Crepe effect is good but requires GPU (Default: PM)"
|
60 |
|
61 |
-
if os.path.isfile("assets/
|
62 |
-
f0method_mode.insert(2, "
|
63 |
|
64 |
def create_vc_fn(model_name, tgt_sr, net_g, vc, if_f0, version, file_index):
|
65 |
def vc_fn(
|
|
|
58 |
f0method_mode = ["pm", "harvest", "crepe"]
|
59 |
f0method_info = "PM is fast, Harvest is good but extremely slow, Rvmpe is alternative to harvest (might be better), and Crepe effect is good but requires GPU (Default: PM)"
|
60 |
|
61 |
+
if os.path.isfile("assets/rmvpe/rmvpe.pt"):
|
62 |
+
f0method_mode.insert(2, "rmvpe")
|
63 |
|
64 |
def create_vc_fn(model_name, tgt_sr, net_g, vc, if_f0, version, file_index):
|
65 |
def vc_fn(
|
assets/{rvmpe → rmvpe}/req-rvmpe.txt
RENAMED
File without changes
|
assets/{rvmpe → rmvpe}/rmvpe.pt
RENAMED
File without changes
|
lib/vc/vc_infer_pipeline.py
CHANGED
@@ -133,7 +133,7 @@ class VC(object):
|
|
133 |
|
134 |
print("loading rmvpe model")
|
135 |
self.model_rmvpe = RMVPE(
|
136 |
-
os.path.join("assets", "
|
137 |
)
|
138 |
f0 = self.model_rmvpe.infer_from_audio(x, thred=0.03)
|
139 |
f0 *= pow(2, f0_up_key / 12)
|
|
|
133 |
|
134 |
print("loading rmvpe model")
|
135 |
self.model_rmvpe = RMVPE(
|
136 |
+
os.path.join("assets", "rmvpe", "rmvpe.pt"), is_half=self.is_half, device=self.device
|
137 |
)
|
138 |
f0 = self.model_rmvpe.infer_from_audio(x, thred=0.03)
|
139 |
f0 *= pow(2, f0_up_key / 12)
|