We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello!
Today I found out that Mel Spectrogram Frequency augmentation (FrequencyMaskingAug) defined here: https://github.com/makcedward/nlpaug/blob/master/nlpaug/augmenter/spectrogram/frequency_masking.py#L8 is applying only to the beginning of the spectrogram. For some reason, the length of this mask was equal to the number of mel frequency channel instead of full length of the audio.
I suppose that it is caused because of using len() function instead of data.shape[1] do determine number of time points of the audio in this line: https://github.com/makcedward/nlpaug/blob/master/nlpaug/augmenter/spectrogram/spectrogram_augmenter.py#L53
len()
data.shape[1]
UPD: I'm suggesting a small PR which is fixing this problem (ofc if I correctly understood what's happening there).
The text was updated successfully, but these errors were encountered:
e00cc42
Merge pull request #259 from robolamp/fix-spectrogram-augmenter-range
15d93d7
Fix #258: fix FrequencyMasking time range
add update for [#258]
25303c5
No branches or pull requests
Hello!
Today I found out that Mel Spectrogram Frequency augmentation (FrequencyMaskingAug) defined here: https://github.com/makcedward/nlpaug/blob/master/nlpaug/augmenter/spectrogram/frequency_masking.py#L8
is applying only to the beginning of the spectrogram. For some reason, the length of this mask was equal to the number of mel frequency channel instead of full length of the audio.
I suppose that it is caused because of using
len()
function instead ofdata.shape[1]
do determine number of time points of the audio in this line:https://github.com/makcedward/nlpaug/blob/master/nlpaug/augmenter/spectrogram/spectrogram_augmenter.py#L53
UPD: I'm suggesting a small PR which is fixing this problem (ofc if I correctly understood what's happening there).
The text was updated successfully, but these errors were encountered: