GithubHelp home page GithubHelp logo

Comments (7)

jcsilva avatar jcsilva commented on August 16, 2024

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:

  1. You have at least 4 GB RAM free?
  2. Your system is 64-bit? You may have some problems trying to allocate more than 4 GB when using 32-bit system.
  3. 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.

usr000 avatar usr000 commented on August 16, 2024

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.

jcsilva avatar jcsilva commented on August 16, 2024

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.

usr000 avatar usr000 commented on August 16, 2024

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.

jcsilva avatar jcsilva commented on August 16, 2024

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...

yes_no.tar.gz

from docker-kaldi-gstreamer-server.

usr000 avatar usr000 commented on August 16, 2024

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.

jcsilva avatar jcsilva commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.