[Subject Prev][Subject Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hts-users:02602] Error in Adaptation demo


Hi , Heiga

Trying to run the adaptation demo, encounter the error below:
  ERROR [+999]  CheckBaseClass: Components missing from Base Class list (15202 15252)
  ERROR [+999]  BaseClass check failed

Then I tracked into the training script and found 'reg.base' was used in this step, below is part of reg.base:
======================
~b "reg.base"
<MMFIDMASK> *
<PARAMETERS> MIXBASE
<STREAMINFO>  5 120 1 1 1 15
<NUMCLASSES> 130
<CLASS> 1 {..........
=======================

Then I used HError to output the total class number, and got this:
  ERROR [+999]  CheckBaseClass: Components missing from Base Class list (15202 15252 130)
  ERROR [+999]  BaseClass check failed

It seems that the list was complete, and the number of mix[*] in 'reg.base' was actually 15252.
Then I recheck the following code in HModel.c:
======================================================
  /* ensure that each component is assigned to a base class */
  for (b=1;b<=bclass->numClasses;b++) {
    for (i=bclass->ilist[b]; i!=NULL; i=i->next) {
      mp = ((MixtureElem *)i->item)->mpdf;
      if (mp->mIdx>0) {
        mp->mIdx = -mp->mIdx;
        ncomp++;
      } else { /* item appears in list multiple times */
        HRError(999,"CheckBaseClass: Component specified multiple times");
        return(FAIL);
      }
    }
  }
=============================================================
If the numClass euqals to the <NUMCLASSES> in 'reg.base', then the error wouldnt happens. Then how could this happen?
Thanks in advance!



您想拥有和网易免费邮箱一样强大的软件吗?