1.下载
git clone https://github.com/deepinsight/insightface.git
- 创建虚拟环境
conda create -n insightface python=3.8
- 依赖库安装
cd insightface
pip install -r requirements.txt
pip install onnxruntime-gpu #pip install onnxruntime
4.编译
cd python-package
python setup.py install
5.编译
cd insightface/python-package/insightface/thirdparty/face3d/mesh/cython
python setup.py build_ext -i
6.测试
cd insightface/python-package
cp insightface/examples/demo_analysis.py ./
python demo_analysis.py #运行测试代码
该文指导如何下载insightface项目,通过conda创建虚拟环境并配置Python3.8。接着,它详述了安装必要的依赖库,包括onnxruntime(GPU版本),以及编译insightface的python-package和face3d/mesh/cython模块。最后,提供了测试代码的运行步骤。
2424

被折叠的 条评论
为什么被折叠?



