Yukyukuon / blog

博客的文章
1 stars 0 forks source link

Insightface人脸分析项目SCRFD人脸检出 #26

Open Yukyukuon opened 1 year ago

Yukyukuon commented 1 year ago

InsightFace: 2D and 3D Face Analysis Project
高效人脸检出SCRFD

環境設定

インストール手順

项目的地址:https://github.com/deepinsight/insightface

mmcv2.xバージョンエラーが出る,版本参照网址:https://mmcv.readthedocs.io/en/latest/get_started/installation.html

# 仮想環境下にmmcvインストール:
pip install -U openmim
mim install mmcv-full==1.3.3

仮想環境下にMMdetectionインストール、scrfdファイル下に:

pip install -r requirements/build.txt
python setup.py develop

実行

scrfdファイル下に:
weightsファイルを作り、Pretrained-Modelを入る

demoを実行する:
python demo/image_demo.py input/test.png configs/scrfd/scrfd_10g.py weights/model.pth

ERROR

版本兼容:MMdetectionのコンパイルのエラー

MMdetection2.7.0バージョンをインストール:https://mmdetection.readthedocs.io/en/v2.11.0/get_started.html

报错:error in ConfigSpace setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.5.*'

解決:pip install setuptools==58.2.0