sudo apt-get install python-scipy
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-scipy is already the newest version.
I don't understand if the issue is my installation or it's related to my sphinxtrain configuration file or something else
Unfortunately I can't share the whole model folder, but I still would appreciate any kind of help
my training task for this training test is called LDA2, and after it failed, if I open LDA2/logdir/01.lda_train/LDA2.lda_train.log with a text-editor I can only see a date (for example "Mon Jul 6 12:06:03 2015"), so I don't know what parameters I'm supposed to use, however I gave it a try:
I installed sphinxtrain using --prefix=/opt/sphinxtrain
so I assume "ACCUMDIRS" refers to "bwaccumdir" folder created during the training, and "OUTFILE" refers to a output file that is created during lda.py process.
My "bwaccumdir" directory contains only one folder, in this case called "LDA2_buff_1" ($CFG_NPART = 1, $CFG_QUEUE_TYPE = "Queue";)
I get the same output. The same training folder completes successfully if I don't use LDA_MLLT training option.
Is this information useful for guessing what the reason of failure can be?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So when lda.py checks the arguments:
* if len(sys.argv) < 3:
sys.stderr.write("Usage: %s OUTFILE ACCUMDIRS...\n" % (sys.argv[0]))
sys.exit(1)*
There are none, so the file exits, and the call:
makelda(gauden)
is never made.
I can't find any information on what the correct arguments or their order should be for lda.py. Maybe they are encoded somewhere in a python or perl helper file. I don't work with these two languages, and I may just not be seeing them.
I would really appreciate someone explaining to me what is going on here.
Thanks, V.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the same problem:
"ERROR: lda.py failed to create LDA transform with status 0"
I checked for numpy, scipy. They are OK
.
I tried to run lda.py from cmd, but it is not running:
Unable to create process using 'C:\Users\Rati Skhirtladze\AppData\Local\Programs\Python\Python38-32\python.exe "C:\Sphinx\sphinxtrain\python\cmusphinx\lda.py" '
I think the issue is that I am running lda.py on Windows. I tried to install Debian as Orest mentioned, but without success:
"WslRegisterDistribution failed with error: 0x8007019e
The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again."
Your advise would be much appritiated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I am trying to train an acoustic model with LDA and MLLT feature transforms, with the relevant web-page being situated at http://cmusphinx.sourceforge.net/wiki/ldamllt
If I set $CFG_LDA_MLLT = 'yes'; my training fails, (if I leave that to "no" the same training database completes successfully)
this is the log, using a small database for testing:
sphinxtrain hangs with that last line, and I have to press Ctrl-C to stop it.
Things I tried in order to solve the problem:
I don't understand if the issue is my installation or it's related to my sphinxtrain configuration file or something else
I shared my log folder and sphinx_train.cfg if that helps: http://www.filedropper.com/folderldatar
I can't seem to find the solution, anyone knows what it can be?
You can run lda.py from command line and check what is going on. In case you still have troubles you can share your whole model folder.
Unfortunately I can't share the whole model folder, but I still would appreciate any kind of help
my training task for this training test is called LDA2, and after it failed, if I open LDA2/logdir/01.lda_train/LDA2.lda_train.log with a text-editor I can only see a date (for example "Mon Jul 6 12:06:03 2015"), so I don't know what parameters I'm supposed to use, however I gave it a try:
I installed sphinxtrain using --prefix=/opt/sphinxtrain
so if I run
so I assume "ACCUMDIRS" refers to "bwaccumdir" folder created during the training, and "OUTFILE" refers to a output file that is created during lda.py process.
My "bwaccumdir" directory contains only one folder, in this case called "LDA2_buff_1" ($CFG_NPART = 1, $CFG_QUEUE_TYPE = "Queue";)
So I try to run lda.py in this way:
and I get this output:
If I try to run lda.py from the build folder (the lda.py situated in):
I get the same output. The same training folder completes successfully if I don't use LDA_MLLT training option.
Is this information useful for guessing what the reason of failure can be?
This is the actual error which you can google for.
http://mail.scipy.org/pipermail/numpy-discussion/2013-January/065247.html
suggests that your scipy/numpy installation is broken. Maybe you have some old BLAS/LAPACK packages somewhere.
You need to verify your installation. You may provide more information about numpy version and the way you installed it.
thanks for the help Nickolay, a dist-upgrade to the latest Debian solved the problem, so I'm not exactly sure about the specifics of the issue
I also have this issue.
lda_train.pl makes the call to run lda.py:
These do not look like arguments to me.
So when lda.py checks the arguments:
* if len(sys.argv) < 3:
sys.stderr.write("Usage: %s OUTFILE ACCUMDIRS...\n" % (sys.argv[0]))
sys.exit(1)*
There are none, so the file exits, and the call:
makelda(gauden)
is never made.
I can't find any information on what the correct arguments or their order should be for lda.py. Maybe they are encoded somewhere in a python or perl helper file. I don't work with these two languages, and I may just not be seeing them.
I would really appreciate someone explaining to me what is going on here.
Thanks, V.
This piece of code is correct $ldafile and @bwaccumdirs are properly passed to python.
You can try to run python from command line, most likely the reason of failure is that you do not have scipy installed as provided in documentation:
http://cmusphinx.sourceforge.net/wiki/ldamllt
Overall we recommend to use Linux
I have the same problem:
"ERROR: lda.py failed to create LDA transform with status 0"
I checked for numpy, scipy. They are OK
.
I tried to run lda.py from cmd, but it is not running:
Unable to create process using 'C:\Users\Rati Skhirtladze\AppData\Local\Programs\Python\Python38-32\python.exe "C:\Sphinx\sphinxtrain\python\cmusphinx\lda.py" '
I think the issue is that I am running lda.py on Windows. I tried to install Debian as Orest mentioned, but without success:
"WslRegisterDistribution failed with error: 0x8007019e
The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again."
Your advise would be much appritiated.
You need to install Linux (not WSL but real linux), its kinda hopeless to make all things work on Windows.
You also need to look into kaldi, cmusphinx is kinda outdated.
Thanks for advice.