-
Notifications
You must be signed in to change notification settings - Fork 107
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
RuntimeError: generator raised StopIteration #107
Comments
Chris,
Are you using the default speech.yml in your tests? |
Yes. I see no |
When you look in the 'train' section you see a 'weights' section that imports in the weights from the 'settings' section:
If you replace that with what I have above it should save checkpoints and a 'last' set of weights when the model stops. Paths can be relative so naming things like 'last.model.kur' and 'checkpoint.model.kur' allows you to just create a new directory, copy in the yml files and execute if you want to start a new model. You also need to make any similar changes to the 'validate' section. |
If I make those changes, then kur doesn't run at all and fails with the exception:
Why would the default speech.yml need modifications just to save the trained network? Shouldn't those settings be the default? |
I suspect instead of:
you meant to type:
That lets it run for a short while, but then it still errors with:
Are you sure |
Sorry about the typo there! I should have told you to define batch_size and checkpoint_time in the settings section. They can be literals, but for clarity I would recommend defining them in settings:
Of course, select whatever batch size and checkpoint you need here. |
Attempting to run the example
kur -v train speech.yml
ends after about an hour with the error:and no
weights
file is output anywhere. Is this an bug or the expected behavior?The text was updated successfully, but these errors were encountered: