Files
FastDeploy/examples/vision/faceid/insightface/rknpu2/README.md
charl-u 2e8632ce37 [Doc]Update README_EN.md (#1173)
* 第一次提交

* 补充一处漏翻译

* deleted:    docs/en/quantize.md

* Update one translation

* Update en version

* Update one translation in code

* Standardize one writing

* Standardize one writing

* Update some en version

* Fix a grammer problem

* Update en version for api/vision result

* Merge branch 'develop' of https://github.com/charl-u/FastDeploy into develop

* Checkout the link in README in vision_results/ to the en documents

* Modify a title

* Add link to serving/docs/

* Finish translation of demo.md

* Update english version of serving/docs/

* Update title of readme

* Update some links

* Modify a title

* Update some links

* Update en version of java android README

* Modify some titles

* Modify some titles

* Modify some titles

* modify article to document

* update some english version of documents in examples

* Add english version of documents in examples/visions

* Sync to current branch

* Add english version of documents in examples

* Add english version of documents in examples

* Add english version of documents in examples

* Update some documents in examples

* Update some documents in examples

* Update some documents in examples

* Update some documents in examples

* Update some documents in examples

* Update some documents in examples

* Update some documents in examples

* Update some documents in examples

* Update some documents in examples

* update README

* update Readme.md

* update Readme.md

* update Readme_en.md

* update Readme_en.md

* Update README_EN.md

* Update README_CN.md

* Update README_EN.md

* Delete README_new.md

* Update README_EN.md

* Update README.md

* Update rknpu2.md

* Update README.md

* Update README.md

* Create README_CN.md

* Update README.md

* Update README_CN.md

* Update README.md

* Update README_EN.md

---------

Co-authored-by: leiqing <54695910+leiqing1@users.noreply.github.com>
2023-01-28 19:01:01 +08:00

3.0 KiB
Raw Blame History

English | 简体中文

InsightFace RKNPU Deployment Example

This document provides the deployment of the InsightFace model in the RKNPU2 environment. For details, please refer to [Model Introduction Document].本教程提供InsightFace模型在RKNPU2环境下的部署模型的详细介绍已经ONNX模型的下载请查看模型介绍文档

支持模型列表

目前FastDeploy支持如下模型的部署

  • ArcFace
  • CosFace
  • PartialFC
  • VPL

下载预训练ONNX模型

为了方便开发者的测试下面提供了InsightFace导出的各系列模型开发者可直接下载使用。下表中模型的精度来源于源官方库其中精度指标来源于InsightFace中对各模型的介绍详情各参考InsightFace中的说明

模型 大小 精度 (AgeDB_30)
CosFace-r18 92MB 97.7
CosFace-r34 131MB 98.3
CosFace-r50 167MB 98.3
CosFace-r100 249MB 98.4
ArcFace-r18 92MB 97.7
ArcFace-r34 131MB 98.1
ArcFace-r50 167MB -
ArcFace-r100 249MB 98.4
ArcFace-r100_lr0.1 249MB 98.4
PartialFC-r34 167MB -
PartialFC-r50 249MB -

转换为RKNPU模型

wget https://bj.bcebos.com/paddlehub/fastdeploy/ms1mv3_arcface_r18.onnx

python -m paddle2onnx.optimize --input_model ./ms1mv3_arcface_r18/ms1mv3_arcface_r18.onnx \
                               --output_model ./ms1mv3_arcface_r18/ms1mv3_arcface_r18.onnx \
                               --input_shape_dict "{'data':[1,3,112,112]}"

python  /Path/To/FastDeploy/tools/rknpu2/export.py \
        --config_path tools/rknpu2/config/arcface_unquantized.yaml \
        --target_platform rk3588

详细部署文档

版本说明