[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

@@ -104,10 +104,17 @@ class PaddleSegPreprocessor:
"""
return self._preprocessor.run(input_ims)
def disable_normalize_and_permute(self):
"""To disable normalize and hwc2chw in preprocessing step.
def disable_normalize(self):
"""
return self._preprocessor.disable_normalize_and_permute()
This function will disable normalize in preprocessing step.
"""
self._preprocessor.disable_normalize()
def disable_permute(self):
"""
This function will disable hwc2chw in preprocessing step.
"""
self._preprocessor.disable_permute()
@property
def is_vertical_screen(self):