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

demo does not work. #79

Open
mauriciovander opened this issue Mar 21, 2019 · 0 comments
Open

demo does not work. #79

mauriciovander opened this issue Mar 21, 2019 · 0 comments

Comments

@mauriciovander
Copy link

I'm trying to run the demo in a Docker container. No luck so far

WARNING ([5.5.257~1416-73720]:LatticeWordAligner():word-align-lattice.cc:263) [Lattice has input epsilons and/or is not input-deterministic (in Mohri sense)]-- i.e. lattice is not deterministic. Word-alignment may be slow and-or blow up in memory.

These are the steps to reproduce the error:

Create a Dockerfile

FROM ubuntu

RUN apt-get update
RUN apt-get install -y git

RUN git clone https://github.com/kaldi-asr/kaldi.git kaldi --origin upstream

RUN apt-get install -y apt-utils g++ zlib1g-dev automake autoconf unzip wget sox libtool subversion python2.7 python3 libatlas3-base cmake libff$

RUN cd kaldi/tools; make -j `grep -c ^processor /proc/cpuinfo`

RUN cd kaldi/src; ./configure --shared

RUN cd kaldi/src; make depend -j `grep -c ^processor /proc/cpuinfo`
RUN cd kaldi/src; make -j `grep -c ^processor /proc/cpuinfo`

RUN git clone https://github.com/alumae/gst-kaldi-nnet2-online.git

RUN cd /gst-kaldi-nnet2-online/src; KALDI_ROOT=/kaldi make depend -j `grep -c ^processor /proc/cpuinfo`
RUN cd /gst-kaldi-nnet2-online/src; KALDI_ROOT=/kaldi make -j `grep -c ^processor /proc/cpuinfo`

Build an image and run the container

docker build -t ubuntu-kaldi-gstreamer .
docker run -d --name kaldi -p 80:80 ubuntu-kaldi-gstreamer
docker exec -it kaldi bash

Run the demo in the running container:

cd gst-kaldi-nnet2-online/demo/
export GST_PLUGIN_PATH=../src
./prepare-models.sh 
./transcribe-audio.sh dr_strangelove.mp3 

Don't get the expected JSON output, instead:

WARNING ([5.5.257~1416-73720]:LatticeWordAligner():word-align-lattice.cc:263) [Lattice has input epsilons and/or is not input-deterministic (in Mohri sense)]-- i.e. lattice is not deterministic. Word-alignment may be slow and-or blow up in memory.

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