Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LatticeFasterDecoder failed with "link_extra_cost == link_extra_cost" #214

Closed
feihwu opened this issue Jun 5, 2019 · 1 comment
Closed

Comments

@feihwu
Copy link

feihwu commented Jun 5, 2019

Hello everyone -
I successfully decode a prob output from accoustic model using lattice_faster_decoder.decode().

now I want to simulate the online decoding - I split the prob output into several chunks, each chunk has 50 frames.

For each chunk, I call the function lattice_faster_decoder.advanceDecoding() ( I changed the target_frames_decoded to ensure it is correct; and called lattice_faster_decoder.InitDecoding() once at the very beginning)

then in the processing the 2nd chunk, I get the error "failed: link_extra_cost == link_extra_cost".
which means the link_extra_cost is NaN in PruneForwardLinks(...).
any hints why this happen?

Thanks.

@feihwu feihwu closed this as completed Jun 6, 2019
@feihwu
Copy link
Author

feihwu commented Jun 6, 2019

figure out why - this NaN is caused by invalid index into the decodable->LogLikelihood(...).

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

No branches or pull requests

1 participant