alumae / gst-kaldi-nnet2-online

GStreamer plugin around Kaldi's online neural network decoder
Apache License 2.0
185 stars 100 forks source link

gstkaldinnet2onlinedecoder "no member named 'global_cmvn_stats_rxfilename' #98

Closed jonasschui closed 3 years ago

jonasschui commented 3 years ago

Hi,

i am currently attempting to build a docker image that will be able to run a dutch version of Kaldi on a databricks server. I have access to a previous (working) build from 4 months ago that was made from the following github repository: https://github.com/Nafia123/kaldi-nl.git.

However when I now try to build it (both locally and within docker) i get the error bellow. After doing some digging it leads me to believe that this has someting to do with the CMVN update as mentioned here: https://github.com/alumae/gst-kaldi-nnet2-online.

Step 12/17 : RUN cd /opt &&     git clone https://github.com/alumae/gst-kaldi-nnet2-online.git &&     cd /opt/gst-kaldi-nnet2-online/src &&     sed -i '/KALDI_ROOT?=\/home\/tanel\/tools\/kaldi-trunk/c\KALDI_ROOT?=\/opt\/kaldi' Makefile &&     make depend && make &&     rm -rf /opt/gst-kaldi-nnet2-online/.git/ &&     find /opt/gst-kaldi-nnet2-online/src/ -type f -not -name '*.so' -delete &&     rm -rf /opt/kaldi/.git &&     rm -rf /opt/kaldi/windows/ /opt/kaldi/misc/ &&     cd /opt && git clone https://github.com/alumae/kaldi-gstreamer-server.git &&     rm -rf /opt/kaldi-gstreamer-server/.git/ &&     rm -rf /opt/kaldi-gstreamer-server/test/
 ---> Running in 5ecffd673dcd
Cloning into 'gst-kaldi-nnet2-online'...
Makefile:75: warning: overriding recipe for target 'clean'
/opt/kaldi/src/makefiles/default_rules.mk:85: warning: ignoring old recipe for target 'clean'
Makefile:79: warning: overriding recipe for target 'depend'
/opt/kaldi/src/makefiles/default_rules.mk:149: warning: ignoring old recipe for target 'depend'
glib-genmarshal --header --prefix=kaldi_marshal kaldimarshal.list > kaldimarshal.h.tmp
mv kaldimarshal.h.tmp kaldimarshal.h
echo "#include \"glib-object.h\"" >> kaldimarshal.c.tmp
echo "#include \"kaldimarshal.h\"" >> kaldimarshal.c.tmp
glib-genmarshal --body --prefix=kaldi_marshal kaldimarshal.list >> kaldimarshal.c.tmp
mv kaldimarshal.c.tmp kaldimarshal.cc
g++ -M -std=c++11 -I.. -isystem /opt/kaldi/tools/openfst-1.6.7/include -O1 -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_MKL -I/opt/intel/mkl/include -m64 -msse -msse2 -pthread -g -fPIC -I/opt/kaldi/src *.cc > .depend.mk
Makefile:75: warning: overriding recipe for target 'clean'
/opt/kaldi/src/makefiles/default_rules.mk:85: warning: ignoring old recipe for target 'clean'
Makefile:79: warning: overriding recipe for target 'depend'
/opt/kaldi/src/makefiles/default_rules.mk:149: warning: ignoring old recipe for target 'depend'
g++ -std=c++11 -I.. -isystem /opt/kaldi/tools/openfst-1.6.7/include -O1 -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_MKL -I/opt/intel/mkl/include -m64 -msse -msse2 -pthread -g -fPIC -I/opt/kaldi/src   -c -o gstkaldinnet2onlinedecoder.o gstkaldinnet2onlinedecoder.cc
gstkaldinnet2onlinedecoder.cc: In function 'void kaldi::gst_kaldinnet2onlinedecoder_reset_cmvn_state(kaldi::Gstkaldinnet2onlinedecoder*)':
gstkaldinnet2onlinedecoder.cc:2082:29: error: 'struct kaldi::OnlineNnet2FeaturePipelineInfo' has no member named 'global_cmvn_stats_rxfilename'
   if (filter->feature_info->global_cmvn_stats_rxfilename != "")
                             ^
gstkaldinnet2onlinedecoder.cc:2083:45: error: 'struct kaldi::OnlineNnet2FeaturePipelineInfo' has no member named 'global_cmvn_stats_rxfilename'
       ReadKaldiObject(filter->feature_info->global_cmvn_stats_rxfilename,
                                             ^
<builtin>: recipe for target 'gstkaldinnet2onlinedecoder.o' failed
make: *** [gstkaldinnet2onlinedecoder.o] Error 1
The command '/bin/sh -c cd /opt &&     git clone https://github.com/alumae/gst-kaldi-nnet2-online.git &&     cd /opt/gst-kaldi-nnet2-online/src &&     sed -i '/KALDI_ROOT?=\/home\/tanel\/tools\/kaldi-trunk/c\KALDI_ROOT?=\/opt\/kaldi' Makefile &&     make depend && make &&     rm -rf /opt/gst-kaldi-nnet2-online/.git/ &&     find /opt/gst-kaldi-nnet2-online/src/ -type f -not -name '*.so' -delete &&     rm -rf /opt/kaldi/.git &&     rm -rf /opt/kaldi/windows/ /opt/kaldi/misc/ &&     cd /opt && git clone https://github.com/alumae/kaldi-gstreamer-server.git &&     rm -rf /opt/kaldi-gstreamer-server/.git/ &&     rm -rf /opt/kaldi-gstreamer-server/test/' returned a non-zero code: 2
kenbalto commented 3 years ago

Did you find a solution to this?

jonasschui commented 3 years ago

Nope not yet

Op vr 18 sep. 2020 om 15:38 schreef kenbalto notifications@github.com:

Did you find a solution to this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alumae/gst-kaldi-nnet2-online/issues/98#issuecomment-694872961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBMM7HSA6GTBHL4JIUN6XTSGNPE3ANCNFSM4RQIW52Q .

--

Momina12 commented 3 years ago

I am facing the same error. Can anyone please help me solve this issue?

code-mongkey commented 3 years ago

https://github.com/alumae/gst-kaldi-nnet2-online/issues/99#issuecomment-698417910

this comment is help to U

alumae commented 3 years ago

Duplicate of #99

Momina12 commented 3 years ago

@code-mongkey thanks a lot.... it worked