|
@@ -31,6 +31,7 @@ void InferNode::work()
|
|
|
printf("model is nullptr\n");
|
|
|
continue;
|
|
|
}
|
|
|
+ printf("model type: %d\n", static_cast<int>(model_type_));
|
|
|
auto det_result = model_->forward(tensor::cvimg(image));
|
|
|
|
|
|
if (std::holds_alternative<data::BoxArray>(det_result))
|
|
@@ -45,7 +46,6 @@ void InferNode::work()
|
|
|
}
|
|
|
else if(std::holds_alternative<cv::Mat>(det_result))
|
|
|
{
|
|
|
- // 记录错误或抛出明确异常
|
|
|
auto depth_mat = std::get<cv::Mat>(det_result);
|
|
|
metaData->depth = depth_mat;
|
|
|
}
|