[Model] 新增scrfd rknpu2代码 (#504)

* * 新增scrfd rknpu2代码

* * 新增scrfd python代码

* 修正文档

* 修正文档以及部分错误

* 修改文档

* 修复部分错误

* 修复部分错误

* 修复部分错误

* scrfd更新代码

* scrfd更新代码
This commit is contained in:
Zheng_Bicheng
2022-11-10 10:05:15 +08:00
committed by GitHub
parent 3319a5bdb2
commit ca0de42d0b
12 changed files with 395 additions and 11 deletions

View File

@@ -51,6 +51,12 @@ class SCRFD(FastDeployModel):
return self._model.predict(input_image, conf_threshold,
nms_iou_threshold)
def disable_normalize_and_permute(self):
"""
This function will disable normalize and hwc2chw in preprocessing step.
"""
self._model.disable_normalize_and_permute()
# 一些跟SCRFD模型有关的属性封装
# 多数是预处理相关可通过修改如model.size = [640, 640]改变预处理时resize的大小前提是模型支持
@property