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

run error in stage 5 -----empty graph #11

Open
curlneuron opened this issue Jan 20, 2021 · 3 comments
Open

run error in stage 5 -----empty graph #11

curlneuron opened this issue Jan 20, 2021 · 3 comments

Comments

@curlneuron
Copy link

curlneuron commented Jan 20, 2021

Hi,
when i use the mini_librispeech in run.sh : Stage 5
Here is a problem.

Initializing dataset...
100%|███████████████████████████████████████████████████████████████████████████| 1519/1519 [00:01<00:00, 1170.80it/s]
Initializing dataset...
0%| | 0/1089 [00:00<?, ?it/s]
Traceback (most recent call last):
File "../../train.py", line 330, in
main()
File "../../train.py", line 126, in main
validset = ChainDataset(args.valid, no_feat=args.no_feat)
File "pychain_example/dataset.py", line 145, in init
graph = ChainGraph(fst, log_domain=True)
File "pychain/graph.py", line 70, in init
raise Exception("An empty graph encountered!")
Exception: An empty graph encountered!

@curlneuron curlneuron changed the title run module error run error Jan 21, 2021
@curlneuron curlneuron changed the title run error run error in stage 5 ----- empty graph Jan 21, 2021
@curlneuron
Copy link
Author

curlneuron commented Jan 21, 2021

If I just comment out the exception line(line #70) in graph.py, will there be any problem in the following stages?

@YiwenShaoStephen
Copy link
Owner

Yes. You can simply comment out that exception as I've already skipped empty graphs in dataset.py.

@curlneuron curlneuron changed the title run error in stage 5 ----- empty graph run error in stage 5 -----simplefst.StdVectorFst Jan 23, 2021
@curlneuron curlneuron changed the title run error in stage 5 -----simplefst.StdVectorFst run error in stage 4 -----simplefst.StdVectorFst Jan 23, 2021
@curlneuron curlneuron changed the title run error in stage 4 -----simplefst.StdVectorFst run error in stage 5 -----data Initializing -- simplefst.StdVectorFst Jan 23, 2021
@curlneuron curlneuron changed the title run error in stage 5 -----data Initializing -- simplefst.StdVectorFst run error in stage 5 -----empty graph Jan 24, 2021
@groadabike
Copy link

If I just comment out the exception line(line #70) in graph.py, will there be any problem in the following stages?

Thank you, I was struggling with this part.

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

3 participants