optimize cli speed

This commit is contained in:
Ftps
2024-01-22 17:28:07 +09:00
parent 10f1860694
commit 1b2808e332

View File

@@ -5,7 +5,7 @@ import click
from dotenv import load_dotenv from dotenv import load_dotenv
from scipy.io import wavfile from scipy.io import wavfile
from rvc.modules.vc.modules import VC
logging.getLogger("numba").setLevel(logging.WARNING) logging.getLogger("numba").setLevel(logging.WARNING)
@@ -109,6 +109,7 @@ def infer(
rmsmixrate, rmsmixrate,
protect, protect,
): ):
from rvc.modules.vc.modules import VC
load_dotenv() load_dotenv()
vc = VC() vc = VC()
vc.get_vc(modelpath) vc.get_vc(modelpath)