I was trying to train a model based on ljspeech today, but ran into an error when trying to run my code.
(as I was using a multi-speaker dataset I used the --resume_from_single_speaker_checkpoint as recommended)
Code I attempted to run was:
python3 -m piper_train --dataset-dir ~/piper/my.training --accelerator 'gpu' --devices 1 --batch-size 32 --validation-split 0.0 --num-test-examples 0 --max_epochs 10000 --resume_from_single_speaker_checkpoint ~/piper/lj/ljspeech-2000.ckpt --checkpoint-epochs 1 --precision 32
The error that I received was:
File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/home/cat/piper/src/python/piper_train/__main__.py", line 10, in <module> from .vits.lightning import VitsModel File "/home/cat/piper/src/python/piper_train/vits/lightning.py", line 15, in <module> from .models import MultiPeriodDiscriminator, SynthesizerTrn File "/home/cat/piper/src/python/piper_train/vits/models.py", line 10, in <module> from . import attentions, commons, modules, monotonic_align File "/home/cat/piper/src/python/piper_train/vits/monotonic_align/__init__.py", line 4, in <module> from .monotonic_align.core import maximum_path_c ModuleNotFoundError: No module named 'piper_train.vits.monotonic_align.monotonic_align.core'
I tried finding a solution to this on my own, but wasn't able to find any documentation about this. I wasn't running this in a docker file simply because I have seen people provide mixed opinions on whether or not it is necessary. I had no issues earlier with the preprocessing.
There is the chance that maybe this issue could be related to me using WSL, but I am not sure.
Any help or suggestions would be much appreciated!
I was trying to train a model based on ljspeech today, but ran into an error when trying to run my code.
(as I was using a multi-speaker dataset I used the --resume_from_single_speaker_checkpoint as recommended)
Code I attempted to run was:
python3 -m piper_train --dataset-dir ~/piper/my.training --accelerator 'gpu' --devices 1 --batch-size 32 --validation-split 0.0 --num-test-examples 0 --max_epochs 10000 --resume_from_single_speaker_checkpoint ~/piper/lj/ljspeech-2000.ckpt --checkpoint-epochs 1 --precision 32The error that I received was:
File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/home/cat/piper/src/python/piper_train/__main__.py", line 10, in <module> from .vits.lightning import VitsModel File "/home/cat/piper/src/python/piper_train/vits/lightning.py", line 15, in <module> from .models import MultiPeriodDiscriminator, SynthesizerTrn File "/home/cat/piper/src/python/piper_train/vits/models.py", line 10, in <module> from . import attentions, commons, modules, monotonic_align File "/home/cat/piper/src/python/piper_train/vits/monotonic_align/__init__.py", line 4, in <module> from .monotonic_align.core import maximum_path_c ModuleNotFoundError: No module named 'piper_train.vits.monotonic_align.monotonic_align.core'I tried finding a solution to this on my own, but wasn't able to find any documentation about this. I wasn't running this in a docker file simply because I have seen people provide mixed opinions on whether or not it is necessary. I had no issues earlier with the preprocessing.
There is the chance that maybe this issue could be related to me using WSL, but I am not sure.
Any help or suggestions would be much appreciated!