mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-07 01:22:59 +08:00
[Model] Update PPSeg Preprocess (#1007)
* 更新PPSeg pybind and python * 更新PPSeg pybind and python
This commit is contained in:
@@ -36,9 +36,12 @@ void BindPPSeg(pybind11::module& m) {
|
||||
}
|
||||
return make_pair(outputs, imgs_info);;
|
||||
})
|
||||
.def("disable_normalize_and_permute",
|
||||
&vision::segmentation::PaddleSegPreprocessor::DisableNormalizeAndPermute)
|
||||
|
||||
.def("disable_normalize", [](vision::segmentation::PaddleSegPreprocessor& self) {
|
||||
self.DisableNormalize();
|
||||
})
|
||||
.def("disable_permute", [](vision::segmentation::PaddleSegPreprocessor& self) {
|
||||
self.DisablePermute();
|
||||
})
|
||||
.def_property("is_vertical_screen",
|
||||
&vision::segmentation::PaddleSegPreprocessor::GetIsVerticalScreen,
|
||||
&vision::segmentation::PaddleSegPreprocessor::SetIsVerticalScreen);
|
||||
|
Reference in New Issue
Block a user