We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b210114 + f386b6d commit f410c25Copy full SHA for f410c25
stable_audio_tools/data/utils.py
@@ -37,7 +37,7 @@ def __call__(self, source: torch.Tensor) -> Tuple[torch.Tensor, float, float, in
37
38
offset = 0
39
if(self.randomize and n_samples > self.n_samples):
40
- offset = random.randint(0, upper_bound + 1)
+ offset = random.randint(0, upper_bound)
41
42
t_start = offset / (upper_bound + self.n_samples)
43
t_end = (offset + self.n_samples) / (upper_bound + self.n_samples)
0 commit comments