16 #include "fastdeploy/fastdeploy_model.h" 17 #include "fastdeploy/vision/segmentation/ppseg/preprocessor.h" 18 #include "fastdeploy/vision/segmentation/ppseg/postprocessor.h" 25 namespace segmentation {
39 PaddleSegModel(
const std::string& model_file,
const std::string& params_file,
40 const std::string& config_file,
48 virtual std::unique_ptr<PaddleSegModel> Clone()
const;
51 std::string
ModelName()
const {
return "PaddleSeg"; }
75 virtual bool BatchPredict(
const std::vector<cv::Mat>& imgs,
76 std::vector<SegmentationResult>* results);
85 return postprocessor_;
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
std::string ModelName() const
Get model's name.
Definition: model.h:51
Segmentation result structure for all the segmentation models.
Definition: result.h:270
ModelFormat
Definition: enum_variables.h:67
virtual PaddleSegPreprocessor & GetPreprocessor()
Get preprocessor reference of PaddleSegModel.
Definition: model.h:79
Preprocessor object for PaddleSeg serials model.
Definition: preprocessor.h:23
Postprocessor object for PaddleSeg serials model.
Definition: postprocessor.h:25
virtual PaddleSegPostprocessor & GetPostprocessor()
Get postprocessor reference of PaddleSegModel.
Definition: model.h:84
PaddleSeg serials model object used when to load a PaddleSeg model exported by PaddleSeg repository...
Definition: model.h:29
Model with paddlepaddle format.
Definition: enum_variables.h:69
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16