wangrong
2025-03-19 291afb9c81aae1d15d9e3edcea618d0a2e1fc5a6
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);