Menu

convert from sendump to mixture_weights

Help
2016-04-26
2016-04-28
  • Himanshu Srivastava

    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

     
  • Himanshu Srivastava

    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>

     
    • Nickolay V. Shmyrev

      Not every sendump can be converted easily, tutorial says that. You need to retrain the model.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.