<?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 Not able to compile Variable sized image as input. in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662239#M3222</link>
    <description>&lt;P&gt;I have made a Object Detector using Keras. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;input_1 (InputLayer)         (None, None, None, 3)     &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv0 (Conv2D)           (None, None, None, 32)&lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv1 (Conv2D)           (None, None, None, 64)&lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv2 (Conv2D)           (None, None, None, 128)&lt;P&gt;&amp;nbsp;&lt;/P&gt;max_pooling2d_1 (MaxPooling2 (None, None, None, 128)&lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv3 (Conv2D)           (None, None, None, 64)   &lt;P&gt;&amp;nbsp;&lt;/P&gt;max_pooling2d_2 (MaxPooling2 (None, None, None, 64)        &lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv4 (Conv2D)           (None, None, None, 32)&lt;P&gt;&amp;nbsp;&lt;/P&gt;max_pooling2d_3 (MaxPooling2 (None, None, None, 32)&lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv5 (Conv2D)           (None, None, None, 32)     &lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv6 (Conv2D)           (None, None, None, 512)&lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv7 (Conv2D)           (None, None, None, 6)&lt;P&gt;&amp;nbsp;&lt;/P&gt;global_max_pooling2d_1 (Glob (None, 6)  &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I am dealing with variable sized object, I have kept the input as None and made a custom loss.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;But after converting my Keras model to Tensorflow model and compiling using mvNCCompile command line tool it throws an error that&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;input_data = np.random.uniform(0, 1, shape)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;  File "mtrand.pyx", line 1307, 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;Command I am using is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;mvNCCompile tf_model.meta -in=input_1 -on=fcn_conv11/BiasAdd&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've the TF_Model folder which contains checkpoint file, .meta file, .data file, .index file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help. I am stuck with these for the past one week&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 03 Sep 2018 10:48:46 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2018-09-03T10:48:46Z</dc:date>
    <item>
      <title>Not able to compile Variable sized image as input.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662239#M3222</link>
      <description>&lt;P&gt;I have made a Object Detector using Keras. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;input_1 (InputLayer)         (None, None, None, 3)     &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv0 (Conv2D)           (None, None, None, 32)&lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv1 (Conv2D)           (None, None, None, 64)&lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv2 (Conv2D)           (None, None, None, 128)&lt;P&gt;&amp;nbsp;&lt;/P&gt;max_pooling2d_1 (MaxPooling2 (None, None, None, 128)&lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv3 (Conv2D)           (None, None, None, 64)   &lt;P&gt;&amp;nbsp;&lt;/P&gt;max_pooling2d_2 (MaxPooling2 (None, None, None, 64)        &lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv4 (Conv2D)           (None, None, None, 32)&lt;P&gt;&amp;nbsp;&lt;/P&gt;max_pooling2d_3 (MaxPooling2 (None, None, None, 32)&lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv5 (Conv2D)           (None, None, None, 32)     &lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv6 (Conv2D)           (None, None, None, 512)&lt;P&gt;&amp;nbsp;&lt;/P&gt;fcn_conv7 (Conv2D)           (None, None, None, 6)&lt;P&gt;&amp;nbsp;&lt;/P&gt;global_max_pooling2d_1 (Glob (None, 6)  &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I am dealing with variable sized object, I have kept the input as None and made a custom loss.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;But after converting my Keras model to Tensorflow model and compiling using mvNCCompile command line tool it throws an error that&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;input_data = np.random.uniform(0, 1, shape)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;  File "mtrand.pyx", line 1307, 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;Command I am using is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;mvNCCompile tf_model.meta -in=input_1 -on=fcn_conv11/BiasAdd&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've the TF_Model folder which contains checkpoint file, .meta file, .data file, .index file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help. I am stuck with these for the past one week&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 10:48:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662239#M3222</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-09-03T10:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to compile Variable sized image as input.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662240#M3223</link>
      <description>&lt;P&gt;@bumzo The NCSDK doesn't support models that use variable input sizes. For reference, the NCSDK takes a model and compiles a version of that model in the form of a static Movidius graph file. The input size is set for the graph file and cannot be changed. You can always resize input  images to a set input size resolution, but I understand that based on what you are doing, it may not be suitable. Currently there isn't a workaround for implementing variable input sizes. &lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 00:04:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662240#M3223</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-09-05T00:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to compile Variable sized image as input.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662241#M3224</link>
      <description>&lt;P&gt;@Tome_at_Intel But then how it is supporting Yolo?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Even it works on the principle of R-FCN and variable size.</description>
      <pubDate>Sat, 22 Sep 2018 11:52:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662241#M3224</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-09-22T11:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to compile Variable sized image as input.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662242#M3225</link>
      <description>&lt;P&gt;@bumzo The input size for Tiny Yolo is set at 448x448. This doesn't change. When using input images that are of a different resolution, the images are resized and passed through the model. &lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 00:50:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662242#M3225</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-09-25T00:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to compile Variable sized image as input.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662243#M3226</link>
      <description>&lt;P&gt;@Tome_at_Intel  thanks for the information.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 23:01:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662243#M3226</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-09-28T23:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to compile Variable sized image as input.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662244#M3227</link>
      <description>&lt;P&gt;Hi, I am getting the same exact problem but I took a Resnet Inception V2 model from TensorFlow Zoo which should be supported and I retrained it on my custom dataset. After retraining, I took the weights from inference folder and tried to use the mvncCompile on them and got the same exact error. How can I change the input size to 1 in this case? @bumzo @Tome_at_Intel  &lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 20:42:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662244#M3227</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2019-05-13T20:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to compile Variable sized image as input.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662245#M3228</link>
      <description>&lt;P&gt;Hi @ali18997 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;I've answered your question on your other thread &lt;A href="https://ncsforum.movidius.com/discussion/1731/how-to-make-input-fixed-in-a-tensorflow-zoo-model#latest" target="_self"&gt;here&lt;/A&gt;.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Sahira</description>
      <pubDate>Tue, 21 May 2019 23:58:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Not-able-to-compile-Variable-sized-image-as-input/m-p/662245#M3228</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2019-05-21T23:58:11Z</dc:date>
    </item>
  </channel>
</rss>

