--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+unsubscribe@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/998c7616-ef7d-47a6-afe6-3d4bf05a5086%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The multithreading is definitely possible. If you look at the core code in online2-wav-nnet3-latgen-faster.cc, you'll see that the objects that do the decoding, such as OnlineNnet2FeaturePipeline and SingleUtteranceNnet3Decoder, are lightweight and take only const references to the model and the decoding graph. So the model and decoding graph can be loaded once and shared by multiple threads.The gstreamer stuff isn't maintained by the core Kaldi team and I've decided not to expend my energy doing that.Regarding using TaskSequencer to multithread the decoding of multiple input wav files: that is definitely possible and people who are more experienced in Kaldi programming will be able to do it, but I don't have time myself. In any case, TaskSequencer probably isn't suitable for real-time (interactive) applications... my suspicion is that you don't really need online decoding and could probably accomplish what you need to accomplish using the existing decoding scripts.
On Wed, Nov 29, 2017 at 3:10 AM, Prajwal Rao <prajw...@gmail.com> wrote:
Hello Dan,Is multi threading an online model such as online2-wav-nnet3-latgen-faster possible? (With the help of TaskSequencer)In the case of kaldi gstream server, I have noticed that for every worker initialised the model is reloaded, which is unnecessary if the same model has to be loaded for every client request.Also, could you please guide me in making the necessary changes in online2-wav-nnet3-latgen-faster.cc so that it uses the TaskSequencer to multithread multiple input wav files.Any advise will be gladly appreciated.Thank you,Prajwal Rao
--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+unsubscribe@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/5ef19742-86ef-4daf-bb0e-e6d5058a9c3d%40googlegroups.com.
Hi Rao
Have you been able to prepare Multi-threading code?
I'm also interested in doing something similar and I'd love to see your example...
Cheers
Arkadi