I'm trying to create DISCRETE HMMs models for handwriting characters, using HTk tool. I model each character by a discrete hmm. HTK allows me to INITIALIZE the an hmm model from ISOLATED data (before the embedded training), using the command HInit and after i use HRest. So, for example, to train the hmm for the character "0" (zero), i use the command line:

HInit -A -D -T 1 -S 0_List.txt -M model/hmm0 -H model/proto/zero zero

0_List.txt is a file contains paths to training files (I make just 10 training files).

model/hmm0 the folder where to save to new hmm model.

model/proto/zero is the name (model/proto/ is folder, zero is the file name) of the hmm file that contains the model definition.

zero is the name of the hmm.

I use a tool to convert the discrete feature file to htk format, called "htkconvert", developed by Erwin M. Bakker, and I also tried a tool developed by one of my colleagues.

HInit returns an error: ERROR [+2126] ViterbiAlign: No path found in 1'th segment.

I checked the htk documentation, and it says that the Viterbi segmentation failed to find a path through the model with this data which may be CORRUPTED!, or maybe there's no path through the model.

Why is this? Why can htk not find a path?

I checked the data with HList and i think there's nothing wrong with the data.

note: the discrete observation sequence length is around 60.

I even tried the command with the option: -w 1.0.

I tried the command HRest, and it says that the data is not USABLE. (error).

Also, for the embedded training, HERest, doesn't give errors, just warnings, but the final models are exactly the same initial ones.

You can find below, some screenshots of the errors, example of hmm model.

Any help/advice/opinion/idea is welcome!

More Soufiane Belharbi's questions See All
Similar questions and discussions