<?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:Error while convert tensorflow model To IR using Model Optimizer in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1262231#M23051</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi Vina,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;This thread will no longer be monitored since this issue has been resolved.&amp;nbsp;If you need any additional information from Intel, please submit a new question.&lt;/SPAN&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;SPAN style="font-size: 16px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Peh&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 08 Mar 2021 04:34:01 GMT</pubDate>
    <dc:creator>Peh_Intel</dc:creator>
    <dc:date>2021-03-08T04:34:01Z</dc:date>
    <item>
      <title>Error while convert tensorflow model To IR using Model Optimizer</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1259167#M22938</link>
      <description>&lt;P&gt;Hello, i want to build mask clasifier model. so i trained tensorflow model using mobile-net v2 archiitecture. i had 2 output, mask and non mask. when i tried this model, it was running well. but i want to use in openvino. when i converted it to IR model using model optimizer i got error like this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C:\Program Files (x86)\Intel\openvino_2020.2.117\deployment_tools\model_optimizer&amp;gt;python mo.py --input_name "D:\saved_model.pb"&lt;BR /&gt;usage: mo.py [options]&lt;BR /&gt;mo.py: error: unrecognized arguments: --input_name D:\saved_model.pb&lt;/P&gt;
&lt;P&gt;C:\Program Files (x86)\Intel\openvino_2020.2.117\deployment_tools\model_optimizer&amp;gt;python mo.py --input_name saved_model.pb&lt;BR /&gt;usage: mo.py [options]&lt;BR /&gt;mo.py: error: unrecognized arguments: --input_name saved_model.pb&lt;/P&gt;
&lt;P&gt;C:\Program Files (x86)\Intel\openvino_2020.2.117\deployment_tools\model_optimizer&amp;gt;python mo.py --input_model saved_model.pb&lt;BR /&gt;Model Optimizer arguments:&lt;BR /&gt;Common parameters:&lt;BR /&gt;- Path to the Input Model: C:\Program Files (x86)\Intel\openvino_2020.2.117\deployment_tools\model_optimizer\saved_model.pb&lt;BR /&gt;- Path for generated IR: C:\Program Files (x86)\Intel\openvino_2020.2.117\deployment_tools\model_optimizer\.&lt;BR /&gt;- IR output name: saved_model&lt;BR /&gt;- Log level: ERROR&lt;BR /&gt;- Batch: Not specified, inherited from the model&lt;BR /&gt;- Input layers: Not specified, inherited from the model&lt;BR /&gt;- Output layers: Not specified, inherited from the model&lt;BR /&gt;- Input shapes: Not specified, inherited from the model&lt;BR /&gt;- Mean values: Not specified&lt;BR /&gt;- Scale values: Not specified&lt;BR /&gt;- Scale factor: Not specified&lt;BR /&gt;- Precision of IR: FP32&lt;BR /&gt;- Enable fusing: True&lt;BR /&gt;- Enable grouped convolutions fusing: True&lt;BR /&gt;- Move mean values to preprocess section: False&lt;BR /&gt;- Reverse input channels: False&lt;BR /&gt;TensorFlow specific parameters:&lt;BR /&gt;- Input model in text protobuf format: False&lt;BR /&gt;- Path to model dump for TensorBoard: None&lt;BR /&gt;- List of shared libraries with TensorFlow custom layers implementation: None&lt;BR /&gt;- Update the configuration file with input/output node names: None&lt;BR /&gt;- Use configuration file used to generate the model with Object Detection API: None&lt;BR /&gt;- Use the config file: None&lt;BR /&gt;Model Optimizer version: 2020.2.0-60-g0bc66e26ff&lt;BR /&gt;[ FRAMEWORK ERROR ] Cannot load input model: TensorFlow cannot read the model file: "C:\Program Files (x86)\Intel\openvino_2020.2.117\deployment_tools\model_optimizer\saved_model.pb" is incorrect TensorFlow model file.&lt;BR /&gt;The file should contain one of the following TensorFlow graphs:&lt;BR /&gt;1. frozen graph in text or binary format&lt;BR /&gt;2. inference graph for freezing with checkpoint (--input_checkpoint) in text or binary format&lt;BR /&gt;3. meta graph&lt;/P&gt;
&lt;P&gt;Make sure that --input_model_is_text is provided for a model in text format. By default, a model is interpreted in binary format. Framework error details: Truncated message..&lt;BR /&gt;For more information please refer to Model Optimizer FAQ (&lt;A href="https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html" target="_blank"&gt;https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html&lt;/A&gt;), question #43.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 06:37:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1259167#M22938</guid>
      <dc:creator>Vina_Alvionita</dc:creator>
      <dc:date>2021-02-25T06:37:05Z</dc:date>
    </item>
    <item>
      <title>Re:Error while convert tensorflow model To IR using Model Optimizer</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1259632#M22960</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi Vina,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Greetings to you. Firstly, I observed that you’re using an old version of Intel® Distribution of OpenVINO™ toolkit&amp;nbsp;(2020.2). I would recommend you install the latest version of Intel® Distribution of OpenVINO™ toolkit which is 2021.2. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Secondly, I observed that you’re using this command line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;I style="font-size: 16px;"&gt;python mo.py --input_model saved_model.pb&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;This instruction makes the input_model points to the saved_model.pb, but in fact, it should point to the directory. The command line should be:&lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 16px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;I style="font-size: 16px;"&gt;python mo.py --saved_model_dir &amp;lt;SAVED_MODEL_DIRECTORY&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I style="font-size: 16px;"&gt;&amp;nbsp;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;You may refer to the link below under point 3 of the “Loading Non-Frozen Models to the Model Optimizer” section for the steps to store non-frozen TensorFlow models and load them to the Model Optimizer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.openvinotoolkit.org/2020.2/_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html#loading-nonfrozen-models" rel="noopener noreferrer" target="_blank" style="font-size: 16px;"&gt;https://docs.openvinotoolkit.org/2020.2/_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html#loading-nonfrozen-models&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;For your information, SSD MobileNet V2 COCO is a TensorFlow Object Detection API model which is supported by Model Optimizer. TensorFlow Object Detection API model require more arguments in converting to IR format for example: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Symbol; font-size: 16px;"&gt;·&lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 16px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px;"&gt;--reverse_input_channels &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Symbol; font-size: 16px;"&gt;·&lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 16px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px;"&gt;--tensorflow_object_detection_api_pipeline_config &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Symbol; font-size: 16px;"&gt;·&lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 16px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px;"&gt;--transformations_config &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;You may find all the required model_optimizer arguments for this SSD MobileNet V2 COCO in this file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;I style="font-size: 16px;"&gt;&amp;lt;path_to_openvino&amp;gt;\deployment_tools\open_model_zoo\models\public\ssd_mobilenet_v2_coco\model.yml&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I style="font-size: 16px;"&gt;&amp;nbsp;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;These information are also available here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/openvinotoolkit/open_model_zoo/blob/master/models/public/ssd_mobilenet_v2_coco/model.yml#L36" rel="noopener noreferrer" target="_blank" style="font-size: 16px;"&gt;https://github.com/openvinotoolkit/open_model_zoo/blob/master/models/public/ssd_mobilenet_v2_coco/model.yml#L36&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;For more details, you may refer to the following link:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.openvinotoolkit.org/2020.2/_docs_MO_DG_prepare_model_convert_model_tf_specific_Convert_Object_Detection_API_Models.html#how_to_convert_a_model" rel="noopener noreferrer" target="_blank" style="font-size: 16px;"&gt;https://docs.openvinotoolkit.org/2020.2/_docs_MO_DG_prepare_model_convert_model_tf_specific_Convert_Object_Detection_API_Models.html#how_to_convert_a_model&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;&lt;SPAN style="font-size: 16px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Peh&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Feb 2021 09:05:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1259632#M22960</guid>
      <dc:creator>Peh_Intel</dc:creator>
      <dc:date>2021-02-26T09:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Error while convert tensorflow model To IR using Model Optimizer</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1260874#M23003</link>
      <description>&lt;P&gt;I have tried to retrained a simple model and i use tensorflow version 2.4.1. and then i convert to IR model used this command :&lt;/P&gt;
&lt;P&gt;python mo.py --saved_model_dir "D:\CP"&lt;/P&gt;
&lt;P&gt;but i got different error&lt;/P&gt;
&lt;P&gt;[ ERROR ] Exception occurred during running replacer "REPLACEMENT_ID" (&amp;lt;class 'extensions.load.tf.loader.TFLoader'&amp;gt;): Unexpected exception happened during extracting attributes for node Adam/dense_27/bias/v/Read/ReadVariableOp.&lt;BR /&gt;Original exception message: 'ascii' codec can't decode byte 0xcc in position 1: ordinal not in range(128)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 03:50:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1260874#M23003</guid>
      <dc:creator>Vina_Alvionita</dc:creator>
      <dc:date>2021-03-03T03:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Error while convert tensorflow model To IR using Model Optimizer</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1260950#M23007</link>
      <description>&lt;P&gt;UPDATE&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am also tried freezing the model, but i got this error. which step i actually wrong?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Model Optimizer arguments:&lt;BR /&gt;Common parameters:&lt;BR /&gt;- Path to the Input Model: D:\saved_model_2.pb&lt;BR /&gt;- Path for generated IR: C:\Program Files (x86)\Intel\openvino_2020.2.117\deployment_tools\model_optimizer\.&lt;BR /&gt;- IR output name: saved_model_2&lt;BR /&gt;- Log level: ERROR&lt;BR /&gt;- Batch: Not specified, inherited from the model&lt;BR /&gt;- Input layers: Not specified, inherited from the model&lt;BR /&gt;- Output layers: Not specified, inherited from the model&lt;BR /&gt;- Input shapes: [1,3,224,224]&lt;BR /&gt;- Mean values: Not specified&lt;BR /&gt;- Scale values: Not specified&lt;BR /&gt;- Scale factor: Not specified&lt;BR /&gt;- Precision of IR: FP32&lt;BR /&gt;- Enable fusing: True&lt;BR /&gt;- Enable grouped convolutions fusing: True&lt;BR /&gt;- Move mean values to preprocess section: False&lt;BR /&gt;- Reverse input channels: False&lt;BR /&gt;TensorFlow specific parameters:&lt;BR /&gt;- Input model in text protobuf format: False&lt;BR /&gt;- Path to model dump for TensorBoard: None&lt;BR /&gt;- List of shared libraries with TensorFlow custom layers implementation: None&lt;BR /&gt;- Update the configuration file with input/output node names: None&lt;BR /&gt;- Use configuration file used to generate the model with Object Detection API: None&lt;BR /&gt;- Use the config file: None&lt;BR /&gt;Model Optimizer version: 2020.2.0-60-g0bc66e26ff&lt;BR /&gt;[ ERROR ] Exception occurred during running replacer "REPLACEMENT_ID" (&amp;lt;class 'extensions.middle.BiasAddBroadcasting.BiasAddInputBroadcasting'&amp;gt;): After partial shape inference were found shape collision for node model_1/dense_2/BiasAdd/Add (old shape: [ 0 128], new shape: [ -1 128])&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 08:56:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1260950#M23007</guid>
      <dc:creator>Vina_Alvionita</dc:creator>
      <dc:date>2021-03-03T08:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Error while convert tensorflow model To IR using Model Optimizer</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1260968#M23008</link>
      <description>&lt;P&gt;Thankyou Peh, i read again carefully all of information you gave above. and i get the solution, it need to add --reverse_input_channels . the IR model succesfully converted&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 09:49:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1260968#M23008</guid>
      <dc:creator>Vina_Alvionita</dc:creator>
      <dc:date>2021-03-03T09:49:24Z</dc:date>
    </item>
    <item>
      <title>Re:Error while convert tensorflow model To IR using Model Optimizer</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1261354#M23027</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi Vina,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Greetings to you. I’m glad to hear that you had successfully converted your model into IR format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Shall we close this thread?&lt;/SPAN&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;SPAN style="font-size: 16px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Peh&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2021 09:46:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1261354#M23027</guid>
      <dc:creator>Peh_Intel</dc:creator>
      <dc:date>2021-03-04T09:46:29Z</dc:date>
    </item>
    <item>
      <title>Re:Error while convert tensorflow model To IR using Model Optimizer</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1262231#M23051</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi Vina,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;This thread will no longer be monitored since this issue has been resolved.&amp;nbsp;If you need any additional information from Intel, please submit a new question.&lt;/SPAN&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;SPAN style="font-size: 16px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Peh&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Mar 2021 04:34:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Error-while-convert-tensorflow-model-To-IR-using-Model-Optimizer/m-p/1262231#M23051</guid>
      <dc:creator>Peh_Intel</dc:creator>
      <dc:date>2021-03-08T04:34:01Z</dc:date>
    </item>
  </channel>
</rss>

