mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-09 20:40:48 +08:00
chore(format): run black on dev (#40)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
54f7ae097d
commit
b4f7bbbe39
@@ -27,7 +27,8 @@ def get_synthesizer(cpt: OrderedDict, device=torch.device("cpu")):
|
||||
|
||||
|
||||
def load_synthesizer(
|
||||
pth_path: torch.serialization.FILE_LIKE, device=torch.device("cpu")):
|
||||
pth_path: torch.serialization.FILE_LIKE, device=torch.device("cpu")
|
||||
):
|
||||
return get_synthesizer(
|
||||
torch.load(pth_path, map_location=torch.device("cpu")),
|
||||
device,
|
||||
|
||||
Reference in New Issue
Block a user