From 2b9263e17a1561580928ad2dbd40b0f24e1b2a38 Mon Sep 17 00:00:00 2001 From: lucidrains Date: Thu, 12 Sep 2024 10:35:17 -0700 Subject: [PATCH] address https://github.com/lucidrains/soundstorm-pytorch/issues/36 --- setup.py | 2 +- soundstorm_pytorch/soundstorm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 5011590..efd518c 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name = 'soundstorm-pytorch', packages = find_packages(exclude=[]), - version = '0.4.6', + version = '0.4.7', license='MIT', description = 'SoundStorm - Efficient Parallel Audio Generation from Google Deepmind, in Pytorch', author = 'Phil Wang', diff --git a/soundstorm_pytorch/soundstorm.py b/soundstorm_pytorch/soundstorm.py index 303d79c..733286c 100644 --- a/soundstorm_pytorch/soundstorm.py +++ b/soundstorm_pytorch/soundstorm.py @@ -1119,7 +1119,7 @@ def forward( rand_times = torch.empty(b, device = device).uniform_(0, 1) rand_probs = self.schedule_fn(rand_times) - mask = get_mask_subset_prob(mask, rand_probs) + mask = get_mask_subset_prob(mask, rand_probs, min_mask = 1) # random quantizer position, in groups