Skip to content

Commit bff6754

Browse files
authored
HuBERT Perturbation
1 parent 1713be3 commit bff6754

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vits/models.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ def __init__(
181181
self.dec = Generator(hp=hp)
182182

183183
def forward(self, ppg, vec, pit, spec, spk, ppg_l, spec_l):
184-
ppg = ppg + torch.randn_like(ppg) # Perturbation
184+
ppg = ppg + torch.randn_like(ppg) * 1 # Perturbation
185+
vec = vec + torch.randn_like(vec) * 2 # Perturbation
185186
g = self.emb_g(F.normalize(spk)).unsqueeze(-1)
186187
z_p, m_p, logs_p, ppg_mask, x = self.enc_p(
187188
ppg, ppg_l, vec, f0=f0_to_coarse(pit))

0 commit comments

Comments
 (0)