Menu

Error adapting hub4wsj_sc_8k for pocketsphinx

Help
aarmea
2011-05-16
2012-09-22
  • aarmea

    aarmea - 2011-05-16

    I'm trying to adapt the hub4wsj_sc_8k model for pocketsphinx by following the
    tutorial at http://cmusphinx.sourceforge.net/wiki/tutorialadapt. However, once I get to the step
    which collects statistics using bw, I get the error "FATAL_ERROR: "mod_inv.c",
    line 354: Number of feature streams in mixture_weights file 3 differs from the
    configured value 1, check the command line options".

    What am I doing wrong?

    Here is the entire command line output:

    aarmea@ubuntu:~/Desktop/model$ ./bw \
    >  -hmmdir hub4wsj_sc_8k \
    >  -moddeffn hub4wsj_sc_8k/mdef.txt \
    >  -ts2cbfn .semi. \
    >  -feat 1s_c_d_dd \
    >  -svspec 0-12/13-25/26-38 \
    >  -cmn current \
    >  -agc none \
    >  -dictfn arctic20.dic \
    >  -ctlfn arctic20.fileids \
    >  -lsnfn arctic20.transcription \
    >  -accumdir .
    INFO: main.c(194): Compiled on May  3 2011 at 14:38:35
    INFO: cmd_ln.c(559): Parsing command line:
    ./bw \
        -hmmdir hub4wsj_sc_8k \
        -moddeffn hub4wsj_sc_8k/mdef.txt \
        -ts2cbfn .semi. \
        -feat 1s_c_d_dd \
        -svspec 0-12/13-25/26-38 \
        -cmn current \
        -agc none \
        -dictfn arctic20.dic \
        -ctlfn arctic20.fileids \
        -lsnfn arctic20.transcription \
        -accumdir .
    
    Current configuration:
    [NAME]          [DEFLT]     [VALUE]
    -2passvar       no      no
    -abeam          1e-100      1.000000e-100
    -accumdir               .
    -agc            none        none
    -agcthresh      2.0     2.000000e+00
    -bbeam          1e-100      1.000000e-100
    -cb2mllrfn      .1cls.      .1cls.
    -cepdir                 
    -cepext         .mfc        .mfc
    -ceplen         13      13
    -ckptintv               0
    -cmn            current     current
    -cmninit        8.0     8.0
    -ctlfn                  arctic20.fileids
    -diagfull       no      no
    -dictfn                 arctic20.dic
    -example        no      no
    -fdictfn                
    -feat           1s_c_d_dd   1s_c_d_dd
    -fullsuffixmatch    no      no
    -fullvar        no      no
    -help           no      no
    -hmmdir                 hub4wsj_sc_8k
    -latdir                 
    -latext                 
    -lda                    
    -ldaaccum       no      no
    -ldadim         0       0
    -lsnfn                  arctic20.transcription
    -ltsoov         no      no
    -lw         11.5        1.150000e+01
    -maxuttlen      0       0
    -meanfn                 
    -meanreest      yes     yes
    -mixwfn                 
    -mixwreest      yes     yes
    -mllrmat                
    -mmie           no      no
    -mmie_type      rand        rand
    -moddeffn               hub4wsj_sc_8k/mdef.txt
    -mwfloor        0.00001     1.000000e-05
    -npart                  0
    -nskip                  0
    -outphsegdir                
    -outputfullpath     no      no
    -part                   0
    -pdumpdir               
    -phsegdir               
    -phsegext       phseg       phseg
    -runlen         -1      -1
    -sentdir                
    -sentext        sent        sent
    -spthresh       0.0     0.000000e+00
    -svspec                 0-12/13-25/26-38
    -timing         yes     yes
    -tmatfn                 
    -tmatreest      yes     yes
    -topn           4       4
    -tpfloor        0.0001      1.000000e-04
    -ts2cbfn                .semi.
    -varfloor       0.00001     1.000000e-05
    -varfn                  
    -varnorm        no      no
    -varreest       yes     yes
    -viterbi        no      no
    
    INFO: feat.c(697): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='current', VARNORM='no', AGC='none'
    INFO: cmn.c(142): mean[0]= 12.00, mean[1..12]= 0.0
    INFO: main.c(219): Using subvector specification 0-12/13-25/26-38
    INFO: main.c(283): Reading hub4wsj_sc_8k/mdef.txt
    INFO: model_def_io.c(587): Model definition info:
    INFO: model_def_io.c(588): 143097 total models defined (50 base, 143047 tri)
    INFO: model_def_io.c(589): 572388 total states
    INFO: model_def_io.c(590): 5150 total tied states
    INFO: model_def_io.c(591): 150 total tied CI states
    INFO: model_def_io.c(592): 50 total tied transition matrices
    INFO: model_def_io.c(593): 4 max state/model
    INFO: model_def_io.c(594): 4 min state/model
    INFO: s3mixw_io.c(116): Read hub4wsj_sc_8k/mixture_weights [5150x3x256 array]
    FATAL_ERROR: "mod_inv.c", line 354: Number of feature streams in mixture_weights file 3 differs from the configured value 1, check the command line options
    
     
  • Nickolay V. Shmyrev

    Hello

    This bug was just fixed in trunk. Please download and compile snapshot.

     

Log in to post a comment.