mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
[Model] 新增scrfd rknpu2代码 (#504)
* * 新增scrfd rknpu2代码 * * 新增scrfd python代码 * 修正文档 * 修正文档以及部分错误 * 修改文档 * 修复部分错误 * 修复部分错误 * 修复部分错误 * scrfd更新代码 * scrfd更新代码
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user