Commit 612ef0b3 authored by Maxime Burchi's avatar Maxime Burchi
Browse files

bug fix issue #20

parent b28a0aaa
......@@ -146,7 +146,7 @@ class SpecAugment(nn.Module):
for b in range(x.size(0)):
T = int(self.pS * x_len[b])
for _ in range(self.mT):
x[b, :, :x_len[b]] = torchaudio.transforms.TimeMasking(time_mask_param=T).forward(x[b, :, :x_len[b]])
x[b:b+1, :, :x_len[b]] = torchaudio.transforms.TimeMasking(time_mask_param=T).forward(x[b:b+1, :, :x_len[b]])
return x
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment