Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMax2016 committed Sep 20, 2023
1 parent 2c94959 commit e3d98ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grad_extend/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def get_triplet(self, item):
pit = torch.FloatTensor(pit)
spk = torch.FloatTensor(spk)

vec = vec + torch.randn_like(vec) # Perturbation

len_vec = vec.size()[0] - 2 # for safe
len_pit = pit.size()[0]
len_min = min(len_pit, len_vec)
Expand Down

0 comments on commit e3d98ea

Please sign in to comment.