Ask Your Question

Revision history [back]

click to hide/show revision 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 ;)

click to hide/show revision 2
No.2 Revision

updated 2018-06-22 09:32:47 -0600

berak gravatar image

(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 ;)