mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-12 20:11:20 +08:00
Add new model PaddleSeg (#30)
* Support new model PaddleSeg * Fix conflict * PaddleSeg add visulization function * fix bug * Fix BindPPSeg wrong name * Fix variable name * Update by comments * Add ppseg-unet example python version Co-authored-by: Jason <jiangjiajun@baidu.com>
This commit is contained in:
@@ -19,6 +19,7 @@ namespace fastdeploy {
|
||||
void BindPPCls(pybind11::module& m);
|
||||
void BindPPDet(pybind11::module& m);
|
||||
void BindWongkinyiu(pybind11::module& m);
|
||||
void BindPPSeg(pybind11::module& m);
|
||||
void BindUltralytics(pybind11::module& m);
|
||||
void BindMeituan(pybind11::module& m);
|
||||
void BindMegvii(pybind11::module& m);
|
||||
@@ -42,8 +43,15 @@ void BindVision(pybind11::module& m) {
|
||||
.def("__repr__", &vision::DetectionResult::Str)
|
||||
.def("__str__", &vision::DetectionResult::Str);
|
||||
|
||||
pybind11::class_<vision::SegmentationResult>(m, "SegmentationResult")
|
||||
.def(pybind11::init())
|
||||
.def_readwrite("masks", &vision::SegmentationResult::masks)
|
||||
.def("__repr__", &vision::SegmentationResult::Str)
|
||||
.def("__str__", &vision::SegmentationResult::Str);
|
||||
|
||||
BindPPCls(m);
|
||||
BindPPDet(m);
|
||||
BindPPSeg(m);
|
||||
BindUltralytics(m);
|
||||
BindWongkinyiu(m);
|
||||
BindMeituan(m);
|
||||
|
Reference in New Issue
Block a user