Montreal-Forced-Aligner
Montreal-Forced-Aligner copied to clipboard
[BUG] mfa adapt does not save alignments
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.1.2
[X ] Have you tried rerunning the command with the --clean
flag?
Describe the issue A clear and concise description of what the bug is.
I'm adapting the Tamil_cv model to a corpus from Australian data. Initial alignment works, but it looks like a file isn't saving, and I get the error below (final.alimdl not found)
For Reproducing your issue Please fill out the following:
- Corpus structure
- What language is the corpus in? (Various Australian Indigenous languages)
- How many files/speakers? 53 speakers, 219 files (but same error with subsets of files)
- Are you using lab files or TextGrid files for input? TextGrids
- Dictionary
- Are you using a dictionary from MFA? If so, which one? No, bespoke dictionary
- If it's a custom dictionary, what is the phoneset? same as tamil_cv (validate worked with no errors, but the log says there are phones not in the dataset)
- Acoustic model
- If you're using an acoustic model, is it one download through MFA? If so, which one? tamil_cv
- 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
).
INFO Setting up corpus information... INFO Loading corpus from source files... 100% -------------------------------------------------------------------------------------------------------------------------------------------------------- 219/100 [ 0:00:00 < 0:00:00 , 169 it/s ] INFO Found 53 speakers across 219 files, average number of utterances per speaker: 1097.867924528302 INFO Initializing multiprocessing jobs... INFO Normalizing text... 100% ----------------------------------------------------------------------------------------------------------------------------------------------- 58,187/58,187 [ 0:00:04 < 0:00:00 , 14,455 it/s ] INFO Generating MFCCs... 98% ----------------------------------------------------------------------------------------------------------------------------------------------- -- 57,017/58,187 [ 0:02:55 < 0:00:07 , 184 it/s ] INFO Calculating CMVN... INFO Generating final features... 98% --------------------------------------------------------------------------------------------------------------------------------------------- -- 57,017/58,187 [ 0:00:20 < 0:00:01 , 2,857 it/s ] WARNING There were 1170 utterances ignored due to an issue in feature generation, see the log file for full details or run `mfa validate` on the corpus. INFO Creating corpus split... 98% -------------------------------------------------------------------------------------------------------------------------------------------- -- 57,017/58,187 [ 0:00:03 < 0:00:01 , 19,956 it/s ] WARNING There were 11702 pronunciations in the dictionary that were ignored for containing one of 30 phones not present in the trained acoustic model. Please run `mfa validate` to get more details. INFO Compiling training graphs... INFO Performing first-pass alignment... INFO Generating alignments... 91% ------------------------------------------------------------------------------------------------------------------------------------ ------------- 52,915/58,187 [ 0:01:55 < 0:00:30 , 180 it/s ] ERROR There was an error in the run, please see the log. Error in atexit._run_exitfuncs: Traceback (most recent call last): File "C:\Users\clb3\AppData\Local\miniconda3\envs\aligner\Scripts\mfa-script.py", line 9, in <module> sys.exit(mfa_cli()) File "C:\Users\clb3\AppData\Local\miniconda3\envs\aligner\lib\site-packages\click\core.py", line 1157, in __call__ return self.main(*args, **kwargs) File "C:\Users\clb3\AppData\Local\miniconda3\envs\aligner\lib\site-packages\rich_click\rich_command.py", line 126, in main rv = self.invoke(ctx) File "C:\Users\clb3\AppData\Local\miniconda3\envs\aligner\lib\site-packages\click\core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "C:\Users\clb3\AppData\Local\miniconda3\envs\aligner\lib\site-packages\click\core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "C:\Users\clb3\AppData\Local\miniconda3\envs\aligner\lib\site-packages\click\core.py", line 783, in invoke return __callback(*args, **kwargs) File "C:\Users\clb3\AppData\Local\miniconda3\envs\aligner\lib\site-packages\click\decorators.py", line 33, in new_func return f(get_current_context(), *args, **kwargs) File "C:\Users\clb3\AppData\Local\miniconda3\envs\aligner\lib\site-packages\montreal_forced_aligner\command_line\adapt.py", line 101, in adapt_model_cli adapter.adapt() File "C:\Users\clb3\AppData\Local\miniconda3\envs\aligner\lib\site-packages\montreal_forced_aligner\alignment\adapting.py", line 208, in adapt shutil.copyfile( File "C:\Users\clb3\AppData\Local\miniconda3\envs\aligner\lib\shutil.py", line 264, in copyfile with open(src, 'rb') as fsrc: FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\clb3\\Documents\\MFA\\trainset\\alignment\\final.alimdl'
Desktop (please complete the following information):
- OS: [e.g. Windows, OSX, Linux] Windows
- Version [e.g. MacOSX 10.15, Ubuntu 20.04, Windows 10, etc] 10
- Any other details about the setup (Cloud, Docker, etc) miniconda
Additional context Add any other context about the problem here.