diff --git a/infer/modules/vc/utils.py b/infer/modules/vc/utils.py index 9cc4830..17b7486 100644 --- a/infer/modules/vc/utils.py +++ b/infer/modules/vc/utils.py @@ -18,6 +18,7 @@ from fairseq import checkpoint_utils # "", # ) + def get_index_path_from_model(sid): sel_index_path = "" name = os.path.join("logs", sid.split(".")[0], "") @@ -29,6 +30,7 @@ def get_index_path_from_model(sid): break return sel_index_path + def load_hubert(config): models, _, _ = checkpoint_utils.load_model_ensemble_and_task( ["assets/hubert/hubert_base.pt"],