1
0
mirror of synced 2024-11-30 18:24:32 +01:00

Format code (#1142)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2023-08-31 22:10:01 +08:00 committed by GitHub
parent 45289e2d3d
commit a05c72ec6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ from fairseq import checkpoint_utils
# "", # "",
# ) # )
def get_index_path_from_model(sid): def get_index_path_from_model(sid):
sel_index_path = "" sel_index_path = ""
name = os.path.join("logs", sid.split(".")[0], "") name = os.path.join("logs", sid.split(".")[0], "")
@ -29,6 +30,7 @@ def get_index_path_from_model(sid):
break break
return sel_index_path return sel_index_path
def load_hubert(config): def load_hubert(config):
models, _, _ = checkpoint_utils.load_model_ensemble_and_task( models, _, _ = checkpoint_utils.load_model_ensemble_and_task(
["assets/hubert/hubert_base.pt"], ["assets/hubert/hubert_base.pt"],