mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[Other]Refactor PaddleSeg with preprocessor && postprocessor && support batch (#639)
* Refactor PaddleSeg with preprocessor && postprocessor * Fix bugs * Delete redundancy code * Modify by comments * Refactor according to comments * Add batch evaluation * Add single test script * Add ppliteseg single test script && fix eval(raise) error * fix bug * Fix evaluation segmentation.py batch predict * Fix segmentation evaluation bug * Fix evaluation segmentation bugs Co-authored-by: Jason <jiangjiajun@baidu.com>
This commit is contained in:
@@ -103,6 +103,7 @@ void BindVision(pybind11::module& m) {
|
||||
.def_readwrite("label_map", &vision::SegmentationResult::label_map)
|
||||
.def_readwrite("score_map", &vision::SegmentationResult::score_map)
|
||||
.def_readwrite("shape", &vision::SegmentationResult::shape)
|
||||
.def_readwrite("contain_score_map", &vision::SegmentationResult::contain_score_map)
|
||||
.def("__repr__", &vision::SegmentationResult::Str)
|
||||
.def("__str__", &vision::SegmentationResult::Str);
|
||||
|
||||
@@ -111,7 +112,7 @@ void BindVision(pybind11::module& m) {
|
||||
.def_readwrite("alpha", &vision::MattingResult::alpha)
|
||||
.def_readwrite("foreground", &vision::MattingResult::foreground)
|
||||
.def_readwrite("shape", &vision::MattingResult::shape)
|
||||
.def_readwrite("contain_foreground", &vision::MattingResult::shape)
|
||||
.def_readwrite("contain_foreground", &vision::MattingResult::contain_foreground)
|
||||
.def("__repr__", &vision::MattingResult::Str)
|
||||
.def("__str__", &vision::MattingResult::Str);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user