| | |
| | |
|
| | | #include <fstream>
|
| | | #include <iostream>
|
| | |
|
| | | #include "vp_infer_node.h"
|
| | |
|
| | |
| | | // 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);
|