Update rvc_for_realtime.py

This commit is contained in:
RVC-Boss 2023-08-29 18:53:33 +08:00 committed by GitHub
parent aef62e5012
commit 2fd2f62c92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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": ###不支持dmlcpu又太慢用不成拿pm顶替
if "privateuseone" in str(self.device): ###不支持dmlcpu又太慢用不成拿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)