Click here to register.

General Discussion

Flat
error with HInit.
User: cvani
Date: 4/21/2011 7:44 am
Views: 12080
Rating: 3

I have been trying to use HInit and have been getting different errors. The first one being the following: In this example, I am just trying to recognize a phoneme for the letter 'a'.

HInit -A -D -T 1 test_0.mfcc -M hmm0 -H hmmFile -l "a" -L test_0.lab a
HInit -A -D -T 1 test_0.mfcc -M hmm0 -H hmmFile -l a -L test_0.lab a

No HTK Configuration Parameters Set

HMM Def Error: GetToken: Symbol expected at line 1/col 2/char 1 in test_0.mfcc
  ERROR [+7050]  HMError:
HMM Def Error: LoadHMMSet: GetToken failed at line 1/col 0/char -1 in test_0.mfcc
  ERROR [+7050]  HMError:
  ERROR [+2128]  Initialise: LoadHMMSet failed
 FATAL ERROR - Terminating program HInit

And the second one is for another example which is the following: This is the tutorial I am following which is to recognize 'yes/no'.

HInit -A -D -T 1 -S trainlist.txt -M model/hmm0 -H model/proto/hmm_yes -l yes -L data/train/lab yes
HInit -A -D -T 1 -S trainlist.txt -M model/hmm0 -H model/proto/hmm_yes -l yes -L data/train/lab yes

No HTK Configuration Parameters Set

Initialising  HMM yes . . .
 States   :   2  3  4  5 (width)
 Mixes  s1:   1  1  1  1 ( 39  )
 Num Using:   0  0  0  0
 Parm Kind:  MFCC_D_A_0
 Number of owners = 1
 SegLab   :  yes
 maxIter  :  20
 epsilon  :  0.000100
 minSeg   :  3
 Updating :  Means Variances MixWeights/DProbs TransProbs

 - system is PLAIN
  ERROR [+2121]  HInit: Too Few Observation Sequences [1]
 FATAL ERROR - Terminating program HInit

--- (Edited on 4/21/2011 7:44 am [GMT-0500] by cvani) ---

--- (Edited on 4/21/2011 10:06 am [GMT-0500] by cvani) ---

Re: error with HInit.
User: TonyR
Date: 4/21/2011 11:50 am
Views: 1195
Rating: 4


HMM Def Error: GetToken: Symbol expected at line 1/col 2/char 1 in test_0.mfcc
  ERROR [+7050]  HMError:

 

The first thing you should do when you get an error with HTK that you don't know is to look at the error list in the back of the HTK maual.   In this case error +7050 is "Model file format error".   I assume that test_0.mfcc isn't a model file, so that's what's wrong.

 

Tony


P.S. you are likely to get more help on the HTK users list.

--- (Edited on 21-April-2011 5:50 pm [GMT+0100] by TonyR) ---

Re: error with HInit.
User: yeli
Date: 9/26/2011 10:36 am
Views: 131
Rating: 2

the same ERROR

 ERROR [+2121]  HInit: Too Few Observation Sequences [0]

The explain of HTK book is that: NOT enough data to reliably estimate parameters.
Use more training data.

Can someone give more detail about "training data"? the quantity of the recording or
length of the recording?I tried,but failed.

Thanks for answer!

--- (Edited on 9/26/2011 10:36 am [GMT-0500] by Visitor) ---

Re: error with HInit.
User: kmaclean
Date: 9/26/2011 7:09 pm
Views: 2635
Rating: 3

>quantity of the recording

you need lots of 5-15 seconds snippets of speech

--- (Edited on 9/26/2011 8:09 pm [GMT-0400] by kmaclean) ---

Re: error with HInit.
User: Shohre
Date: 2/7/2014 12:50 pm
Views: 332
Rating: 2

Hi.

I am using HTK for handwriting recognition.

I made my model like this:

~o

<VecSize> 1 <USER>

<BeginHMM>

<NumStates> 5

<State> 2

<Mean> 1

-2.5692

<Variance> 1

2.8557

<State> 3

<Mean> 1

0.90271

<Variance> 1

2.6101

<State> 4

<Mean> 1

-2.4921

<Variance> 1

2.4246

<TransP> 5

0 1 0 0 0

0 0.1 0.9 0 0

0 0 0.1 0.9 0

0 0 0 0.1 0.9

0 0 0 0 0

 

<EndHMM>

 

I get the same error. can anyone help me?

--- (Edited on 2/7/2014 12:50 pm [GMT-0600] by Visitor) ---

Re: error with HInit.
User: sony
Date: 2/16/2016 11:01 pm
Views: 54
Rating: 1

What should we do if the model file .mfcc is error???

 

i used parameters for coverting as

# coding parameters
SOURCEKIND = WAVFORM
SOURCEFORMAT = WAV
TARGETKIND = MFCC_0_D_A
TARGETRATE= 100000.0
WINDOWSIZE = 250000.0
USEHAMMING = T
PREEMCOEF = 0.97
NUMCHANS = 26
CEPLIFTER = 22
NUMCEPS = 12

 

 

i am still getiing an error of hmm defintion error.....when i use HInit command...

--- (Edited on 2/16/2016 11:01 pm [GMT-0600] by Visitor) ---

Re: error with HInit.
User: kmaclean
Date: 2/18/2016 9:39 am
Views: 1744
Rating: 0

>i am still getiing an error of hmm defintion error.....when i use HInit command...

what is your error?

--- (Edited on 2/18/2016 10:39 am [GMT-0500] by kmaclean) ---

Re: error with HInit.
User: Razi
Date: 4/1/2014 3:50 pm
Views: 1620
Rating: 2

If You Increase the size of your recordings , it will work. for simple yes no problem 12 to 15 observations for each yes and no works fine

--- (Edited on 4/1/2014 3:50 pm [GMT-0500] by Visitor) ---

error with HInit.
User: sunil patil
Date: 6/18/2015 1:45 pm
Views: 143
Rating: 2

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

 

C:\Users\PASKAL>cd\

 

C:\>cd htk

 

C:\htk>HInit -A -D -T 1 -S trainlist.txt -M model/hmm0/ -H model/proto/yes_0 -l

label -L label_dir yes_0

HInit -A -D -T 1 -S trainlist.txt -M model/hmm0/ -H model/proto/yes_0 -l label -

L label_dir yes_0

 

No HTK Configuration Parameters Set

 

Initialising  HMM yes_0 . . .

 States   :   2  3  4  5 (width)

 Mixes  s1:   1  1  1  1 ( 39  )

 Num Using:   0  0  0  0

 Parm Kind:  MFCC_D_A_0

 Number of owners = 1

 SegLab   :  label

 maxIter  :  20

 epsilon  :  0.000100

 minSeg   :  3

 Updating :  Means Variances MixWeights/DProbs TransProbs

 

 - system is PLAIN

  ERROR [+2121]  HInit: Too Few Observation Sequences [0]

 FATAL ERROR - Terminating program HInit

 

C:\htk>

 

--- (Edited on 6/18/2015 1:45 pm [GMT-0500] by Visitor) ---

PreviousNext