Skip to content

RuntimeError: generator raised StopIteration #107

@chrisspen

Description

@chrisspen

Attempting to run the example kur -v train speech.yml ends after about an hour with the error:

Traceback (most recent call last):
  File "~/myproject/env/bin/kur", line 8, in <module>
    sys.exit(main())
  File "~/myproject/env/lib/python3.7/site-packages/kur/__main__.py", line 492, in main
    sys.exit(args.func(args) or 0)
  File "~/myproject/env/lib/python3.7/site-packages/kur/__main__.py", line 64, in train
    func(step=args.step)
  File "~/myproject/env/lib/python3.7/site-packages/kur/kurfile.py", line 434, in func
    return trainer.train(**defaults)
  File "~/myproject/env/lib/python3.7/site-packages/kur/model/executor.py", line 295, in train
    **kwargs
  File "~/myproject/env/lib/python3.7/site-packages/kur/model/executor.py", line 768, in wrapped_train
    for num_batches, batch in parallelize(enumerate(provider)):
RuntimeError: generator raised StopIteration

and no weights file is output anywhere. Is this an bug or the expected behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions