From 291afb9c81aae1d15d9e3edcea618d0a2e1fc5a6 Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期三, 19 三月 2025 17:51:38 +0800
Subject: [PATCH] add samples
---
nodes/vp_infer_node.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/nodes/vp_infer_node.cpp b/nodes/vp_infer_node.cpp
index cc86d8e..96f6ed4 100644
--- a/nodes/vp_infer_node.cpp
+++ b/nodes/vp_infer_node.cpp
@@ -1,5 +1,6 @@
#include <fstream>
+#include <iostream>
#include "vp_infer_node.h"
@@ -33,6 +34,8 @@
// try to load network from file,
// failing means maybe it has a custom implementation for model loading in derived class such as using other backends other than opencv::dnn.
try {
+ std::cout << "Model path: " << model_path << std::endl;
+ std::cout << "Model config path: " << model_config_path << std::endl;
net = cv::dnn::readNet(model_path, model_config_path);
#ifdef VP_WITH_CUDA
net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA);
--
Gitblit v1.9.1