From 9ee26d698acb75e51a248555d91ffd18624d108e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 16 Jun 2024 20:08:03 +0900 Subject: [PATCH] chore(format): run black on dev (#60) Co-authored-by: github-actions[bot] --- infer/lib/train/utils.py | 2 +- rvc/f0/fcpe.py | 4 +++- web.py | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/infer/lib/train/utils.py b/infer/lib/train/utils.py index 88e60e3..bad2c78 100644 --- a/infer/lib/train/utils.py +++ b/infer/lib/train/utils.py @@ -445,7 +445,7 @@ class HParams: def values(self): return self.__dict__.values() - + def copy(self): return deepcopy(self) diff --git a/rvc/f0/fcpe.py b/rvc/f0/fcpe.py index d60a1fc..d0d9410 100644 --- a/rvc/f0/fcpe.py +++ b/rvc/f0/fcpe.py @@ -23,7 +23,9 @@ class FCPE(F0Predictor): device, ) - from torchfcpe import spawn_bundled_infer_model # must be imported at here, or it will cause fairseq crash on training + from torchfcpe import ( + spawn_bundled_infer_model, + ) # must be imported at here, or it will cause fairseq crash on training self.model = spawn_bundled_infer_model(self.device) diff --git a/web.py b/web.py index bb2874b..e43ac2c 100644 --- a/web.py +++ b/web.py @@ -72,6 +72,7 @@ if config.dml == True: return res import fairseq + fairseq.modules.grad_multiply.GradMultiply.forward = forward_dml i18n = I18nAuto()