Explorar o código

fix issue of cpp deploy module (preprocess())

陈亮 %!s(int64=5) %!d(string=hai) anos
pai
achega
351fc81f5e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;