A Pytorch library for audio data augmentation. Inspired by audiomentations. Useful for deep learning.
Project description
torch-audiomentations
Audio data augmentation in PyTorch. Inspired by audiomentations.
Setup
pip install git+https://github.com/asteroid-team/torch-audiomentations
Note: torch-audiomentations will be published on PyPI for easier installation later.
Contribute
Contributors welcome!
Join the Asteroid's slack
to start discussing about torch-audiomentations
with us.
Motivation: Speed
We don't want data augmentation to be a bottle neck in model training speed. Here is a comparison of the time it takes to run 1D convolution:
Current state
torch-audiomentations is in a very early development stage, so it's not ready for prime time yet. Meanwhile, star the repo and stay tuned!
Version history
v0.1.0 (2020-10-12)
Initial release with Gain
and PolarityInversion
Development
Setup
A GPU-enabled development environment for torch-audiomentations can be created with conda:
conda create --name torch-audiomentations python=3.7.3
conda activate torch-audiomentations
conda install pytorch cudatoolkit=10.1 -c pytorch
conda env update
Run tests
pytest
Conventions
- Format python code with black
- Use Google-style docstrings
- Use explicit relative imports, not absolute imports
Acknowledgements
The development of torch-audiomentations is kindly backed by Nomono
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for torch-audiomentations-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5588143a46ae2928069148ed1684b40f100564960765f50503a885f281b6681 |
|
MD5 | 158d28afbe6beaa42d9b1754df10e0dd |
|
BLAKE2b-256 | 8f373b8bd93c0901539fc178652830dc53fd20d8bd3d09c1238ad4d51550b36d |
Hashes for torch_audiomentations-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 418ba70f9dd53ae5137d70cd132837e9625c319b385f661cabfb72ad8b3eb44d |
|
MD5 | 5d5cd83e9017ddba3515daaa08872776 |
|
BLAKE2b-256 | a5bb9bc1b1ca7bc7f7d035fa16d0cbdaedfbafa4d61aca89d12330c43838010b |