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

posted on 2018-04-28 11:02  冰冻五尺  阅读(486)  评论(0编辑  收藏  举报

导航