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
Division by Zero when training #12
Comments
Same behavior here:
|
Duplicate of #10. The problem is that for validation we discard the last (incomplete) minibatch so it doesn't skew the result, as it might be smaller than the rest and we average the loss over minibatches with equal weights. Specifically, if you only have one minibatch, it tries to average over an empty set, hence division by zero. This could be handled better and we're planning to do that in the near future. |
@koz4k thanks for the response but what do you suggest for fixing this myself for the time being?
|
Sorry, I was wrong - this is related to the size of the training set, not validation set. Either way, the solution is to lower the batch size or use a bigger dataset. I would recommend a bigger dataset, because with such a small one you might not be able to achieve good results anyway. |
@koz4k OK, thanks for explaining that. |
@koz4k Following your suggestion using
I'm getting the following result:
What do you suggest I do to fix this for the time being? |
Are you sure that all the |
@comeweber @koz4k Many thanks for your help, both of you. It's now stably training! |
@LukeB42 Could you share your file structure with custom folder? I cannot use the youtube-dl to generate the training data right now, so I download a audio file myself. Although I have 8 seconds chunks, the training goes wrong with following errors: Traceback (most recent call last): |
You most likely have chunks of not exactly equal length. Many tools for chunking audio files tend to do that. You can use ffmpeg, it cuts the files cleanly. See the downloading script for an example. |
This is with PyTorch 0.3.0.post4.
The text was updated successfully, but these errors were encountered: