Add files via upload
This commit is contained in:
parent
954ce83d04
commit
0fcc293dd0
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user