forked from mrq/DL-Art-School
revert fill_gaps back to old masking behavior
This commit is contained in:
parent
58ed27d7a8
commit
7812c23c7a
|
@ -172,7 +172,7 @@ class MusicGenerator(nn.Module):
|
|||
def do_masking(self, truth):
|
||||
b, c, s = truth.shape
|
||||
mask = torch.ones_like(truth)
|
||||
if self.frequency_mask_percent_mask > 0:
|
||||
if self.random() > .5:
|
||||
# Frequency mask
|
||||
cs = random.randint(0, c-10)
|
||||
ce = min(c-1, cs+random.randint(1, int(self.frequency_mask_percent_mask*c)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user