-
Notifications
You must be signed in to change notification settings - Fork 223
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
About start training: IndexError: tuple index out of range. #58
Comments
I check for the reson for a while. I printed the shape of fbank which is [128, 1024]. It seems that the spectrograms havn't trans to RGB channel. Would you please tell me how to fix it? |
I cannot tell the reason either. But there's no RGB concept in the audio spectrogram. It is just 1-d information. [128,1024] means 128 frequency bins, 1024 time frames, which looks correct. The problem seems to happen in spectrogram masking. |
Alright. I check line 191 in file ./dataloader, it seems that the problem happen in TimeMasking. |
What's more, the average length of my dataset is only 2.5s. Do you think such a short audio will cause errors in theTimeMasking and affect the final performance of the model? |
The length depends on |
Hi, Dr. Gong 0.908529570359724 These are the value from wa_result.csv. Yours |
I also encountered the same problem, could you please tell me how to solve it in detail,Thank you very much |
|
About start training: IndexError: tuple index out of range? |
Okay, thank you very much. I'm trying |
OK, I finally find the reason. This is due to a I have fixed it with a workaround (works for both old and new Lines 190 to 197 in b708675
Your workaround (comment out the time-masking) might cause a problem of inaccurate masking span and lead to a performance drop (while might be small). I would suggest using our fixed code. It is very simple. |
You can use the Colab script to find the bug https://colab.research.google.com/github/YuanGongND/ast/blob/master/colab/torchaudio_SpecMasking_1_1.ipynb |
Hi, Dr.Gong,
I use AST on my own dataset. I have created the .json file and .csv file according to the guide. However, when I run run.sh, an error occured and I was too stupid to fix it. The error is as shown below,
I don't know how to solve it. I would appreciate it if you can tell me the reason.
Yours
The text was updated successfully, but these errors were encountered: