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: index 0 is out of bounds for axis 0 with size 0 #41

Open
MrKyaw opened this issue Jun 23, 2018 · 2 comments
Open

IndexError: index 0 is out of bounds for axis 0 with size 0 #41

MrKyaw opened this issue Jun 23, 2018 · 2 comments

Comments

@MrKyaw
Copy link

MrKyaw commented Jun 23, 2018

Hi Scotthawley,

I tried to run the train_network.py few days already but still got errors message "IndexError: index 0 is out of bounds for axis 0 with size 0"
It was happened in panotti\ datautils.py of line 237 and 238 and couldn't manage to solve until now even I debugged many times.
X[load_count,:,:] = melgram
Y[load_count,:] = this_Y
I used the data sets of drums and guitars not sure that affect to the training process and hopefully kindly advise me from someone.

Best regards

@MrKyaw
Copy link
Author

MrKyaw commented Jun 24, 2018

Dear Dr Scotthawley,

Below are debugged result related to the above issue
X - float64 - (0,96,30571,2)
Y - float64 - (0,2)
mel_dims - tuple - (1,96,30571,2)
melgram - float16 - (1,96,30571,2)

Thanks and best regards

@funatsufumiya
Copy link

funatsufumiya commented Aug 21, 2018

@MrKyaw
I got same error, but I found the reason is sample count is smaller than batch size.

Please try python train_network.py --batch_size=N (where N is file count)

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