1 | initial version |
(sorry, I am not allowed to answer my own questions...)
Thank you very much for this hint. The following code works great!
const std::vector<cv::String> vsOutputNames = { "conv10_2_mbox_conf_1/Conv2D" ,"conv9_2_mbox_conf_1/Conv2D","conv8_2_mbox_conf_1/Conv2D","fc7_mbox_conf_1/Conv2D","conv13_3_norm_mbox_conf_1/Conv2D","conv11_3_norm_mbox_conf_1/Conv2D", "conv10_2_mbox_loc_1/Conv2D" ,"conv9_2_mbox_loc_1/Conv2D","conv8_2_mbox_loc_1/Conv2D","fc7_mbox_loc_1/Conv2D","conv13_3_norm_mbox_loc_1/Conv2D","conv11_3_norm_mbox_loc_1/Conv2D" } ;
std::vector<cv::Mat> voBlobs;
m_oDetectionNet.forward(voBlobs, vsOutputNames);
I did not benchmark both version, so I hope, that it internally does the propagation only once ;)
2 | No.2 Revision |
(sorry, I am not allowed to answer my own questions...)
Thank you very much for this hint. The following code works great!
const std::vector<cv::String> vsOutputNames = { "conv10_2_mbox_conf_1/Conv2D" ,"conv9_2_mbox_conf_1/Conv2D","conv8_2_mbox_conf_1/Conv2D","fc7_mbox_conf_1/Conv2D","conv13_3_norm_mbox_conf_1/Conv2D","conv11_3_norm_mbox_conf_1/Conv2D", "conv10_2_mbox_loc_1/Conv2D" ,"conv9_2_mbox_loc_1/Conv2D","conv8_2_mbox_loc_1/Conv2D","fc7_mbox_loc_1/Conv2D","conv13_3_norm_mbox_loc_1/Conv2D","conv11_3_norm_mbox_loc_1/Conv2D" } ;
std::vector<cv::Mat> voBlobs;
m_oDetectionNet.forward(voBlobs, vsOutputNames);
I did not benchmark both version, so I hope, that it internally does the propagation only once ;)