optimize: move vc_infer_pipeline to lib.train

This commit is contained in:
源文雨 2023-08-27 00:43:06 +08:00
parent 8c36dc2cc7
commit e67cf66fe0
5 changed files with 4 additions and 4 deletions

2
app.py
View File

@ -7,7 +7,7 @@ import librosa
import numpy as np
import logging
from fairseq import checkpoint_utils
from vc_infer_pipeline import VC
from lib.train.vc_infer_pipeline import VC
import traceback
from config import defaultconfig as config
from lib.infer_pack.models import (

View File

@ -35,7 +35,7 @@ from lib.infer_pack.models_onnx import SynthesizerTrnMsNSFsidM
from infer_uvr5 import _audio_pre_, _audio_pre_new
from lib.audio import load_audio
from lib.train.process_ckpt import change_info, extract_small_model, merge, show_info
from vc_infer_pipeline import VC
from lib.train.vc_infer_pipeline import VC
from sklearn.cluster import MiniBatchKMeans
logging.getLogger("numba").setLevel(logging.WARNING)

View File

@ -109,7 +109,7 @@ print(sys.argv)
config = Config(device, is_half)
now_dir = os.getcwd()
sys.path.append(now_dir)
from vc_infer_pipeline import VC
from lib.train.vc_infer_pipeline import VC
from lib.infer_pack.models import (
SynthesizerTrnMs256NSFsid,
SynthesizerTrnMs256NSFsid_nono,

View File

@ -7,7 +7,7 @@ from lib.infer_pack.models import (
SynthesizerTrnMs768NSFsid,
SynthesizerTrnMs768NSFsid_nono,
)
from vc_infer_pipeline import VC
from lib.train.vc_infer_pipeline import VC
from multiprocessing import cpu_count
import numpy as np
import torch