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

Decoding with Hotwords giving segmentation fault #1388

Closed
chiragpatel39 opened this issue Sep 30, 2024 · 7 comments · Fixed by #1393
Closed

Decoding with Hotwords giving segmentation fault #1388

chiragpatel39 opened this issue Sep 30, 2024 · 7 comments · Fixed by #1393

Comments

@chiragpatel39
Copy link

29166 Segmentation fault python python-api-examples/online-decode-files.py --encoder $model_dir/encoder-epoch-19-avg-1.onnx --decoder $model_dir/decoder-epoch-19-avg-1.onnx --joiner $model_dir/joiner-epoch-19-avg-1.onnx --tokens $model_dir/tokens.txt --num-threads=1 --decoding-method=modified_beam_search --hotwords-file=local/hotwords.txt --modeling-unit bpe ${wav}"003".wav ${wav}"004".wav ${wav}"005".wav ${wav}"006".wav ${wav}"007".wav ${wav}"008".wav ${wav}"009".wav ${wav}"010".wav

My hotword file looks like:

VMO :2.0
quarantine :2.0
remdesivir :2.0
oseltamivir :2.0
isolation :2.0
n ninety five :2.0
NRBM :2.0

Regards,
Chirag Patel

@csukuangfj
Copy link
Collaborator

What is model_dir?

@csukuangfj
Copy link
Collaborator

Also, are you able to reproduce the hotwords example in the documentation?

@csukuangfj
Copy link
Collaborator

Also, please tell us how to reproduce your issue. (You need to provide more details)

@chiragpatel39
Copy link
Author

model_dir is the directory which contain checkpints of trained model.
No I haven't tried with the model given in example. I am following example with our own model.
I will try the example with pre-trained model.

@csukuangfj
Copy link
Collaborator

If you want to debug it with your own model, please try to use C++ binaries. You can use gdb to debug it.

@vsd-vector
Copy link
Contributor

I think this could related to my last merged PR (preserving context between endpointing).

If it is, I will try to create fix as soon as possible.

@csukuangfj
Copy link
Collaborator

I think this could related to my last merged PR (preserving context between endpointing).

If it is, I will try to create fix as soon as possible.

Thanks!

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 a pull request may close this issue.

3 participants