Comments (7)
Hi,
this message terminate called after throwing an instance of 'std::length_error' what(): vector::reserve tells that you have a problem with memory allocation. Some questions that you could investigate:
- You have at least 4 GB RAM free?
- Your system is 64-bit? You may have some problems trying to allocate more than 4 GB when using 32-bit system.
- Would it be possible to test it in a physical machine (without any Virtual Machine)?
I think you don't need to build the image from Git. People have already used the image that is in the Docker hub and it worked.
Please, try to answer these questions and tell me if it helped you...
from docker-kaldi-gstreamer-server.
Hi,
thank you for a prompt response!
to answer 1&2:
I allocated 8 Gigs to the virtual machine.
Here is the output of the 'free' command after starting the server, values are in Megs:
root@4a588ff82a7e:/# free -m
total used free shared buffers cached
Mem: 7976 357 7619 123 8 237
-/+ buffers/cache: 111 7865
Swap: 2901 0 2901
I also assigned 2 processors to the virtual machine.
it doesn't help actually.
3) I don't have a physical Linux machine at my disposal at the moment
4) I tried both with building images as well as pulling them directly from the Docker Hub
Thanks!
from docker-kaldi-gstreamer-server.
Could you please try to run docker with the memory allocation flag? I'm not sure, but I think it's the "-m" flag (Please, check the manual).
If possible, try to set it to 4 GB.
from docker-kaldi-gstreamer-server.
here is what I tried with no luck:
docker run -it -p 8080:80 -m 4g --memory-reservation="4g" -v ...
Just in case I'm using Docker 1.9.1 on a Win machine
from docker-kaldi-gstreamer-server.
I built a small small model that may be useful just to test your setup. Please, download the attached file and untar it. You will find a really small model and a yaml file. Change the necessary lines in this yaml file according to your needs and try to run the docker with it. If it works, you will be able to test it with the wav file I sent in this tar.gz.
Just an important point: I'm not worried about the accuracy of this model. I'm just trying to understand if your setup is ok...
from docker-kaldi-gstreamer-server.
Thank you so much!
it looks like model you posted made the difference.
I was able to get the following output:
NO.
NO.
NO.
NO.
NO.
NO.
NO.
NO.
NO.
NO.
NO.
NO.
NO.
Audio sent, now sending EOS
NO. NO. NO. NO. NO. NO. NO. NO. NO. NO. NO. NO. NO.
What should be my next steps to get the larger model working?
thanks again!
from docker-kaldi-gstreamer-server.
Well, the difference between this model and the other one you have tried is its size. You should investigate problems related to memory allocation in your docker setup ... maybe, you could try to open a big file in your docker and see if it helps you to find out what is happening.
You can also try a smaller kaldi model, e.g. : https://github.com/alumae/kaldi-gstreamer-server/tree/master/test/models/english/voxforge/tri2b_mmi_b0.05 (with this yaml file: https://github.com/alumae/kaldi-gstreamer-server/blob/master/sample_worker.yaml)
from docker-kaldi-gstreamer-server.
Related Issues (20)
- Can I update the Kaldi version in the Docker container? HOT 2
- Unknown component type TdnnComponent HOT 2
- response['transcript'] did not return final:true
- Build fails: MKL libraries could not be found HOT 1
- I want to get the start and end time of the sentence.
- No decoder available ,try again later HOT 1
- greek characters
- Cannot build on a Raspberry Pi 4 HOT 1
- recognition occurs, no result returned to client, then worker/master hangs HOT 2
- Portuguese model avaliable
- How to api provided with ajax request
- core happened using chain model HOT 3
- Command in README.md causes incorrect rocognition on speech containing "test"
- How to tune Kaldi gsteamer for using NNET3 decoder
- ReadFstKaldiGeneric():kaldi-fst-io.cc:82) Could not read fst from {MODEL_FILE}
- Docker build errors on Ubuntu 18.04 HOT 1
- No responses returned on websocket
- worker is errors
- Received error from server (status 9) Error message: No decoder available, try again later HOT 1
- failed: Connection refused. wget https://phon.ioc.ee/~tanela/tedlium_nnet_ms_sp_online.tgz** HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-kaldi-gstreamer-server.