-
Notifications
You must be signed in to change notification settings - Fork 136
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
IndexError: tuple index out of range on spec_augment_pytorch #24
Comments
Encountered the same issue myself. It's expecting a 3d input [Batch x H x W], so if you input a single data point [H x W], then you will get out of range errors. The solution is to use a batch of inputs, or you can do a quick fix by adding an additional dimension to the input. Something like this at the top of the spec_augment() function should work:
|
Hi any one solve this issue ? I have encountered the same. |
@Aditya3107 yes - see my comment above |
@DWhettam Hi, yes I applied your solution but still no success. I faced below problem. `(venv) mds-student@mdsstudent-HP-Compaq-Elite-8300-CMT:~/Documents/SpecAugment-master$ python3
If you can suggest some solution it would be helpful. |
you are importing
if you are using pytorch you need to use |
@DWhettam thank you for the response. But I have taken pytorch only. For the particular code snippet shown above first I took tensorflow mistakenly then I corrected it with pytorch.
|
It looks like you are still using the incorrect files. Read through your error message and you can see the error occurs here: |
Hi, you can use the example in the tests/ folder, there it converts the spectrogram to [batch_size, time, frequency, 1] |
Hi, thanks for reply. It is working for me. |
Any idea on how to resolve this problem?
The text was updated successfully, but these errors were encountered: