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()