FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

Issue with Stage 1: Feature and CMVN Generation in Speech Recognition script

Open qiulin13145 opened this issue 1 year ago • 2 comments

Issue: I'm following the instructions from the "Speech Recognition" documentation and I'm facing an issue when executing bash run.sh. I was able to pass stage 0 successfully, but the script seems to get stuck at stage 1.

Steps to reproduce:

  1. Run bash run.sh

Expected result: The script should proceed past stage 1.

Observed result: The script gets stuck at stage 1 with no further output. Upon investigation, I found that the script is stuck at line 311 in run.pl, and the corresponding subprocess remains in the 'S' (Sleeping) state. 1

image

image

Question: I'm unsure about the cause of this issue. I would appreciate any guidance or help in resolving it. Thanks in advance!

qiulin13145 avatar Nov 06 '23 03:11 qiulin13145

Maybe you could change the code and try it again, in egs/aishell/paraformer/utils/apply_cmvn.sh line 20:

#$cmd JOB=1:$nj $logdir/apply_cmvn.JOB.log \
#    python utils/apply_cmvn.py -a $fbankdir/ark/feats.JOB.ark \
#        -c $cmvn_file -i JOB -o ${dump_dir} \
#        || exit 1;

for JOB in `seq 1 $nj`;do
  {
      python utils/apply_cmvn.py -a $fbankdir/ark/feats.${JOB}.ark \
    -c $cmvn_file -i ${JOB} -o ${dump_dir} || exit 1;
  } &> $logdir/apply_cmvn.${JOB}.log &
done

LauraGPT avatar Nov 09 '23 02:11 LauraGPT

Thank you for your response. Unfortunately, despite my attempts, I'm still running into the same issues and errors as before. Do you have any other suggestions or solutions?

qiulin13145 avatar Nov 10 '23 03:11 qiulin13145