1.下载

git clone https://github.com/deepinsight/insightface.git
  1. 创建虚拟环境
conda create -n insightface python=3.8
  1. 依赖库安装
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 #运行测试代码
Logo

鸿蒙生态一站式服务平台。

更多推荐