[Model] Support Insightface model inferenceing on RKNPU (#1113)

* 更新交叉编译

* 更新交叉编译

* 更新交叉编译

* 更新交叉编译

* 更新交叉编译

* 更新交叉编译

* 更新交叉编译

* 更新交叉编译

* 更新交叉编译

* Update issues.md

* Update fastdeploy_init.sh

* 更新交叉编译

* 更新insightface系列模型的rknpu2支持

* 更新insightface系列模型的rknpu2支持

* 更新说明文档

* 更新insightface

* 尝试解决pybind问题

Co-authored-by: Jason <928090362@qq.com>
Co-authored-by: Jason <jiangjiajun@baidu.com>
This commit is contained in:
Zheng-Bicheng
2023-01-14 20:40:33 +08:00
committed by GitHub
parent f88c662449
commit 1dabfdf3f1
21 changed files with 712 additions and 147 deletions

View File

@@ -56,13 +56,17 @@ class InsightFaceRecognitionPreprocessor:
"""
return self._preprocessor.beta
@property
def permute(self):
def disable_normalize(self):
"""
Argument for image preprocessing step, whether to swap the B and R channel,
such as BGR->RGB, default true.
This function will disable normalize in preprocessing step.
"""
return self._preprocessor.permute
self._preprocessor.disable_normalize()
def disable_permute(self):
"""
This function will disable hwc2chw in preprocessing step.
"""
self._preprocessor.disable_permute()
class InsightFaceRecognitionPostprocessor: