kaldi部署过程
git clone ...
cd kaldi-dir
cd tools
sh extras/check_dependencies.sh
(可能会报错,function: not found, Syntax error: "}" unexpected;执行ls -l /bin/sh, 如果是dash,执行 sudo dpkg-reconfigure dash,选择no,将其弃用,会自动替换为bash)
按提示来,需要什么就补什么
make -j 20
make openblas (可以先检查一下gfortran是否安装,如无 sudo apt install gfortran)
cd ../src
./configure --openblas-root=../tools/OpenBLAS/install
./configure --openblas-root=../tools/OpenBLAS/install --use-cuda=yes
可以开启gpu选项
修改kaldi.mk 41行,增加-fPIC 编译选项
make -j 30
done
浙公网安备 33010602011771号