OpenSeq2Seq icon indicating copy to clipboard operation
OpenSeq2Seq copied to clipboard

ModuleNotFoundError: No module named 'ctc_decoder' while running demo_sreaming_asr.py

Open upendrasingh18 opened this issue 5 years ago • 5 comments

while running demo_streaming_asr.py getting error ModuleNotFoundError: No module named 'ctc_decoder'

upendrasingh18 avatar Nov 16 '19 05:11 upendrasingh18

You have to build the ctc_decoder. The process is available here https://nvidia.github.io/OpenSeq2Seq/html/installation.html#installation-speech

WillemGooderham1 avatar Nov 19 '19 19:11 WillemGooderham1

@WillemGooderham1 The installation of decoders with the following command: bash scripts/install_decoders.sh is failing for me with this output: installing_decoders_output.txt [Note: I am trying to install Baidu CTC decoder]

And while trying to run python scripts/ctc_decoders_test.pyto check installation, I run into same error as the OP.

My machine: Ubuntu 18.04

ghost avatar Apr 06 '20 17:04 ghost

Your install is failing because you don't have swig installed on your environment (or it isn't found)

WillemGooderham1 avatar Apr 06 '20 17:04 WillemGooderham1

But I don't see swig mentioned in the installation documents or the requirements.txt file..

ghost avatar Apr 06 '20 18:04 ghost

Hi,

I have windows operating system. I have installed swig and added swig to my environment path. I have ctc_decoder module but no swig_decoders. Can anyone help me where I can find it?

ModuleNotFoundError: No module named 'swig_decoders'

computervisionpro avatar Jun 04 '21 13:06 computervisionpro