asteroid-team / torch-audiomentations

Fast audio data augmentation in PyTorch. Inspired by audiomentations. Useful for deep learning.
MIT License
908 stars 86 forks source link

Padding transform #91

Open iver56 opened 3 years ago

iver56 commented 3 years ago

This transform takes a fraction of the end or the start of the audio and treats that part as padding. We can implement several modes:

iver56 commented 2 years ago

This idea has been implemented in audiomentations recently:

https://github.com/iver56/audiomentations/blob/master/audiomentations/augmentations/padding.py

To get a deeper understanding of this, it's also useful to run the demo script in audiomentations and listen to the outputs

This issue is about implementing it in pytorch for torch-audiomentations :)