16 #include "fastdeploy/fastdeploy_model.h" 17 #include "fastdeploy/vision/common/processors/transform.h" 18 #include "fastdeploy/vision/common/result.h" 20 #include "fastdeploy/vision/keypointdet/pptinypose/pptinypose_utils.h" 27 namespace keypointdetection {
41 PPTinyPose(
const std::string& model_file,
const std::string& params_file,
42 const std::string& config_file,
47 std::string
ModelName()
const {
return "PaddleDetection/PPTinyPose"; }
73 disable_normalize_ =
true;
74 BuildPreprocessPipelineFromConfig();
79 disable_permute_ =
true;
80 BuildPreprocessPipelineFromConfig();
86 bool BuildPreprocessPipelineFromConfig();
88 bool Preprocess(
Mat* mat, std::vector<FDTensor>* outputs);
91 bool Postprocess(std::vector<FDTensor>& infer_result,
93 const std::vector<float>& center,
94 const std::vector<float>& scale);
97 std::vector<std::shared_ptr<Processor>> processors_;
98 std::string config_file_;
100 bool disable_permute_ =
false;
102 bool disable_normalize_ =
false;
Option object used when create a new Runtime object.
Definition: runtime_option.h:40
Base model object for all the vision models.
Definition: fastdeploy_model.h:21
ModelFormat
Definition: enum_variables.h:67
void DisableNormalize()
This function will disable normalize in preprocessing step.
Definition: pptinypose.h:72
Detection result structure for all the object detection models and instance segmentation models...
Definition: result.h:106
std::string ModelName() const
Get model's name.
Definition: pptinypose.h:47
FDMat is a structure for replace cv::Mat.
Definition: mat.h:34
PPTinyPose model object used when to load a PPTinyPose model exported by PaddleDetection.
Definition: pptinypose.h:31
KeyPoint Detection result structure for all the keypoint detection models.
Definition: result.h:145
Model with paddlepaddle format.
Definition: enum_variables.h:69
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16
void DisablePermute()
This function will disable hwc2chw in preprocessing step.
Definition: pptinypose.h:78