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

IndexError Raised While Training #8

Open
jasonyanwenl opened this issue Apr 6, 2020 · 3 comments
Open

IndexError Raised While Training #8

jasonyanwenl opened this issue Apr 6, 2020 · 3 comments

Comments

@jasonyanwenl
Copy link

Hi, during training the model, the method _get_seq() in file data.py throws an IndexError. I think the reason is that the length of the given midi data is less than max_length.

Then I print the file name when this error happens and I found the midi file (after converted to pickle file) is Arciglione08.MID.pickle. The max_length is 2048 but the length of this data is 1777.

I download ecomp_piano as the input dataset. For all hyper-parameters I just use what is shown in the master branch and here is the command I used for training.
python train.py -c config/base.yml config/train.yml -m ../model

I think I could decrease the max_length to avoid this error. But could you please tell me what is the root cause of this error?

Thanks!

@Rane90
Copy link

Rane90 commented Aug 28, 2020

Hi @jasonyanwenl
Did you mange to solve this issue?

@jasonyanwenl
Copy link
Author

I guess this error happens because of malformated input music data. When I skip those music data, it works fine.

@Rane90
Copy link

Rane90 commented Sep 14, 2020

Actually this still happens to me and it doesn't seem to be related to the malformed data. Just that every time the file is encoded into a size smaller than max_length an error is thrown.
Lines 79-91 in data.py master branch

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

No branches or pull requests

2 participants