tdnn_7b loading model...
LOG ([5.2.52~1-cac0]:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor
LOG ([5.2.52~1-cac0]:ComputeDerivedVars():ivector-extractor.cc:204) Done.
ERROR: FstImpl::ReadHeader: FST not of type vector: <unspecified>
ERROR ([5.2.52~1-cac0]:ReadFstKaldi():kaldi-fst-io.cc:40) Could not read fst from data/models/aspire/tdnn_7b/HCLG.fst
> email to kaldi-help+unsubscribe@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "kaldi-help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kaldi-help/0SuCkeHyUmU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kaldi-help+unsubscribe@googlegroups.com.
online2-wav-nnet3-latgen-faster \
--online=false \
--do-endpointing=false \
--frame-subsampling-factor=3 \
--config=exp/tdnn_7b_chain_online/conf/online.conf \
--max-active=7000 \
--beam=15.0 \
--lattice-beam=6.0 \
--acoustic-scale=1.0 \
--word-symbol-table=exp/tdnn_7b_chain_online/graph_pp/words.txt \
exp/tdnn_7b_chain_online/final.mdl \
exp/tdnn_7b_chain_online/graph_pp/HCLG.fst \
'ark:echo utterance-id1 utterance-id1|' \
'scp:echo utterance-id1 <your_8khz_file.wav>|' \
'ark:/dev/null'
'ark:echo utterance-id1 utterance-id1|' \
'scp:echo utterance-id1 <your_8khz_file.wav>|' \
'ark:/dev/null'
> Daniel Povey <dpo...@gmail.com> > kaldi-help <kaldi...@googlegroups.com> > Re: [kaldi-help] ERROR: FstImpl::ReadHeader: FST not of type vector: <unspecified> > > change it, it should work. > > On Mon, Jul 10, 2017 at 11:02 PM, Ri ki <maria...@gmail.com> wrote: > > Dan, > > > > Thanks for the quick reply. You are right. Here is the relevant code: > > > > // Input FST is just one FST, not a table of FSTs. > > decode_fst = fst::ReadFstKaldi(fst_in_str); > > > > > > But it did work another fst that came with the sample project. Are these two > > different types of fsts then? > > > > The above code did compile with the latest kaldi source though. So I am > > guessing it's not deprecated then? > > > > And if i change the code to ReadFstKaldiGeneric() as you suggest, will it > > work for all types of fsts? > > > > > > > > > > On Mon, Jul 10, 2017 at 10:52 PM, Daniel Povey <dpo...@gmail.com> wrote: > >> > >> The code, since it's external to the kaldi project (?) may not have > >> been kept up to date. I believe ReadFstKaldi() should now be > >> ReadFstKaldiGeneric(), to allowe reading const_fst. > >> > >> > >> On Mon, Jul 10, 2017 at 10:47 PM, Ri ki <maria...@gmail.com> wrote: > >> > Hi, > >> > > >> > Any ideas why I am getting this error? I am pretty sure it's some > >> > configuration issue which i am not sure what it is. > >> > The same model works ( this is the aspire model) when i run with the > >> > regular > >> > kaldi decoder without any issues. I am now trying to use this in the > >> > python > >> > wrapper sample and i am getting this error. What am i doing wrong? > >> > > >> > tdnn_7b loading model... > >> > LOG ([5.2.52~1-cac0]:ComputeDerivedVars():ivector-extractor.cc:183) > >> > Computing derived variables for iVector extractor > >> > LOG ([5.2.52~1-cac0]:ComputeDerivedVars():ivector-extractor.cc:204) > >> > Done. > >> > ERROR: FstImpl::ReadHeader: FST not of type vector: <unspecified> > >> > ERROR ([5.2.52~1-cac0]:ReadFstKaldi():kaldi-fst-io.cc:40) Could not read > >> > fst > >> > from data/models/aspire/tdnn_7b/HCLG.fst > >> > > >> > > >> > Thanks in advance. > >> > > >> > -- > >> > 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. > >> > For more options, visit https://groups.google.com/d/optout. > >> > >> -- > >> Go to http://kaldi-asr.org/forums.html find out how to join > >> --- > >> You received this message because you are subscribed to a topic in the > >> Google Groups "kaldi-help" group. > >> To unsubscribe from this topic, visit > >> https://groups.google.com/d/topic/kaldi-help/0SuCkeHyUmU/unsubscribe. > >> To unsubscribe from this group and all its topics, send an email to > >> kaldi-help+...@googlegroups.com. > >> For more options, visit https://groups.google.com/d/optout. > > > > > > -- > > 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. > > For more options, visit https://groups.google.com/d/optout. > > -- > 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. > For more options, visit https://groups.google.com/d/optout.
decode_fst = CastOrConvertToVectorFst(fst::ReadFstKaldiGeneric(fst_in_str));
> Daniel Povey <dpo...@gmail.com> > Re: [kaldi-help] ERROR: FstImpl::ReadHeader: FST not of type vector: <unspecified> > > Anne, your problems are unrelated to code changes, they are because > you don't have enough memory (std::bad_alloc) or possibly because you > are using a 32 bit machine. > > > On Wed, Jul 12, 2017 at 4:05 AM, 蔡红 <cai...@d-power.com.cn> wrote: > > Dear Dan, > > > > I have the similar issue about FST while training the example of THCHS30, > > the errors are: > > > > std::bad_allocERROR: FstHeader::Read: Bad FST header: - > > ERROR (fstdeterminizestar:ReadFstKaldi():fstext/fstext-utils-inl.h:1300) > > Reading FST: error reading FST header from standard input > > ERROR (fstminimizeencoded:ReadFstKaldi():fstext/fstext-utils-inl.h:1300) > > Reading FST: error reading FST header from standard input > > > > If just changing ReadFstKaldi() to ReadFstKaldiGeneric(), there are errors > > while compiling because of the difference of the return pointer, > > VectorFst<StdArc> and Fst<StdArc>. Could you check how to modify the files > > of fstdeterminizestar.cc and fstminimizeencoded.cc? > > > > Thank you very much! > > > > BRs > > Anne > > > >> Daniel Povey <dpo...@gmail.com> > >> kaldi-help <kaldi...@googlegroups.com> > >> Re: [kaldi-help] ERROR: FstImpl::ReadHeader: FST not of type vector: > >> <unspecified> > >> > >> change it, it should work. > >> > >> On Mon, Jul 10, 2017 at 11:02 PM, Ri ki <maria...@gmail.com> wrote: > >> > Dan, > >> > > >> > Thanks for the quick reply. You are right. Here is the relevant code: > >> > > >> > // Input FST is just one FST, not a table of FSTs. > >> > decode_fst = fst::ReadFstKaldi(fst_in_str); > >> > > >> > > >> > But it did work another fst that came with the sample project. Are these > >> > two > >> > different types of fsts then? > >> > > >> > The above code did compile with the latest kaldi source though. So I am > >> > guessing it's not deprecated then? > >> > > >> > And if i change the code to ReadFstKaldiGeneric() as you suggest, will > >> > it > >> > work for all types of fsts? > >> > > >> > > >> > > >> > > >> > On Mon, Jul 10, 2017 at 10:52 PM, Daniel Povey <dpo...@gmail.com> wrote: > >> >> > >> >> The code, since it's external to the kaldi project (?) may not have > >> >> been kept up to date. I believe ReadFstKaldi() should now be > >> >> ReadFstKaldiGeneric(), to allowe reading const_fst. > >> >> > >> >> > >> >> On Mon, Jul 10, 2017 at 10:47 PM, Ri ki <maria...@gmail.com> wrote: > >> >> > Hi, > >> >> > > >> >> > Any ideas why I am getting this error? I am pretty sure it's some > >> >> > configuration issue which i am not sure what it is. > >> >> > The same model works ( this is the aspire model) when i run with the > >> >> > regular > >> >> > kaldi decoder without any issues. I am now trying to use this in the > >> >> > python > >> >> > wrapper sample and i am getting this error. What am i doing wrong? > >> >> > > >> >> > tdnn_7b loading model... > >> >> > LOG ([5.2.52~1-cac0]:ComputeDerivedVars():ivector-extractor.cc:183) > >> >> > Computing derived variables for iVector extractor > >> >> > LOG ([5.2.52~1-cac0]:ComputeDerivedVars():ivector-extractor.cc:204) > >> >> > Done. > >> >> > ERROR: FstImpl::ReadHeader: FST not of type vector: <unspecified> > >> >> > ERROR ([5.2.52~1-cac0]:ReadFstKaldi():kaldi-fst-io.cc:40) Could not > >> >> > read > >> >> > fst > >> >> > from data/models/aspire/tdnn_7b/HCLG.fst > >> >> > > >> >> > > >> >> > Thanks in advance. > >> >> > > >> >> > -- > >> >> > 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. > >> >> > For more options, visit https://groups.google.com/d/optout. > >> >> > >> >> -- > >> >> Go to http://kaldi-asr.org/forums.html find out how to join > >> >> --- > >> >> You received this message because you are subscribed to a topic in the > >> >> Google Groups "kaldi-help" group. > >> >> To unsubscribe from this topic, visit > >> >> https://groups.google.com/d/topic/kaldi-help/0SuCkeHyUmU/unsubscribe. > >> >> To unsubscribe from this group and all its topics, send an email to > >> >> kaldi-help+...@googlegroups.com. > >> >> For more options, visit https://groups.google.com/d/optout. > >> > > >> > > >> > -- > >> > 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. > >> > For more options, visit https://groups.google.com/d/optout. > >> > >> -- > >> 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. > >> For more options, visit https://groups.google.com/d/optout. > > > > > > -- > 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. > For more options, visit https://groups.google.com/d/optout.