mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
[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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user