1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-05 09:10:25 +08:00

optimize(vc): use np.divide instead of general /

This commit is contained in:
源文雨
2024-06-02 01:24:43 +09:00
parent 2991e75fc0
commit 7e8c3530d4
3 changed files with 5 additions and 2 deletions

View File

@@ -2,6 +2,8 @@ import os
from fairseq import checkpoint_utils
from configs.config import singleton_variable
def get_index_path_from_model(sid):
return next(
@@ -20,6 +22,7 @@ def get_index_path_from_model(sid):
)
@singleton_variable
def load_hubert(device, is_half):
models, _, _ = checkpoint_utils.load_model_ensemble_and_task(
["assets/hubert/hubert_base.pt"],