16 #include "fastdeploy/fastdeploy_model.h" 17 #include "fastdeploy/vision/detection/ppdet/preprocessor.h" 18 #include "fastdeploy/vision/detection/ppdet/postprocessor.h" 19 #include "fastdeploy/vision/common/processors/transform.h" 20 #include "fastdeploy/vision/common/result.h" 22 #include "fastdeploy/vision/utils/utils.h" 43 PPDetBase(
const std::string& model_file,
const std::string& params_file,
44 const std::string& config_file,
52 virtual std::unique_ptr<PPDetBase> Clone()
const;
55 virtual std::string
ModelName()
const {
return "PaddleDetection/BaseModel"; }
77 virtual bool BatchPredict(
const std::vector<cv::Mat>& imgs,
78 std::vector<DetectionResult>* results);
85 return postprocessor_;
89 virtual bool Initialize();
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
Base model object used when to load a model exported by PaddleDetection.
Definition: base.h:33
ModelFormat
Definition: enum_variables.h:67
virtual std::string ModelName() const
Get model's name.
Definition: base.h:55
Detection result structure for all the object detection models and instance segmentation models...
Definition: result.h:106
Postprocessor object for PaddleDet serials model.
Definition: postprocessor.h:25
Preprocessor object for PaddleDet serials model.
Definition: preprocessor.h:26
Model with paddlepaddle format.
Definition: enum_variables.h:69
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16