<?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 Re: TypeError When Compiling Mobilenet V1 in Tensorflow in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/TypeError-When-Compiling-Mobilenet-V1-in-Tensorflow/m-p/653413#M2359</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that "if statements" in the file of /usr/local/bin/ncsdk/Controllers/&lt;A href="http://TensorFlowParser.py"&gt;TensorFlowParser.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;For example:&lt;P&gt;&amp;nbsp;&lt;/P&gt;"if shape.dims is None"&lt;P&gt;&amp;nbsp;&lt;/P&gt;"if input_shape.dims is None"&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my graph input: (?, ?, ?, 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;[Dimension(None), Dimension(None), Dimension(None), Dimension(3)]&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although element [0][1][2] are all None, the statements always return False and skip the value assigning inside the statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Therefore, the problem happens when it calls to acquire the value and find None_type. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I am not sure if these can help me resolve the whole issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Could anyone help me for that?</description>
    <pubDate>Sat, 28 Jul 2018 07:42:33 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2018-07-28T07:42:33Z</dc:date>
    <item>
      <title>TypeError When Compiling Mobilenet V1 in Tensorflow</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/TypeError-When-Compiling-Mobilenet-V1-in-Tensorflow/m-p/653411#M2357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on deploying a modified version of Openpose library (pose estimation) from Github&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;A href="https://github.com/ildoonet/tf-pose-estimation"&gt;https://github.com/ildoonet/tf-pose-estimation&lt;/A&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;The author migrated the original pose estimation from Caffe into Tensorflow, and export his model. I am compiling the .pd model under "./models/graph/mobilenet_thin/graph_opt.pb"&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;A href="https://github.com/ildoonet/tf-pose-estimation/tree/master/models/graph/mobilenet_thin"&gt;https://github.com/ildoonet/tf-pose-estimation/tree/master/models/graph/mobilenet_thin&lt;/A&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;but got a Type-error like below. (with virtualbox and Ubuntu 16.04, NCSDK v1)&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;tcwei@tcwei-VirtualBox:~/workspace/tfpose_test/models/graph/mobilenet_thin$ mvNCCompile graph_opt.pb -s 12 -in image -on Openpose/concat_stage7 -o graph_opt.graph&lt;P&gt;&amp;nbsp;&lt;/P&gt;mvNCCompile v02.00, Copyright @ Movidius Ltd 2016&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/&lt;A href="http://ops.py"&gt;ops.py&lt;/A&gt;:766: DeprecationWarning: builtin type EagerTensor has no module attribute&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;  EagerTensor = c_api.TFE_Py_InitEagerTensor(_EagerTensorBase)&lt;P&gt;&amp;nbsp;&lt;/P&gt;/usr/local/lib/python3.5/dist-packages/tensorflow/python/util/tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead&lt;P&gt;&amp;nbsp;&lt;/P&gt;  if d.decorator_argspec is not None), _inspect.getargspec(target))&lt;P&gt;&amp;nbsp;&lt;/P&gt;Traceback (most recent call last):&lt;P&gt;&amp;nbsp;&lt;/P&gt;  File "/usr/local/bin/mvNCCompile", line 118, in &lt;P&gt;&amp;nbsp;&lt;/P&gt;    create_graph(args.network, args.inputnode, args.outputnode, args.outfile, args.nshaves, args.inputsize, args.weights)&lt;P&gt;&amp;nbsp;&lt;/P&gt;  File "/usr/local/bin/mvNCCompile", line 104, in create_graph&lt;P&gt;&amp;nbsp;&lt;/P&gt;    net = parse_tensor(args, myriad_config)&lt;P&gt;&amp;nbsp;&lt;/P&gt;  File "/usr/local/bin/ncsdk/Controllers/&lt;A href="http://TensorFlowParser.py"&gt;TensorFlowParser.py&lt;/A&gt;", line 259, in parse_tensor&lt;P&gt;&amp;nbsp;&lt;/P&gt;    input_data = np.random.uniform(0, 1, shape)&lt;P&gt;&amp;nbsp;&lt;/P&gt;  File "mtrand.pyx", line 1302, in mtrand.RandomState.uniform&lt;P&gt;&amp;nbsp;&lt;/P&gt;  File "mtrand.pyx", line 242, in mtrand.cont2_array_sc&lt;P&gt;&amp;nbsp;&lt;/P&gt;TypeError: 'NoneType' object cannot be interpreted as an integer&lt;P&gt;&amp;nbsp;&lt;/P&gt;…&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked some other discussions. It seems that most of time, the TypeError comes up with a unsupported issue and NCSDK doesn't support SSD-mobilenet. However, I am not sure if the model is using mobilenet v1 or SSD-mobilenet. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, through Tensorboard visualization as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;A href="https://imgur.com/a/RCqsEbN" target="_self"&gt;&lt;/A&gt;&lt;A href="https://imgur.com/a/RCqsEbN"&gt;https://imgur.com/a/RCqsEbN&lt;/A&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;I found that the model file includes mobilenet-V1 namescope and Openpose namescope. Would the other libraries/architectures like Openpose in my situation result in compiling failed? How to solve the problem?&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 02:33:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/TypeError-When-Compiling-Mobilenet-V1-in-Tensorflow/m-p/653411#M2357</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-07-17T02:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError When Compiling Mobilenet V1 in Tensorflow</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/TypeError-When-Compiling-Mobilenet-V1-in-Tensorflow/m-p/653412#M2358</link>
      <description>&lt;P&gt;I tried some simple architectures with my own layers and compiled them successfully. Hence, I am sure NCSDK supports customized architectures if they are successfully parsed. Just don't know which part of this tf-openpose library could result in compilation failed. Could anyone give us a suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Thanks.</description>
      <pubDate>Fri, 20 Jul 2018 00:42:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/TypeError-When-Compiling-Mobilenet-V1-in-Tensorflow/m-p/653412#M2358</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-07-20T00:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError When Compiling Mobilenet V1 in Tensorflow</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/TypeError-When-Compiling-Mobilenet-V1-in-Tensorflow/m-p/653413#M2359</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that "if statements" in the file of /usr/local/bin/ncsdk/Controllers/&lt;A href="http://TensorFlowParser.py"&gt;TensorFlowParser.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;For example:&lt;P&gt;&amp;nbsp;&lt;/P&gt;"if shape.dims is None"&lt;P&gt;&amp;nbsp;&lt;/P&gt;"if input_shape.dims is None"&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my graph input: (?, ?, ?, 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;[Dimension(None), Dimension(None), Dimension(None), Dimension(3)]&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although element [0][1][2] are all None, the statements always return False and skip the value assigning inside the statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Therefore, the problem happens when it calls to acquire the value and find None_type. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I am not sure if these can help me resolve the whole issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Could anyone help me for that?</description>
      <pubDate>Sat, 28 Jul 2018 07:42:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/TypeError-When-Compiling-Mobilenet-V1-in-Tensorflow/m-p/653413#M2359</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-07-28T07:42:33Z</dc:date>
    </item>
  </channel>
</rss>

