[hts-users:01211] Problems in algorithm of parameter generation in HGen.c and HTS_mplg.c
- Subject: [hts-users:01211] Problems in algorithm of parameter generation in HGen.c and HTS_mplg.c
- From: QHE <obase@xxxxxxx>
- Date: Mon, 10 Mar 2008 21:04:18 +0800
- Delivered-to: hts-users@xxxxxxxxxxxxxxx
Hello Heiga,
According to the papers on parameter generation using dynamic parameters, we should calculate the W'*U^{-1}*M and W'*U^{-1}*W first, but when reading the code in HGen.c and HTS_mlpg.c, I found the code not consistent with the algorithm in the papers. Am I not understanding the code correctly?
1. In line 836 of HGen.c:
pst->WUM[M*(t-1)+m] += ((double)pst->win.coef[d][-j]) * pst->mseq[t+j][d*pst->order+m+bias];
there is no 'inverse variation' term to calculate WUM, while in line 85 of HTS_mplg.c:
WU = pst->dw.coef[i][-j] * pst->sm.ivseq[t + j][i * pst->order + m];
pst->sm.WUM[t] += WU * pst->sm.mseq[t + j][i * pst->order + m];
there is the 'inverse variation' term sm.ivseq.
Is the term ommited intentionally in HGen.c or just a mistake?
2. In line 849 of HGen.c:
/* W'*U^{-1}*W */
for (k=0; (WU!=0.0) && (k<pst->width) && (t+k<=pst->T); k++)
if ((pst->win.width[d][WLEFT]<=k-j) && (k-j<=pst->win.width[d][WRIGHT]) && (M*k+n-m+1>0) && (pst->win.coef[d][k-j]!=0.0))
pst->WUW[M*(t-1)+m][M*k+n-m+1] += WU*(double)pst->win.coef[d][k-j];
and the line 88 of HTS_mplg.c:
for (k = 0; (k < pst->width) && (t + k <= pst->T); k++)
We see k is from 0 to width (for exmple 0 to 4), but I think the k should be from win.width[d][WLEFT] to win.width[d][WRIGHT] (for exmple -2 to +2). In the current code, I think only half of the window is applied when calculating WUW by WU * W.
Am I right?
Best regards,
QHE mailto:obase@xxxxxxx
- Follow-Ups
-
- [hts-users:01212] Re: Problems in algorithm of parameter generation in HGen.c and HTS_mplg.c, Heiga ZEN (Byung Ha CHUN)
- References
-
- [hts-users:01208] Re: how to set the hlist.conf, Heiga ZEN (Byung Ha CHUN)
- [hts-users:01207] how to set the hlist.conf, paminy
- [hts-users:01209] Re: how to set the hlist.conf, paminy
- [hts-users:01210] Re: how to set the hlist.conf, Heiga ZEN (Byung Ha CHUN)