mravanelli / pytorch-kaldi

pytorch-kaldi is a project for developing state-of-the-art DNN/RNN hybrid speech recognition systems. The DNN part is managed by pytorch, while feature extraction, label computation, and decoding are performed with the kaldi toolkit.
2.37k stars 446 forks source link

ERROR: hmm-info command doesn't exist. However I have `hmm-info` working in terminal. #217

Closed andi611 closed 4 years ago

andi611 commented 4 years ago

Hi, I've successfully installed pytorch-kaldi before. However, when I try to install on a new machine I encountered this error: image ~/.bashrc is successfully set, hmm-info and copy-feats are both working in the terminal, as shown in the screenshot.

However, when I run run_exp.py I still got this error: ERROR: hmm-info command doesn't exist. Make sure your .bashrc contains the Kaldi paths and correctly exports it.

Can you please show me how to fix this, or give some insight into the problem? Thank you for your help!

andi611 commented 4 years ago

I've figured out what caused this error: hmm-info was executed with <model-in> as: kaldi/egs/librispeech/s5/exp/tri4b/final.mdl.

However my final.mdl was missing, which makes hmm-info returns a ''. The returned '' caused pytorch-kaldi to throw the above ERROR msg, saying that it is a Kaldi PATH problem, which is very misleading as in my case.