<?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 Shubha R. (Intel), where in in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136884#M9783</link>
    <description>&lt;P&gt;Shubha R. (Intel), where in the python code I should use&amp;nbsp;-l CPU_EXTENSION, --cpu_extension CPU_EXTENSION?&lt;/P&gt;&lt;P&gt;Could you give me a short example with python?&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2019 20:45:42 GMT</pubDate>
    <dc:creator>Orlov__Sergey</dc:creator>
    <dc:date>2019-07-31T20:45:42Z</dc:date>
    <item>
      <title>RuntimeError with load plugin in python</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136882#M9781</link>
      <description>&lt;P&gt;I try to create python script using .xml and .bin data for model simulating:&lt;/P&gt;
&lt;PRE class="brush:python; class-name:dark;"&gt;pathDetector = '/models/person_detection/Retail/object_detection/pedestrian/hypernet-rfcn/0026/dldt/'
# pathDetector = '/models/pedestrian_tracking/Retail/object_detection/pedestrian/rmnet_ssd/0013/dldt/'

detector = 'person-detection-retail-0002'
# detector = 'person-detection-retail-0013'

model_xml = pathDetector + detector + '.xml'
model_bin = pathDetector + detector + '.bin'

net = IENetwork(model=model_xml, weights=model_bin)

_, c, h, w = net.inputs['data'].shape

net.batch_size = 1
exec_net = plugin.load(network=net)
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I meet the error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:python; class-name:dark;"&gt;RuntimeError                              Traceback (most recent call last)
&amp;lt;ipython-input-2-64f01a0a3b50&amp;gt; in &amp;lt;module&amp;gt;
     16 
     17 net.batch_size = 1
---&amp;gt; 18 exec_net = plugin.load(network=net)

ie_api.pyx in openvino.inference_engine.ie_api.IEPlugin.load()

ie_api.pyx in openvino.inference_engine.ie_api.IEPlugin.load()

RuntimeError: Unsupported primitive of type: Proposal name: proposal&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also another model simulating doesn't work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:python; class-name:dark;"&gt;pathDetector = '/models/pedestrian_adas/Transportation/object_detection/pedestrian/mobilenet-reduced-ssd/dldt/'

detector = 'pedestrian-detection-adas-0002'&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It gives me:&lt;/P&gt;

&lt;PRE class="brush:python; class-name:dark;"&gt;RuntimeError                              Traceback (most recent call last)
&amp;lt;ipython-input-2-ae2e8b07fc8e&amp;gt; in &amp;lt;module&amp;gt;
     14 
     15 net.batch_size = 1
---&amp;gt; 16 exec_net = plugin.load(network=net)

ie_api.pyx in openvino.inference_engine.ie_api.IEPlugin.load()

ie_api.pyx in openvino.inference_engine.ie_api.IEPlugin.load()

RuntimeError: Unsupported primitive of type: PriorBox name: fc7_mbox_priorbox&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I do wrong? How fix it?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 10:52:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136882#M9781</guid>
      <dc:creator>Orlov__Sergey</dc:creator>
      <dc:date>2019-07-31T10:52:29Z</dc:date>
    </item>
    <item>
      <title>Dear Orlov, Sergey,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136883#M9782</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Orlov, Sergey,&lt;/P&gt;&lt;P&gt;Both problems can be solved by adding the cpu_extensions.so (or *.dll) via the -l switch. Please study the&amp;nbsp;&lt;A href="http://docs.openvinotoolkit.org/latest/_demos_python_demos_action_recognition_README.html"&gt;Action Recognition Python Demo&lt;/A&gt;&amp;nbsp;for an example and pay special attention to&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;-l CPU_EXTENSION, --cpu_extension CPU_EXTENSION&lt;/P&gt;&lt;P&gt;Optional. For CPU custom layers, if any. Absolute path&lt;/P&gt;&lt;P&gt;to a shared library with the kernels implementation.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;Shubha&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 17:28:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136883#M9782</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-07-31T17:28:24Z</dc:date>
    </item>
    <item>
      <title>Shubha R. (Intel), where in</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136884#M9783</link>
      <description>&lt;P&gt;Shubha R. (Intel), where in the python code I should use&amp;nbsp;-l CPU_EXTENSION, --cpu_extension CPU_EXTENSION?&lt;/P&gt;&lt;P&gt;Could you give me a short example with python?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 20:45:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136884#M9783</guid>
      <dc:creator>Orlov__Sergey</dc:creator>
      <dc:date>2019-07-31T20:45:42Z</dc:date>
    </item>
    <item>
      <title>Dear Orlov, Sergey,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136885#M9784</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Orlov, Sergey,&lt;/P&gt;&lt;P&gt;Please look at&amp;nbsp;C:\Program Files (x86)\IntelSWTools\openvino_2019.2.242\deployment_tools\inference_engine\samples\python_samples\benchmark_app\benchmark\benchmark.py&lt;/P&gt;&lt;P&gt;You will see code that looks like:&lt;/P&gt;
&lt;PRE class="brush:python; class-name:dark;"&gt;if CPU_DEVICE_NAME in device_name:
            if args.path_to_extension:
                ie.add_cpu_extension(extension_path=args.path_to_extension, device_name=CPU_DEVICE_NAME)
        if GPU_DEVICE_NAME in device_name:
            if args.path_to_cldnn_config:
                ie.set_config({'CONFIG_FILE' : args.path_to_cldnn_config}, GPU_DEVICE_NAME)
                logger.info("GPU extensions is loaded {}".format(args.path_to_cldnn_config))&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 21:10:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136885#M9784</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-07-31T21:10:25Z</dc:date>
    </item>
    <item>
      <title>Shubha R. (Intel), what's the</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136886#M9785</link>
      <description>&lt;P&gt;Shubha R. (Intel), what's the&amp;nbsp;path_to_extension? where is it in openVINO? you mentioned&amp;nbsp;&lt;STRONG&gt;cpu_extensions.so&lt;/STRONG&gt; and where is it? I installed openVINO on Ubuntu.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moreover, i did:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt; find . -name "cpu_extensions*"&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But got nothing...&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 09:56:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136886#M9785</guid>
      <dc:creator>Orlov__Sergey</dc:creator>
      <dc:date>2019-08-01T09:56:00Z</dc:date>
    </item>
    <item>
      <title>Dear Orlov, Sergey,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136887#M9786</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Orlov, Sergey,&lt;/P&gt;&lt;P&gt;In order to get the cpu_extension* lib files you must build your samples and demos. Once you build them you will get a message on the screen regarding where the binaries will be deposited (the exact path on your Linux computer).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shubha&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 21:47:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136887#M9786</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-08-01T21:47:00Z</dc:date>
    </item>
    <item>
      <title>Shubha R. (Intel), I did</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136888#M9787</link>
      <description>&lt;P&gt;Shubha R. (Intel), I did things you advised me:&lt;/P&gt;
&lt;PRE class="brush:python; class-name:dark;"&gt;ext_lib_path = '/root/omz_demos_build/intel64/Release/lib/libcpu_extension.so'

plugin = IEPlugin(device='CPU')
plugin.add_cpu_extenstions(ext_lib_path)&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I got strange error:&lt;/P&gt;

&lt;PRE class="brush:python; class-name:dark;"&gt;AttributeError                            Traceback (most recent call last)
&amp;lt;ipython-input-8-c2d14dd56177&amp;gt; in &amp;lt;module&amp;gt;
      2 
      3 plugin = IEPlugin(device='CPU')
----&amp;gt; 4 plugin.add_cpu_extenstions(ext_lib_path)
      5 
      6 

AttributeError: 'openvino.inference_engine.ie_api.IEPlugin' object has no attribute 'add_cpu_extenstions'&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm confused... Where is working api from this:&amp;nbsp;https://docs.openvinotoolkit.org/2018_R5/_ie_bridges_python_docs_api_overview.html&lt;/P&gt;
&lt;P&gt;API&amp;nbsp;for latest version 2019_R2 is not found: &lt;A href="https://docs.openvinotoolkit.org/latest/_ie_bridges_python_docs_api_overview.html" target="_blank"&gt;https://docs.openvinotoolkit.org/latest/_ie_bridges_python_docs_api_overview.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;How fix it?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 10:40:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136888#M9787</guid>
      <dc:creator>Orlov__Sergey</dc:creator>
      <dc:date>2019-08-02T10:40:59Z</dc:date>
    </item>
    <item>
      <title>Dear Orlov, Sergey,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136889#M9788</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Orlov, Sergey,&lt;/P&gt;&lt;P&gt;you spelled extensions incorrectly, this is the reason for your error:&lt;/P&gt;&lt;P&gt;plugin.add_cpu_&lt;STRONG&gt;extenstions&lt;/STRONG&gt;(ext_lib_path)&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shubha&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 20:52:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/RuntimeError-with-load-plugin-in-python/m-p/1136889#M9788</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-08-02T20:52:28Z</dc:date>
    </item>
  </channel>
</rss>

