i am doing adaptaion of my custom acoustic model. i refered this link http://cmusphinx.sourceforge.net/wiki/tutorialadapt, but i need mixture_weights file for adaptation ,when i am going to convert sendump file to mixture_weights file by using command
/python sphinxtrain\python\cmusphinx\sendump.py /sendump /mixture_weights
it gives
Traceback (most recent call last):
File "sphinxtrain\python\cmusphinx\sendump.py", line 4, in <module>
import s3mixw
File "F:\PocketSphinx\adaptation_from_20_apr_2016\sphinxtrain\python\cmusphinx\s3mixw.py", line 15, in <module>
from s3file import S3File, S3File_write
File "F:\PocketSphinx\adaptation_from_20_apr_2016\sphinxtrain\python\cmusphinx\s3file.py", line 17, in <module>
from numpy import array,reshape,shape,fromstring
ImportError: No module named numpy</module></module></module>
please help me out
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when i tried to run above command after installing numpy(pip install numpy)
it gives
Traceback (most recent call last):
File "sphinxtrain\python\cmusphinx\sendump.py", line 82, in <module>
s3mixw.open(sys.argv[2], 'wb').writeall(Sendump(sys.argv[1]).mixw())
File "sphinxtrain\python\cmusphinx\sendump.py", line 12, in init
self.load(filename)
File "sphinxtrain\python\cmusphinx\sendump.py", line 58, in load
cluster_count = (int)(header.split()[1])
ValueError: invalid literal for int() with base 10: 'centroids'</module>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i am doing adaptaion of my custom acoustic model. i refered this link http://cmusphinx.sourceforge.net/wiki/tutorialadapt, but i need mixture_weights file for adaptation ,when i am going to convert sendump file to mixture_weights file by using command
/python sphinxtrain\python\cmusphinx\sendump.py /sendump /mixture_weights
it gives
Traceback (most recent call last):
File "sphinxtrain\python\cmusphinx\sendump.py", line 4, in <module>
import s3mixw
File "F:\PocketSphinx\adaptation_from_20_apr_2016\sphinxtrain\python\cmusphinx\s3mixw.py", line 15, in <module>
from s3file import S3File, S3File_write
File "F:\PocketSphinx\adaptation_from_20_apr_2016\sphinxtrain\python\cmusphinx\s3file.py", line 17, in <module>
from numpy import array,reshape,shape,fromstring
ImportError: No module named numpy</module></module></module>
please help me out
when i tried to run above command after installing numpy(pip install numpy)
it gives
Traceback (most recent call last):
File "sphinxtrain\python\cmusphinx\sendump.py", line 82, in <module>
s3mixw.open(sys.argv[2], 'wb').writeall(Sendump(sys.argv[1]).mixw())
File "sphinxtrain\python\cmusphinx\sendump.py", line 12, in init
self.load(filename)
File "sphinxtrain\python\cmusphinx\sendump.py", line 58, in load
cluster_count = (int)(header.split()[1])
ValueError: invalid literal for int() with base 10: 'centroids'</module>
Not every sendump can be converted easily, tutorial says that. You need to retrain the model.