16 #include "fastdeploy/fastdeploy_model.h" 17 #include "fastdeploy/vision/common/processors/transform.h" 18 #include "fastdeploy/vision/generation/contrib/preprocessor.h" 19 #include "fastdeploy/vision/generation/contrib/postprocessor.h" 25 namespace generation {
37 AnimeGAN(
const std::string& model_file,
const std::string& params_file =
"",
41 std::string
ModelName()
const {
return "styletransfer/animegan"; }
49 bool Predict(cv::Mat& img, cv::Mat* result);
57 bool BatchPredict(
const std::vector<cv::Mat>& images,
58 std::vector<cv::Mat>* results);
67 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
ModelFormat
Definition: enum_variables.h:67
Preprocessor object for AnimeGAN serials model.
Definition: preprocessor.h:25
Postprocessor object for AnimeGAN serials model.
Definition: postprocessor.h:25
AnimeGAN model object is used when load a AnimeGAN model.
Definition: animegan.h:28
std::string ModelName() const
Get model's name.
Definition: animegan.h:41
Model with paddlepaddle format.
Definition: enum_variables.h:69
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16