mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +08:00
[Model] Refactor PaddleDetection module (#575)
* Add namespace for functions * Refactor PaddleDetection module * finish all the single image test * Update preprocessor.cc * fix some litte detail * add python api * Update postprocessor.cc
This commit is contained in:
@@ -18,31 +18,8 @@ namespace fastdeploy {
|
||||
void BindPPTinyPosePipeline(pybind11::module& m) {
|
||||
pybind11::class_<pipeline::PPTinyPose>(m, "PPTinyPose")
|
||||
|
||||
// explicitly pybind more kinds of detection models here
|
||||
.def(pybind11::init<fastdeploy::vision::detection::PPYOLOE*,
|
||||
fastdeploy::vision::keypointdetection::PPTinyPose*>())
|
||||
|
||||
.def(pybind11::init<fastdeploy::vision::detection::PicoDet*,
|
||||
fastdeploy::vision::keypointdetection::PPTinyPose*>())
|
||||
|
||||
.def(pybind11::init<fastdeploy::vision::detection::PPYOLO*,
|
||||
fastdeploy::vision::keypointdetection::PPTinyPose*>())
|
||||
|
||||
.def(pybind11::init<fastdeploy::vision::detection::PPYOLOv2*,
|
||||
fastdeploy::vision::keypointdetection::PPTinyPose*>())
|
||||
|
||||
.def(pybind11::init<fastdeploy::vision::detection::PaddleYOLOX*,
|
||||
fastdeploy::vision::keypointdetection::PPTinyPose*>())
|
||||
|
||||
.def(pybind11::init<fastdeploy::vision::detection::FasterRCNN*,
|
||||
fastdeploy::vision::keypointdetection::PPTinyPose*>())
|
||||
|
||||
.def(pybind11::init<fastdeploy::vision::detection::YOLOv3*,
|
||||
fastdeploy::vision::keypointdetection::PPTinyPose*>())
|
||||
|
||||
.def(pybind11::init<fastdeploy::vision::detection::MaskRCNN*,
|
||||
fastdeploy::vision::keypointdetection::PPTinyPose*>())
|
||||
|
||||
.def("predict", [](pipeline::PPTinyPose& self,
|
||||
pybind11::array& data) {
|
||||
auto mat = PyArrayToCvMat(data);
|
||||
|
Reference in New Issue
Block a user