Skip to content
Snippets Groups Projects
prepare-models.sh 729 B
Newer Older
  • Learn to ignore specific revisions
  • tanel's avatar
    tanel committed
    #! /bin/bash
    
    BASE_URL=http://kaldi-asr.org/downloads/build/2/sandbox/online/egs/fisher_english/s5
    
    MODEL=exp/nnet2_online/nnet_a_gpu_online
    GRAPH=exp/tri5a
    
    wget -N $BASE_URL/$MODEL/final.mdl || exit 1
    (mkdir -p ivector_extractor; cd ivector_extractor; wget -N $BASE_URL/$MODEL/ivector_extractor/{final.ie,final.dubm,final.mat,global_cmvn.stats}) || exit 1
    (mkdir -p conf; cd conf; wget -N $BASE_URL/$MODEL/conf/{ivector_extractor.conf,online_nnet2_decoding.conf,mfcc.conf,online_cmvn.conf,splice.conf}) || exit 1
    
    wget -N $BASE_URL/$GRAPH/graph/HCLG.fst || exit 1
    wget -N $BASE_URL/$GRAPH/graph/words.txt || exit 1
    
    
    cat conf/ivector_extractor.conf | perl -npe 's/=.*nnet_a_gpu_online\//=/' > conf/ivector_extractor.fixed.conf