Skip to content
Snippets Groups Projects
Commit 41080c8f authored by Dan Povey's avatar Dan Povey
Browse files

trunk: modify sliding-window CMVN algorithm to include current frame in window...

trunk: modify sliding-window CMVN algorithm to include current frame in window (note: this code not used in any recipes yet); modify prior-floor in nnet-cpu code to fix problem..

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@3032 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent c7be440b
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ void UnitTestOnlineCmvn() {
window_begin += shift;
} else {
window_begin = t - opts.cmn_window;
window_end = t;
window_end = t + 1;
if (window_end < opts.min_window)
window_end = opts.min_window;
}
......
......@@ -348,7 +348,7 @@ void SlidingWindowCmn(const SlidingWindowCmnOptions &opts,
window_end = window_start + opts.cmn_window;
} else {
window_start = t - opts.cmn_window;
window_end = t;
window_end = t + 1;
}
if (window_start < 0) { // shift window right if starts <0.
window_end -= window_start;
......@@ -356,7 +356,7 @@ void SlidingWindowCmn(const SlidingWindowCmnOptions &opts,
}
if (!opts.center) {
if (window_end > t)
window_end = std::max(t, opts.min_window);
window_end = std::max(t + 1, opts.min_window);
}
if (window_end > num_frames) {
window_start -= (window_end - num_frames);
......
......@@ -66,7 +66,12 @@ int main(int argc, char *argv[]) {
bool binary_write = true;
bool set_priors = true; // Also set the per-pdf priors in the model.
BaseFloat prior_floor = 1.0e-08;
BaseFloat prior_floor = 5.0e-06; // The default was previously 1e-8, but
// once we had problems with a pdf-id that
// was not being seen in training, being
// recognized all the time. This value
// seemed to be the smallest prior of the
// "seen" pdf-ids in one run.
MleTransitionUpdateConfig transition_update_config;
ParseOptions po(usage);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment