Browse Source

fix issue of cpp deploy module (preprocess())

陈亮 5 years ago
parent
commit
351fc81f5e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deploy/cpp/src/paddlex.cpp

+ 1 - 1
deploy/cpp/src/paddlex.cpp

@@ -98,7 +98,7 @@ bool Model::load_config(const std::string& model_dir) {
 
 bool Model::preprocess(const cv::Mat& input_im, ImageBlob* blob) {
   cv::Mat im = input_im.clone();
-  if (!transforms_.Run(&im, &inputs_)) {
+  if (!transforms_.Run(&im, blob)) {
     return false;
   }
   return true;