代码之家  ›  专栏  ›  技术社区  ›  Franck Dernoncourt

kaldi:qsub的输出是:qsub:illegal-c value“”,在尝试运行公共语音配方时

  •  0
  • Franck Dernoncourt  · 技术社区  · 6 年前

    我在试着运行卡迪的常用语音配方( kaldi/egs/commonvoice/s5/run.sh )在我的计算机上(即,不在群集上)。它会崩溃并显示错误消息 Output of qsub was: qsub: illegal -c value "" 是的。有什么问题吗?


    具体来说,这里是整个错误堆栈:

    [...]
    Succeeded in formatting LM: 'data/local/lm.gz'
    steps/make_mfcc.sh --cmd queue.pl --mem 2G --nj 20 data/valid_train exp/make_mfcc/valid_train mfcc
    utils/validate_data_dir.sh: Successfully validated data-directory data/valid_train
    steps/make_mfcc.sh: [info]: no segments file exists: assuming wav.scp indexed by utterance.
    queue.pl: Error submitting jobs to queue (return status was 512)
    queue log file is exp/make_mfcc/valid_train/q/make_mfcc_valid_train.log, command was qsub -v PATH -cwd -S /bin/bash -j y -l arch=*64* -o exp/make_mfcc/valid_train/q/make_mfcc_valid_train.log  -l mem_free=2G,ram_free=2G  -t 1:20 /home/ubuntu/kaldi/egs/commonvoice/s5/exp/make_mfcc/valid_train/q/make_mfcc_valid_train.sh >>exp/make_mfcc/valid_train/q/make_mfcc_valid_train.log 2>&1
    Output of qsub was: qsub: illegal -c value ""
    usage: qsub [-a date_time] [-A account_string] [-b secs]
          [-c [ none | { enabled | periodic | shutdown |
          depth=<int> | dir=<path> | interval=<minutes>}... ]
          [-C directive_prefix] [-d path] [-D path]
          [-e path] [-h] [-I] [-j oe] [-k {oe}] [-l resource_list] [-m n|{abe}]
          [-M user_list] [-N jobname] [-o path] [-p priority] [-P proxy_user] [-q queue]
          [-r y|n] [-S path] [-t number_to_submit] [-T type]  [-u user_list] [-w] path
          [-W otherattributes=value...] [-v variable_list] [-V ] [-x] [-X] [-z] [script]
    

    我将常见的语音配方运行如下:

    ## Retrieving Kaldi source code 
    git clone https://github.com/kaldi-asr/kaldi.git
    cd kaldi
    export KALDI_GIT_ROOT=`pwd`
    echo $KALDI_GIT_ROOT
    
    ## Compile Kaldi tools
    cd $KALDI_GIT_ROOT/tools
    sudo apt-get install -y  zlib1g-dev automake autoconf libtool libatlas3-base subversion 
    make -j 24
    
    ## Compile Kaldi
    cd $KALDI_GIT_ROOT/src
    ./configure
    make -j 24
    
    ## Common Voice
    cd $KALDI_GIT_ROOT/tools
    sudo ./install_srilm.sh
    # required by install_sequitur.sh
    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    sudo python get-pip.py
    sudo apt-get install -y swig python-setuptools python-dev
    sudo pip install numpy
    sudo ./extras/install_sequitur.sh
    # For qsub
    sudo apt-get install -y torque-server torque-client torque-mom torque-pam
    # Start Kaldi training on Common Voice
    sudo apt install sox libsox-fmt-mp3 # run.sh will convert Common Voice MP3s to WAV using sox
    cd $KALDI_GIT_ROOT/egs/commonvoice/s5
    source $KALDI_GIT_ROOT/tools/env.sh
    ./run.sh
    

    我用的是ubuntu 16.04.4lts。

    1 回复  |  直到 6 年前
        1
  •  3
  •   Franck Dernoncourt    6 年前

    问题是 qsub 是错误的:应该使用 Sun Grid Engine ,而不是 Torque program 是的。

    sudo apt-get remove torque-server torque-client torque-mom torque-pam
    sudo apt-get install gridengine-master gridengine-client gridengine-exec
    

    注意,如果 Sun Grid Engine can be tricky to configure 如果一个人使用一台电脑,通过它也没什么好处。

    在没有太阳电网引擎的情况下,用普通的声音训练卡迪 queue.pl run.pl 在里面 /kaldi/egs/commonvoice/s5/cmd.sh 以下内容:

    export train_cmd="run.pl --mem 2G"
    export decode_cmd="run.pl --mem 4G"
    export mkgraph_cmd="run.pl --mem 8G"
    
    推荐文章