提交 bcbff526 编写于 作者: J jack

remove result clear

上级 e0dea23d
...@@ -128,7 +128,6 @@ bool Model::preprocess(const std::vector<cv::Mat> &input_im_batch, std::vector<I ...@@ -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) { bool Model::predict(const cv::Mat& im, ClsResult* result) {
inputs_.clear(); inputs_.clear();
result->clear();
if (type == "detector") { if (type == "detector") {
std::cerr << "Loading model is a 'detector', DetResult should be passed to " std::cerr << "Loading model is a 'detector', DetResult should be passed to "
"function predict()!" "function predict()!"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册