Skip to content

Commit b4f7bbb

Browse files
chore(format): run black on dev (#40)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 54f7ae0 commit b4f7bbb

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

infer/modules/vc/modules.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ def get_vc(self, sid, *to_return_protect):
6262
elif torch.backends.mps.is_available():
6363
torch.mps.empty_cache()
6464
###楼下不这么折腾清理不干净
65-
self.net_g, self.cpt = get_synthesizer(
66-
self.cpt, self.config.device
67-
)
65+
self.net_g, self.cpt = get_synthesizer(self.cpt, self.config.device)
6866
self.if_f0 = self.cpt.get("f0", 1)
6967
self.version = self.cpt.get("version", "v1")
7068
del self.net_g, self.cpt

rvc/hubert.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,7 @@ def apply_mask(self, x, padding_mask, target_list):
262262
return x, mask_indices
263263

264264

265-
def get_hubert(
266-
model_path="assets/hubert/hubert_base.pt", device=torch.device("cpu")
267-
):
265+
def get_hubert(model_path="assets/hubert/hubert_base.pt", device=torch.device("cpu")):
268266
models, _, _ = load_model_ensemble_and_task(
269267
[model_path],
270268
suffix="",

rvc/synthesizer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def get_synthesizer(cpt: OrderedDict, device=torch.device("cpu")):
2727

2828

2929
def load_synthesizer(
30-
pth_path: torch.serialization.FILE_LIKE, device=torch.device("cpu")):
30+
pth_path: torch.serialization.FILE_LIKE, device=torch.device("cpu")
31+
):
3132
return get_synthesizer(
3233
torch.load(pth_path, map_location=torch.device("cpu")),
3334
device,

0 commit comments

Comments
 (0)