mfa align ZeroDivisionError: division by zero

135 views
Skip to first unread message

caitlin....@gmail.com

unread,
Nov 12, 2021, 9:36:42 AM11/12/21
to MFA Users
Hi all,
I'm having problems with the newly downloaded version 2, validate works fine, but align is giving an ZeroDivisionError: division by zero (full traceback below). I'm doing this with the librispeech data from the MFA documentation website, so it's not something to do with my files, so I think must be an issue with my installation. There's also a rather concerning warning in the middle (highlighted in red). I can't work out what the error would be referring to, anyone encountered this? Answers or troubleshooting ideas welcome.

Caitlin


(aligner) C:\MFA-environment>mfa align LibrispeechDataset librispeech-lexicon.txt english from_librispeech --clean
Cleaning old directory!
INFO - Setting up corpus information...
INFO - Number of speakers in corpus: 3, average number of utterances per speaker: 122.33333333333333
INFO - Parsing dictionary "librispeech-lexicon" without pronunciation probabilities without silence
                probabilities
INFO - Creating dictionary information...
INFO - Setting up training data...
INFO - Generating base features (mfcc)...
INFO - Calculating CMVN...
INFO - Setting up training data...
INFO - Setting up training data...
INFO - Done with setup!
INFO - Performing first-pass alignment...
WARNING - No files were aligned, this likely indicates serious problems with the aligner.
Traceback (most recent call last):
  File "C:\Users\Caitlin Halfacre\.conda\envs\aligner\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Caitlin Halfacre\.conda\envs\aligner\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\Caitlin Halfacre\.conda\envs\aligner\Scripts\mfa.exe\__main__.py", line 7, in <module>
  File "C:\Users\Caitlin Halfacre\.conda\envs\aligner\lib\site-packages\montreal_forced_aligner\command_line\mfa.py", line 747, in main
    run_align_corpus(args, unknown)
  File "C:\Users\Caitlin Halfacre\.conda\envs\aligner\lib\site-packages\montreal_forced_aligner\command_line\align.py", line 252, in run_align_corpus
    align_corpus(args, unknown_args)
  File "C:\Users\Caitlin Halfacre\.conda\envs\aligner\lib\site-packages\montreal_forced_aligner\command_line\align.py", line 187, in align_corpus
    a.align()
  File "C:\Users\Caitlin Halfacre\.conda\envs\aligner\lib\site-packages\montreal_forced_aligner\aligner\base.py", line 247, in align
    _, average_log_like = compile_information(self)
  File "C:\Users\Caitlin Halfacre\.conda\envs\aligner\lib\site-packages\montreal_forced_aligner\multiprocessing\alignment.py", line 620, in compile_information
    log_like = avg_like_sum / avg_like_frames
ZeroDivisionError: division by zero

R Burn

unread,
Feb 13, 2022, 8:09:07 PM2/13/22
to MFA Users
I have the same warning. When I go to validate my files, it says that everything is fine with my files; it just won't align.
My error is different than yours because the first pass alignment doesn't return an error in verbose, but when it moves on to the second step of "generate alignment' it returns the warning that you have above.
At the end of the process, the INFO says "Exporting textgrids to (path)", "Finished exporting textgrids to (path)", and "Done!" When I go to that particular folder, nothing is there and it is completely empty.

caitlin....@gmail.com

unread,
Apr 14, 2022, 5:33:21 AM4/14/22
to MFA Users
I don't know if you fixed this by now but I've just installed on a different user profile on my computer and it's all working...I think it was because there's a space in my home directory (C:\Users\Caitlin Halfacre).
Reply all
Reply to author
Forward
0 new messages