<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Object detection ssd c++ sample is not working properly in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Object-detection-ssd-c-sample-is-not-working-properly/m-p/1191487#M19771</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;i am working on windows machine (Plateform toolset v141), i converted a tensorflow model to IR and my python api is working but c++ example of object_detection_ssd is not working&amp;nbsp;&lt;/P&gt;
&lt;P&gt;object_detection_ssd_async is also working with camera, but not with mp4 file&amp;nbsp; async example gives error for video file "The number of channels for net input and image must match"&lt;/P&gt;
&lt;P&gt;i tried object_detection_ssd with below command&lt;/P&gt;
&lt;P&gt;object_detection_sample_ssd.exe -m D:/openvino/2/frozen_inference_graph.xml -i C:\Users\LaserTrac\Desktop\la.jpg&lt;/P&gt;
&lt;P&gt;below is the output :&lt;/P&gt;
&lt;P&gt;[ INFO ] InferenceEngine:&lt;BR /&gt;API version ............ 2.1&lt;BR /&gt;Build .................. 2020.3.0-3467-15f2c61a-releases/2020/3&lt;BR /&gt;Description ....... API&lt;BR /&gt;my custom argc: 5&lt;BR /&gt;my custom argc: 00000130D90F55F0&lt;BR /&gt;Parsing input parameters&lt;BR /&gt;[ INFO ] Files were added: 1&lt;BR /&gt;[ INFO ] C:\Users\LaserTrac\Desktop\la.jpg&lt;BR /&gt;[ INFO ] Loading Inference Engine&lt;BR /&gt;[ INFO ] Device info:&lt;BR /&gt;CPU&lt;BR /&gt;MKLDNNPlugin version ......... 2.1&lt;BR /&gt;Build ........... 2020.3.0-3467-15f2c61a-releases/2020/3&lt;BR /&gt;[ INFO ] Loading network files:&lt;BR /&gt;D:/openvino/2/frozen_inference_graph.xml&lt;BR /&gt;D:/openvino/2/frozen_inference_graph.bin&lt;BR /&gt;[ INFO ] Preparing input blobs&lt;BR /&gt;[ INFO ] Batch size is 1&lt;BR /&gt;[ INFO ] Preparing output blobs&lt;/P&gt;
&lt;P&gt;[ INFO ] Preparing output blobs -4Preparing output blobs -4 0&lt;/P&gt;
&lt;P&gt;program exits without any error, in the line&amp;nbsp;ngraphFunction-&amp;gt;get_ops() i think it found nothing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;slog::info &amp;lt;&amp;lt; "Preparing output blobs" &amp;lt;&amp;lt; slog::endl;

OutputsDataMap outputsInfo(network.getOutputsInfo());

std::string outputName;
DataPtr outputInfo;
if (auto ngraphFunction = network.getFunction()) {
  slog::info &amp;lt;&amp;lt; "Preparing output blobs -4";
  int c = 0;
  int d = 0;
  for (const auto&amp;amp; out : outputsInfo) {
    slog::info &amp;lt;&amp;lt; "Preparing output blobs -4 "&amp;lt;&amp;lt; c;
    c++;
    for (const auto&amp;amp; op : ngraphFunction-&amp;gt;get_ops()) {
      slog::info &amp;lt;&amp;lt; "Preparing output blobs -4 " &amp;lt;&amp;lt; c &amp;lt;&amp;lt; d;
      // here my program exits without any error
      d++;
      if (op-&amp;gt;get_type_info() == ngraph::op::DetectionOutput::type_info &amp;amp;&amp;amp;
       op-&amp;gt;get_friendly_name() == out.second-&amp;gt;getName()) {
       outputName = out.first;
       outputInfo = out.second;
       break;
      }
    }
  }

} else {
  slog::info &amp;lt;&amp;lt; "Preparing output blobs -4 2";
  outputInfo = outputsInfo.begin()-&amp;gt;second;
  outputName = outputInfo-&amp;gt;getName();
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please have&amp;nbsp; a look&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jul 2020 23:36:25 GMT</pubDate>
    <dc:creator>AR92</dc:creator>
    <dc:date>2020-07-10T23:36:25Z</dc:date>
    <item>
      <title>Object detection ssd c++ sample is not working properly</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Object-detection-ssd-c-sample-is-not-working-properly/m-p/1191487#M19771</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;i am working on windows machine (Plateform toolset v141), i converted a tensorflow model to IR and my python api is working but c++ example of object_detection_ssd is not working&amp;nbsp;&lt;/P&gt;
&lt;P&gt;object_detection_ssd_async is also working with camera, but not with mp4 file&amp;nbsp; async example gives error for video file "The number of channels for net input and image must match"&lt;/P&gt;
&lt;P&gt;i tried object_detection_ssd with below command&lt;/P&gt;
&lt;P&gt;object_detection_sample_ssd.exe -m D:/openvino/2/frozen_inference_graph.xml -i C:\Users\LaserTrac\Desktop\la.jpg&lt;/P&gt;
&lt;P&gt;below is the output :&lt;/P&gt;
&lt;P&gt;[ INFO ] InferenceEngine:&lt;BR /&gt;API version ............ 2.1&lt;BR /&gt;Build .................. 2020.3.0-3467-15f2c61a-releases/2020/3&lt;BR /&gt;Description ....... API&lt;BR /&gt;my custom argc: 5&lt;BR /&gt;my custom argc: 00000130D90F55F0&lt;BR /&gt;Parsing input parameters&lt;BR /&gt;[ INFO ] Files were added: 1&lt;BR /&gt;[ INFO ] C:\Users\LaserTrac\Desktop\la.jpg&lt;BR /&gt;[ INFO ] Loading Inference Engine&lt;BR /&gt;[ INFO ] Device info:&lt;BR /&gt;CPU&lt;BR /&gt;MKLDNNPlugin version ......... 2.1&lt;BR /&gt;Build ........... 2020.3.0-3467-15f2c61a-releases/2020/3&lt;BR /&gt;[ INFO ] Loading network files:&lt;BR /&gt;D:/openvino/2/frozen_inference_graph.xml&lt;BR /&gt;D:/openvino/2/frozen_inference_graph.bin&lt;BR /&gt;[ INFO ] Preparing input blobs&lt;BR /&gt;[ INFO ] Batch size is 1&lt;BR /&gt;[ INFO ] Preparing output blobs&lt;/P&gt;
&lt;P&gt;[ INFO ] Preparing output blobs -4Preparing output blobs -4 0&lt;/P&gt;
&lt;P&gt;program exits without any error, in the line&amp;nbsp;ngraphFunction-&amp;gt;get_ops() i think it found nothing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;slog::info &amp;lt;&amp;lt; "Preparing output blobs" &amp;lt;&amp;lt; slog::endl;

OutputsDataMap outputsInfo(network.getOutputsInfo());

std::string outputName;
DataPtr outputInfo;
if (auto ngraphFunction = network.getFunction()) {
  slog::info &amp;lt;&amp;lt; "Preparing output blobs -4";
  int c = 0;
  int d = 0;
  for (const auto&amp;amp; out : outputsInfo) {
    slog::info &amp;lt;&amp;lt; "Preparing output blobs -4 "&amp;lt;&amp;lt; c;
    c++;
    for (const auto&amp;amp; op : ngraphFunction-&amp;gt;get_ops()) {
      slog::info &amp;lt;&amp;lt; "Preparing output blobs -4 " &amp;lt;&amp;lt; c &amp;lt;&amp;lt; d;
      // here my program exits without any error
      d++;
      if (op-&amp;gt;get_type_info() == ngraph::op::DetectionOutput::type_info &amp;amp;&amp;amp;
       op-&amp;gt;get_friendly_name() == out.second-&amp;gt;getName()) {
       outputName = out.first;
       outputInfo = out.second;
       break;
      }
    }
  }

} else {
  slog::info &amp;lt;&amp;lt; "Preparing output blobs -4 2";
  outputInfo = outputsInfo.begin()-&amp;gt;second;
  outputName = outputInfo-&amp;gt;getName();
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please have&amp;nbsp; a look&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 23:36:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Object-detection-ssd-c-sample-is-not-working-properly/m-p/1191487#M19771</guid>
      <dc:creator>AR92</dc:creator>
      <dc:date>2020-07-10T23:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Object detection ssd c++ sample is not working properly</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Object-detection-ssd-c-sample-is-not-working-properly/m-p/1191529#M19775</link>
      <description>&lt;P&gt;You say that it works with the camera, but not with an mp4 video file.&lt;/P&gt;
&lt;P&gt;A few ideas to try:&lt;/P&gt;
&lt;P&gt;Make sure that the video is correctly read by the program, maybe you're missing a codec or there's some other kind of I/O problem, like the file path or permissions, etc.&lt;/P&gt;
&lt;P&gt;Another thing it complains about is the number of channels. Have a look if the image is converted correctly to whatever is necessary, maybe it expects a greyscale image and it sends a colour image from the video, etc.&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 01:04:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Object-detection-ssd-c-sample-is-not-working-properly/m-p/1191529#M19775</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2020-07-11T01:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Object detection ssd c++ sample is not working properly</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Object-detection-ssd-c-sample-is-not-working-properly/m-p/1191534#M19776</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/903"&gt;@samontab&lt;/a&gt;&amp;nbsp;thanks for ur reply, there are two projects,&lt;/P&gt;
&lt;P&gt;i will try object_detection_ssd_sync.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i was building in Debug mode so c++ sample object_detection_ssd is was not working , i switched it to Release mode its working now,&lt;/P&gt;
&lt;P&gt;there is one more thing, i generated my IR with below command with --data_type FP16&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;python mo_tf.py --input_model E:\tensorflow_models\ssd_54_ob_139553\output_inference_graph_v1.pb\frozen_inference_graph.pb --tensorflow_object_detection_api_pipeline_config E:\tensorflow_models\ssd_54_ob_139553\output_inference_graph_v1.pb\pipeline.config --tensorflow_use_custom_operations_config ssd_support_api_v1.15.json --data_type FP16   &lt;/LI-CODE&gt;
&lt;P&gt;i am not a c++ developer so i didn't created a new project because there adding dependency to new c++ project looks me little&amp;nbsp; messy. i followed this video -&amp;gt;&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=_z_YYanhE2I" target="_blank"&gt;https://www.youtube.com/watch?v=_z_YYanhE2I&lt;/A&gt;&amp;nbsp;and now .exe is working, in the code i saw FP32 in some places and i have created my IR with FP16 so do i need to change it??? actually i tried changing but then model didn't detect any thing in image. like below code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;float *p = minput2Holder.as&amp;lt;PrecisionTrait&amp;lt;Precision::FP32&amp;gt;::value_type *&amp;gt;();&lt;/P&gt;
&lt;P&gt;i changed it to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;INT16 *p = minput2Holder.as&amp;lt;PrecisionTrait&amp;lt;Precision::FP16&amp;gt;::value_type *&amp;gt;();&lt;/P&gt;
&lt;P&gt;and all occurrence of FP32 to FP16&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Amit&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FP16 in my main.cpp&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 01:56:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Object-detection-ssd-c-sample-is-not-working-properly/m-p/1191534#M19776</guid>
      <dc:creator>AR92</dc:creator>
      <dc:date>2020-07-11T01:56:33Z</dc:date>
    </item>
    <item>
      <title>Re:Object detection ssd c++ sample is not working ...</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Object-detection-ssd-c-sample-is-not-working-properly/m-p/1191800#M19787</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help to test with one of our MP4 video samples from here &amp;amp; see whether it could work:&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/intel-iot-devkit/sample-videos" target="_blank" style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;https://github.com/intel-iot-devkit/sample-videos&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Iffa&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jul 2020 01:38:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Object-detection-ssd-c-sample-is-not-working-properly/m-p/1191800#M19787</guid>
      <dc:creator>Iffa_Intel</dc:creator>
      <dc:date>2020-07-13T01:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Object detection ssd c++ sample is not working ...</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Object-detection-ssd-c-sample-is-not-working-properly/m-p/1191881#M19798</link>
      <description>&lt;P&gt;thanks, i will try it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 09:28:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Object-detection-ssd-c-sample-is-not-working-properly/m-p/1191881#M19798</guid>
      <dc:creator>AR92</dc:creator>
      <dc:date>2020-07-13T09:28:15Z</dc:date>
    </item>
  </channel>
</rss>

