gpt4 book ai didi

speech-recognition - Kaldi:qsub 的输出是:qsub: illegal -c value ""when trying to run the Common Voice recipe

转载 作者:行者123 更新时间:2023-12-05 08:54:10 26 4
gpt4 key购买 nike

我正在尝试在我的计算机上(即不在集群上)运行 Kaldi 的 Common Voice 配方 ( 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]

我按如下方式运行了 Common Voice 配方:

## 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.4 LTS。

最佳答案

问题是 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如果一个人使用一台计算机,通过它并没有太大优势。

要在没有 Sun Grid Engine 的情况下使用 Common Voice 训练 Kaldi,可以将 /kaldi/egs/commonvoice/s5/cmd.sh 中的 queue.pl 替换为 run.pl :

export train_cmd="run.pl --mem 2G"
export decode_cmd="run.pl --mem 4G"
export mkgraph_cmd="run.pl --mem 8G"

关于speech-recognition - Kaldi:qsub 的输出是:qsub: illegal -c value ""when trying to run the Common Voice recipe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51126825/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com