mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-01-17 20:00:09 +08:00
fix lib path
This commit is contained in:
parent
29ae9d9d28
commit
87a3a4ea38
@ -10,7 +10,7 @@ import logging
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pyworld
|
import pyworld
|
||||||
from lib.audio import load_audio
|
from infer.lib.audio import load_audio
|
||||||
|
|
||||||
logging.getLogger("numba").setLevel(logging.WARNING)
|
logging.getLogger("numba").setLevel(logging.WARNING)
|
||||||
from multiprocessing import Process
|
from multiprocessing import Process
|
||||||
@ -82,7 +82,7 @@ class FeatureInput(object):
|
|||||||
f0 = pyworld.stonemask(x.astype(np.double), f0, t, self.fs)
|
f0 = pyworld.stonemask(x.astype(np.double), f0, t, self.fs)
|
||||||
elif f0_method == "rmvpe":
|
elif f0_method == "rmvpe":
|
||||||
if hasattr(self, "model_rmvpe") == False:
|
if hasattr(self, "model_rmvpe") == False:
|
||||||
from lib.rmvpe import RMVPE
|
from infer.lib.rmvpe import RMVPE
|
||||||
|
|
||||||
print("loading rmvpe model")
|
print("loading rmvpe model")
|
||||||
self.model_rmvpe = RMVPE(
|
self.model_rmvpe = RMVPE(
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pyworld
|
import pyworld
|
||||||
from lib.audio import load_audio
|
from infer.lib.audio import load_audio
|
||||||
|
|
||||||
logging.getLogger("numba").setLevel(logging.WARNING)
|
logging.getLogger("numba").setLevel(logging.WARNING)
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ class FeatureInput(object):
|
|||||||
# p_len = x.shape[0] // self.hop
|
# p_len = x.shape[0] // self.hop
|
||||||
if f0_method == "rmvpe":
|
if f0_method == "rmvpe":
|
||||||
if hasattr(self, "model_rmvpe") == False:
|
if hasattr(self, "model_rmvpe") == False:
|
||||||
from lib.rmvpe import RMVPE
|
from infer.lib.rmvpe import RMVPE
|
||||||
|
|
||||||
print("loading rmvpe model")
|
print("loading rmvpe model")
|
||||||
self.model_rmvpe = RMVPE(
|
self.model_rmvpe = RMVPE(
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pyworld
|
import pyworld
|
||||||
from lib.audio import load_audio
|
from infer.lib.audio import load_audio
|
||||||
|
|
||||||
logging.getLogger("numba").setLevel(logging.WARNING)
|
logging.getLogger("numba").setLevel(logging.WARNING)
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ class FeatureInput(object):
|
|||||||
# p_len = x.shape[0] // self.hop
|
# p_len = x.shape[0] // self.hop
|
||||||
if f0_method == "rmvpe":
|
if f0_method == "rmvpe":
|
||||||
if hasattr(self, "model_rmvpe") == False:
|
if hasattr(self, "model_rmvpe") == False:
|
||||||
from lib.rmvpe import RMVPE
|
from infer.lib.rmvpe import RMVPE
|
||||||
|
|
||||||
print("loading rmvpe model")
|
print("loading rmvpe model")
|
||||||
self.model_rmvpe = RMVPE(
|
self.model_rmvpe = RMVPE(
|
||||||
|
Loading…
Reference in New Issue
Block a user