CTC安装:
1. 在终端执行命令:git clone https://github.com/SeanNaren/warp-c
)
如果使用的是pytorch0.4,执行终端命令;
git clone --branch 0.4.1 https://github.com/SeanNaren/warp-ctc.git
2. 打开warp-ctc文件夹:cd warp-ctc
3.执行命令:git checkout ac045b6072b9bc3454fb9f9f17674f0d59373789
(这条命令要执行,不然会出现binding.cpp:6:29: fatal error: torch/extension.h: No such file or directory这个错误.
详情请见:https://www.cnblogs.com/elitphil/p/11451494.html)
4. 执行命令:mkdir build
5. 执行:cd build
6.执行:cmake ..
7. 执行:make
8.执行:cd ../pytorch_binding/
9.执行:python setup.py install
如果你出现以下错误: