MontrealCorpusTools / Montreal-Forced-Aligner

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

[BUG] Transition model update: Overall {objf_impr / count} ZeroDivisionError #839

Open freemedom opened 1 month ago

freemedom commented 1 month ago

Debugging checklist

[x] Have you read the troubleshooting page (https://montreal-forced-aligner.readthedocs.io/en/latest/user_guide/troubleshooting.html) and searched the documentation to ensure that your issue is not addressed there? [x] Have you updated to latest MFA version (check https://montreal-forced-aligner.readthedocs.io/en/latest/changelog/changelog_3.0.html)? What is the output of mfa version? 3.2.0 [x] Have you tried rerunning the command with the --clean flag?

Describe the issue File "C:\Users\xxx.conda\envs\aligner\Lib\site-packages\montreal_forced_aligner\acoustic_modeling\base.py", line 321, in acc_stats f"Transition model update: Overall {objf_impr / count} "


ZeroDivisionError: float division by zero

**For Reproducing your issue**
Please fill out the following:

1. Corpus structure
   * What language is the corpus in? mfa validate ...\alignSound english_us_arpa english_us_arpa
   * How many files/speakers? 1 mp3 and 1 txt
   * Are you using lab files or TextGrid files for input? i'm not sure.
2. Dictionary
   * Are you using a dictionary from MFA? If so, which one? english_us_arpa
   * If it's a custom dictionary, what is the phoneset?
3. Acoustic model
   * If you're using an acoustic model, is it one download through MFA? If so, which one? english_us_arpa
   * If it's a model you've trained, what data was it trained on?

**Log file**
Please attach the log file for the run that encountered an error (by default these will be stored in `~/Documents/MFA`).

**Desktop (please complete the following information):**
 - OS: Windows
 - Version Windows 10
 - Any other details about the setup: conda

**Additional context**
Add any other context about the problem here.
freemedom commented 1 month ago

i just want to align some english mp3 and txt. i don't know much about these technical terms.

freemedom commented 1 month ago

https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/issues/746

freemedom commented 1 month ago

i'm not sure what happened. i think i don't need to train, i just need english pretrained model.

freemedom commented 1 month ago

i find that mfa align <mp3 and txt> english_us_arpa english_us_arpa <output textgrid> --clean --beam 100 --retry_beam 400 is ok. it just can't run mfa validate