1
0
mirror of synced 2024-11-27 17:00:54 +01:00

fix lib path

This commit is contained in:
Ftps 2023-08-28 16:27:51 +09:00
parent 29ae9d9d28
commit 87a3a4ea38
3 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ import logging
import numpy as np
import pyworld
from lib.audio import load_audio
from infer.lib.audio import load_audio
logging.getLogger("numba").setLevel(logging.WARNING)
from multiprocessing import Process
@ -82,7 +82,7 @@ class FeatureInput(object):
f0 = pyworld.stonemask(x.astype(np.double), f0, t, self.fs)
elif f0_method == "rmvpe":
if hasattr(self, "model_rmvpe") == False:
from lib.rmvpe import RMVPE
from infer.lib.rmvpe import RMVPE
print("loading rmvpe model")
self.model_rmvpe = RMVPE(

View File

@ -10,7 +10,7 @@ import logging
import numpy as np
import pyworld
from lib.audio import load_audio
from infer.lib.audio import load_audio
logging.getLogger("numba").setLevel(logging.WARNING)
@ -45,7 +45,7 @@ class FeatureInput(object):
# p_len = x.shape[0] // self.hop
if f0_method == "rmvpe":
if hasattr(self, "model_rmvpe") == False:
from lib.rmvpe import RMVPE
from infer.lib.rmvpe import RMVPE
print("loading rmvpe model")
self.model_rmvpe = RMVPE(

View File

@ -10,7 +10,7 @@ import logging
import numpy as np
import pyworld
from lib.audio import load_audio
from infer.lib.audio import load_audio
logging.getLogger("numba").setLevel(logging.WARNING)
@ -43,7 +43,7 @@ class FeatureInput(object):
# p_len = x.shape[0] // self.hop
if f0_method == "rmvpe":
if hasattr(self, "model_rmvpe") == False:
from lib.rmvpe import RMVPE
from infer.lib.rmvpe import RMVPE
print("loading rmvpe model")
self.model_rmvpe = RMVPE(