15 #include "fastdeploy/fastdeploy_model.h" 16 #include "fastdeploy/vision/common/processors/transform.h" 22 class FASTDEPLOY_DECL PPMSVSR :
public FastDeployModel {
31 PPMSVSR(
const std::string& model_file,
const std::string& params_file,
32 const RuntimeOption& custom_option = RuntimeOption(),
35 std::string ModelName()
const override {
return "PPMSVSR"; }
42 virtual bool Predict(std::vector<cv::Mat>& imgs,
43 std::vector<cv::Mat>& results);
48 virtual bool Initialize();
50 virtual bool Preprocess(Mat* mat, std::vector<float>& output);
52 virtual bool Postprocess(std::vector<FDTensor>& infer_results,
53 std::vector<cv::Mat>& results);
55 std::vector<float> mean_;
56 std::vector<float> scale_;
ModelFormat
Definition: enum_variables.h:67
Model with paddlepaddle format.
Definition: enum_variables.h:69
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16