[Model] Update PPSeg Preprocess (#1007)

* 更新PPSeg pybind and python

* 更新PPSeg pybind and python
This commit is contained in:
Zheng-Bicheng
2022-12-29 21:14:39 +08:00
committed by GitHub
parent 9795a5287d
commit dd5759bd99
8 changed files with 51 additions and 29 deletions

View File

@@ -49,7 +49,8 @@ model = fd.vision.segmentation.PaddleSegModel(
runtime_option=runtime_option,
model_format=fd.ModelFormat.RKNN)
model.preprocessor.disable_normalize_and_permute()
model.preprocessor.disable_normalize()
model.preprocessor.disable_permute()
# 预测图片分割结果
im = cv2.imread(args.image)