1
0
mirror of synced 2024-11-30 18:24:32 +01:00

Add files via upload

This commit is contained in:
RVC-Boss 2023-08-12 22:58:41 +08:00 committed by GitHub
parent 954ce83d04
commit 0fcc293dd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,6 +315,8 @@ class SineGen(torch.nn.Module):
# generate uv signal
uv = torch.ones_like(f0)
uv = uv * (f0 > self.voiced_threshold)
if(uv.device.type=="privateuseone"):#for DirectML
uv=uv.float()
return uv
def forward(self, f0, upp):