| | |
| | | # We recommend you run this script stage by stage. |
| | | |
| | | # environment configuration |
| | | kaldi_root=/home/neo.dzh/kaldi |
| | | kaldi_root= |
| | | |
| | | if [ -z "${kaldi_root}" ]; then |
| | | echo "We need kaldi to prepare dataset, extract fbank features, please install kaldi first and set kaldi_root." |
| | |
| | | |
| | | ${infer_cmd} --gpu "${_ngpu}" --max-jobs-run "${_nj}" JOB=1:"${_nj}" "${_logdir}"/sv_inference.JOB.log \ |
| | | python -m funasr.bin.sv_inference_launch \ |
| | | --njob ${njob} \ |
| | | --batch_size 1 \ |
| | | --ngpu "${_ngpu}" \ |
| | | --gpuid_list ${gpuid_list} \ |
| | | --data_path_and_name_and_type "${key_file},speech,kaldi_ark" \ |
| | | --data_path_and_name_and_type "${key_file},speech,sound" \ |
| | | --key_file "${_logdir}"/keys.JOB.scp \ |
| | | --sv_train_config ${sv_exp_dir}/sv.yaml \ |
| | | --sv_model_file ${sv_exp_dir}/sv.pth \ |