Pārlūkot izejas kodu

remove result clear

jack 5 gadi atpakaļ
vecāks
revīzija
bcbff52694
1 mainītis faili ar 0 papildinājumiem un 1 dzēšanām
  1. 0 1
      deploy/cpp/src/paddlex.cpp

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

@@ -128,7 +128,6 @@ bool Model::preprocess(const std::vector<cv::Mat> &input_im_batch, std::vector<I
 
 bool Model::predict(const cv::Mat& im, ClsResult* result) {
   inputs_.clear();
-  result->clear();
   if (type == "detector") {
     std::cerr << "Loading model is a 'detector', DetResult should be passed to "
                  "function predict()!"