Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

"there is a cycle" during Determinizing L*G #36

Closed
qssheep opened this issue Dec 10, 2020 · 4 comments
Closed

"there is a cycle" during Determinizing L*G #36

qssheep opened this issue Dec 10, 2020 · 4 comments

Comments

@qssheep
Copy link

qssheep commented Dec 10, 2020

I was trying the Librispeech example and got error when running decode.py

Loading L_disambig.fst.txt
Loading G.fsa.txt
DEBUG:root:Intersecting L and G
DEBUG:root:LG shape = (21246039, None)
DEBUG:root:Connecting LG
DEBUG:root:LG shape = (21246039, None)
DEBUG:root:Determinizing L
G
[F] /home/yckj2113/github/k2/k2/csrc/host/fsa_util.cc:void k2host::CreateFsa(const std::vectork2host::Arc&, k2host::Fsa*, std::vector*):470 there is a cycle: 15976413 -> 256

My lm was downloaded using run.sh.

@qindazhu
Copy link
Collaborator

I guess you are running with G.fst.txt you generated with old scripts in snowfall before, the cycle is from </s> (EOS) in LM. We have fixed that issue with #33, so just pull the latest code and re-generate G.fst.txt by running run.sh would be fine.

BTW, there's another issue in decode.py now about aux_labels on L*G, see here #31 (comment) for details, we need to write some C++ code to fix that issue, so the decode.py now is actually not working (the script is disabled in my last PR, but because of some reason, the change is not merged)

@qssheep
Copy link
Author

qssheep commented Dec 11, 2020

Thank you, I'll try it as soon as decode.py is available.

@qssheep
Copy link
Author

qssheep commented Dec 15, 2020

I tried the latest version today and the error still appears.
Then I realized it is my k2 version instead of snowfal, after re-install my k2, this error disappears.

@qssheep qssheep closed this as completed Dec 15, 2020
@qindazhu
Copy link
Collaborator

Thanks, bear in mind we are still tuning the model, so please ignore the bad WER for now (but definitely you can see the whole train/decoding process with k2 and lhotse)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants