Refactor: Use PathConfig and pathlib instead of paths.yml loading
This commit is contained in:
@@ -8,12 +8,14 @@ from numpy.typing import NDArray
|
||||
from pyannote.audio import Inference, Model
|
||||
from tqdm import tqdm
|
||||
|
||||
from config import config
|
||||
from config import get_config
|
||||
from style_bert_vits2.logging import logger
|
||||
from style_bert_vits2.models.hyper_parameters import HyperParameters
|
||||
from style_bert_vits2.utils.stdout_wrapper import SAFE_STDOUT
|
||||
|
||||
|
||||
config = get_config()
|
||||
|
||||
model = Model.from_pretrained("pyannote/wespeaker-voxceleb-resnet34-LM")
|
||||
inference = Inference(model, window="whole")
|
||||
device = torch.device(config.style_gen_config.device)
|
||||
|
||||
Reference in New Issue
Block a user