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:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user