Browse Source

清除不必要的输出

leon 5 months ago
parent
commit
de62f6500d
2 changed files with 3 additions and 2 deletions
  1. 0 1
      src/interface.cpp
  2. 3 1
      test.py

+ 0 - 1
src/interface.cpp

@@ -113,7 +113,6 @@ public:
 
     resnet::Attribute forward(const cv::Mat& image)
     {
-        cout << image.size << std::endl;
         return instance_->forward(cvimg(image));
     }
 

+ 3 - 1
test.py

@@ -11,4 +11,6 @@ print(result)
 
 image = cv2.imread("workspace/inference/car.jpg")
 
-infer.forward(image)
+result = infer.forward(image)
+
+print(result)