MontrealCorpusTools / Montreal-Forced-Aligner

Command line utility for forced alignment using Kaldi
https://montrealcorpustools.github.io/Montreal-Forced-Aligner/
MIT License
1.34k stars 247 forks source link

[BUG] MFA Training error #533

Closed laetokang closed 1 year ago

laetokang commented 1 year ago

Hi I'm working in Colab environment. I created a virtual environment that only necessary libraries were installed.

conda create -n aligner -c conda-forge python=3.8 montreal-forced-aligner ngram baumwelch pynini openblas -y

However, when I try to mfa train, the following errocr occurs.

ERROR - There was an error in the run, please see the log. Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/tmp/mfa/miniconda3/envs/aligner/bin/mfa", line 11, in sys.exit(main()) File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.8/site-packages/montreal_forced_aligner/command_line/mfa.py", line 1066, in main run_train_acoustic_model(args, unknown) File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.8/site-packages/montreal_forced_aligner/command_line/train_acoustic_model.py", line 112, in run_train_acoustic_model train_acoustic_model(args, unknown_args) File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.8/site-packages/montreal_forced_aligner/command_line/train_acoustic_model.py", line 36, in train_acoustic_model trainer.train() File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.8/site-packages/montreal_forced_aligner/acoustic_modeling/trainer.py", line 391, in train trainer.train() File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.8/site-packages/montreal_forced_aligner/acoustic_modeling/base.py", line 534, in train self.initialize_training() File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.8/site-packages/montreal_forced_aligner/acoustic_modeling/base.py", line 267, in initialize_training self._trainer_initialization() File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.8/site-packages/montreal_forced_aligner/acoustic_modeling/lda.py", line 454, in _trainer_initialization self.lda_acc_stats() File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.8/site-packages/montreal_forced_aligner/acoustic_modeling/lda.py", line 443, in lda_acc_stats shutil.copyfile( File "/tmp/mfa/miniconda3/envs/aligner/lib/python3.8/shutil.py", line 264, in copyfile with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst: FileNotFoundError: [Errno 2] No such file or directory: '/root/Documents/MFA/data_train_acoustic_model/lda/lda.mat'