Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] IndexError: list index out of range ( Located in if tier.entryList[-1][1] > tg.maxTimestamp:) #459

Closed
yrsn509 opened this issue Jun 4, 2022 · 4 comments
Assignees
Labels

Comments

@yrsn509
Copy link

yrsn509 commented Jun 4, 2022

Debugging checklist

[ ] Have you updated to latest MFA version?
[√] Have you tried rerunning the command with the --clean flag?

Describe the issue

when I'm Training MFA models, after finishing "Collecting phone and word alignments from alignment lattices...“, it suddenly stuck in the final step and reported the BUG.

Traceback (most recent call last):
File "C:\Users\yrsn509\AppData\Local\Programs\Python\Python39\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
File "C:\Users\yrsn509\AppData\Local\Programs\Python\Python39\lib\site-packages\montreal_forced_aligner\alignment\multiprocessing.py", line 1167, in run
export_textgrid(
File "C:\Users\yrsn509\AppData\Local\Programs\Python\Python39\lib\site-packages\montreal_forced_aligner\textgrid.py", line 183, in export_textgrid
if tier.entryList[-1][1] > tg.maxTimestamp:
IndexError: list index out of range

For Reproducing your issue

  1. Open cmd and input conda activate command

  2. Input this command "mfa train data/wav/EILEEN/split/ MFA/pinyin_eng.dict MFA/EILEEN.zip data/TextGrid/EILEEN/ --clean"
    (The dictionary is attached with the repo, I don't know whether it's the MFA original)

  3. Wait for training, and it costs for 2 hours or so.

  4. Bug comes out

  5. Corpus structure

    • What language is the corpus in? Mandarin
    • How many files/speakers? 1 Speaker, 21809 wavs
    • Are you using lab files or TextGrid files for input?
      Yes, I have wavs and labs and using them for training, but after the bug it just has 200 TextGrid files output
  6. Dictionary

    • Are you using a dictionary from MFA? If so, which one?
    • If it's a custom dictionary, what is the phoneset?
      I don't know..
  7. Acoustic model

    • If you're using an acoustic model, is it one download through MFA? If so, which one?
    • If it's a model you've trained, what data was it trained on?
      No, I used my own datasets serving as model.

Log file
train_acoustic_model.log

Desktop (please complete the following information):

  • OS: Windows
  • Version: Windows 10
  • Any other details about the setup (Cloud, Docker, etc)
  • Train through Conda Environment

Screenshots
08d39dc43e6f42b4fa078cca3bc473a

@yrsn509 yrsn509 added the bug label Jun 4, 2022
@yrsn509 yrsn509 changed the title [BUG] IndexError: list index out of range [BUG] IndexError: list index out of range ( Located in if tier.entryList[-1][1] > tg.maxTimestamp:) Jun 4, 2022
@torphix
Copy link

torphix commented Jun 4, 2022

Same error but with english corpus VCTK to be precise

mmcauliffe added a commit that referenced this issue Jun 4, 2022
mmcauliffe added a commit that referenced this issue Jun 4, 2022
* Bug fix for #459

* Update tests for new models
@mmcauliffe
Copy link
Member

This should be fixed now if you update to 2.0.0rc9, thanks!

@OreoluwaBabatunde
Copy link

Hi @mmcauliffe , I am having same error, i don't know what to do.
Please help a friend.

@mmcauliffe
Copy link
Member

@Oreoluwa1234 can you make a new issue with more details for what you're running into, along with updating to either the latest 3.0 alpha or installing one of the stable versions listed here: https://montreal-forced-aligner.readthedocs.io/en/latest/installation.html#installing-older-versions-of-mfa?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants