try and make repeated failures recover better
This commit is contained in:
parent
2270c89fdc
commit
1d758c3bc8
|
@ -139,7 +139,7 @@ class UnsupervisedAudioDataset(torch.utils.data.Dataset):
|
|||
except:
|
||||
if self.debug_loading_failures:
|
||||
print(f"Error loading audio for file {self.audiopaths[index]} {sys.exc_info()}")
|
||||
return self[index+1]
|
||||
return self[random.randint(0,len(self))]
|
||||
|
||||
# When generating resampled clips, skew is a bias that tries to spread them out from each other, reducing their
|
||||
# influence on one another.
|
||||
|
|
Loading…
Reference in New Issue
Block a user