Closed thoraxe closed 1 year ago
wat's the error?
If this is the error:
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
You should be able to get around it by indenting the python code in [train_yourtts.py](https://gist.github.com/thoraxe/308bcb97f1ba57ad94ab6957bc2525ba#file-train_yourtts-py)
under an if __name__ == '__main__':
statement.
I threw the same error on a macbook while training GlowTTS. Adding the if __name__ == '__main__':
idiom resolved the error for me.
Python's multiprocessing library threw this, not coqui's TTS. The RuntimeError is thrown on Windows or Mac because these platforms do not support fork
. Instead, spawn
is used. Checkout context.py
in the Python lib dir. For more about fork
and spawn
, [read here].(https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods)
Closed this due to inactivity.
Describe the bug
I am trying to use the
train_yourtts.py
recipe from: https://github.com/coqui-ai/TTS/blob/v0.12.0/recipes/vctk/yourtts/train_yourtts.pyIn fact, I pared down the VCTK dataset to attempt to reproduce the error, and I can reliably reproduce it with minimal changes to the original script.
Changes I made:
SAMPLE_RATE
to 48000I moved everything but p225 out of the VCTK location to prevent the embeddings from being calculated to save time for the reproducer -- the embedding calculation does not honor the
ignored_speakers
The following Gist has both my exact script, as run, as well as the output: https://gist.github.com/thoraxe/308bcb97f1ba57ad94ab6957bc2525ba
To Reproduce
See the above steps, and the Gist with the script.
Expected behavior
YourTTS should successfully train.
Logs
See gist.
Environment