Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spatial augmentation on generated soundscapes #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sivannavis
Copy link
Collaborator

@sivannavis sivannavis commented Feb 5, 2024

This PR points at Issue #40:

add another class to do spatial augmentations: channel swapping, random time frequency masking, time domain remixing, and soundscape rotation. See method details in https://arxiv.org/abs/2101.02919

1. formatting core.py
2. add basic ScaperAug class
3. add functions to do augmentation
4. add channel swapping method
5. tested channel swapping method
@sivannavis sivannavis requested a review from iranroman February 5, 2024 22:14
Comment on lines +678 to +679
def tf_masking(self, data, fs, label):
pass

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use Pytorch's built-in TimeMasking and FrequencyMasking transforms to make completing the tf_masking() method easier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants