From 2fd2f62c92e64dc02b7fb6cb0a7cb6702e5a829d Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Tue, 29 Aug 2023 18:53:33 +0800 Subject: [PATCH] Update rvc_for_realtime.py --- rvc_for_realtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rvc_for_realtime.py b/rvc_for_realtime.py index 548472d..bc0004d 100644 --- a/rvc_for_realtime.py +++ b/rvc_for_realtime.py @@ -186,7 +186,7 @@ class RVC: return self.get_f0_post(f0bak) def get_f0_crepe(self, x, f0_up_key): - if self.device.type == "privateuseone": ###不支持dml,cpu又太慢用不成,拿pm顶替 + if "privateuseone" in str(self.device): ###不支持dml,cpu又太慢用不成,拿pm顶替 return self.get_f0(x, f0_up_key, 1, "pm") audio = torch.tensor(np.copy(x))[None].float() # print("using crepe,device:%s"%self.device)