Skip to content

Fix nnet3 endpointing to correctly use frame subsampling factor (#1184)#1196

Merged
danpovey merged 2 commits intokaldi-asr:masterfrom
alumae:chain-online-endpointing-fix
Nov 16, 2016
Merged

Fix nnet3 endpointing to correctly use frame subsampling factor (#1184)#1196
danpovey merged 2 commits intokaldi-asr:masterfrom
alumae:chain-online-endpointing-fix

Conversation

@alumae
Copy link
Contributor

@alumae alumae commented Nov 15, 2016

Should take care of issue #1184.

/// Indices are one-based! This is for compatibility with OpenFst.
virtual int32 NumIndices() const { return trans_model_.NumTransitionIds(); }

virtual int32 FrameSubsamplingFactor() const { return opts_.frame_subsampling_factor; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove the 'virtual' here, since it isn't part of the interface.

Overall this is a little bit of a hack, but if I think of a more general way to do this we can do it later on.

@alumae
Copy link
Contributor Author

alumae commented Nov 16, 2016

Changed FrameSubsamplingFactor() to non-virtual.

I agree this PR is a bit of hack.

@danpovey
Copy link
Contributor

Thanks! Merging.

@danpovey danpovey merged commit f66e83e into kaldi-asr:master Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants