Refactor: moved monotonic_align/ to style_bert_vits2/models/monotonic_alignment.py

This commit is contained in:
tsukumi
2024-03-07 04:36:05 +00:00
parent 1450bfd06f
commit d36401849b
7 changed files with 97 additions and 70 deletions

View File

@@ -10,10 +10,6 @@ from style_bert_vits2.text_processing import clean_text, cleaned_text_to_sequenc
from style_bert_vits2.text_processing.symbols import SYMBOLS
class InvalidToneError(ValueError):
pass
def get_net_g(model_path: str, version: str, device: str, hps):
if version.endswith("JP-Extra"):
logger.info("Using JP-Extra model")
@@ -315,3 +311,7 @@ def infer_multilang(
if torch.cuda.is_available():
torch.cuda.empty_cache()
return audio
class InvalidToneError(ValueError):
pass