<?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: Framework error when converting a HDF5 model into OpenVINO IR format model in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1418939#M28362</link>
    <description>&lt;P&gt;Hi Peh,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I followed your steps and indeed after installing/upgrading TensorFlow 2 prerequisites, the&amp;nbsp;converted saved_model.pb file is 1.8 MB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I am able to convert the said&amp;nbsp;model into the OpenVINO IR format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for your time in solving my issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;nat98&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 02:06:26 GMT</pubDate>
    <dc:creator>nat98</dc:creator>
    <dc:date>2022-10-03T02:06:26Z</dc:date>
    <item>
      <title>Framework error when converting a HDF5 model into OpenVINO IR format model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1414931#M28289</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a CNN-LSTM model and would like to convert it into the OpenVINO IR format. I have saved the trained model in an HDF5 format with model checkpoint also in the same HDF5 format.&lt;/P&gt;
&lt;P&gt;The following code is used to convert the model using Model Optimizer:&lt;/P&gt;
&lt;P&gt;python3 mo_tf.py --input_model &amp;lt;directory&amp;gt;/cnn_lstm_model.hdf5 --output_dir &amp;lt;directory&amp;gt;/disaster --input_shape [60,160,160,3] --input_checkpoint &amp;lt;directory&amp;gt;/model_checkpoint.hdf5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the conversion is not successful and I got this error:&lt;/P&gt;
&lt;P&gt;[ FRAMEWORK ERROR ] Cannot load input model: Unable to open table file &amp;lt;directory&amp;gt;/model_checkpoint.hdf5: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using Openvino version 2021.4 &amp;amp; TensorFlow version 2.1.0. Any help would be great.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;nat98&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 09:15:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1414931#M28289</guid>
      <dc:creator>nat98</dc:creator>
      <dc:date>2022-09-15T09:15:51Z</dc:date>
    </item>
    <item>
      <title>Re:Framework error when converting a HDF5 model into OpenVINO IR format model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1415131#M28290</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi nat98,&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;For model in the HDF5 format, you have to load the model using TensorFlow 2 and serialize it in the SavedModel format. Here is an example of how to do it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 16px;"&gt;import tensorflow as tf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 16px;"&gt;model = tf.keras.models.load_model('model.h5')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 16px;"&gt;tf.saved_model.save(model,'model')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 16px;"&gt;Then convert the the SavedModel format into Intermediate Representation (IR) using Model Optimizer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 16px;"&gt;python3 mo_tf.py --saved_model_dir &amp;lt;SAVED_MODEL_DIRECTORY&amp;gt; --output_dir &amp;lt;OUTPUT_MODEL_DIR&amp;gt;&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;For more information, you can refer to &lt;/SPAN&gt;&lt;A href="https://docs.openvino.ai/2021.4/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html#convert-tensorflow-2-models" rel="noopener noreferrer" target="_blank" style="font-size: 16px;"&gt;Convert TensorFlow 2 Models&lt;/A&gt;&lt;SPAN style="font-size: 16px;"&gt;.&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>Fri, 16 Sep 2022 01:53:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1415131#M28290</guid>
      <dc:creator>Peh_Intel</dc:creator>
      <dc:date>2022-09-16T01:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Framework error when converting a HDF5 model into OpenVINO IR format model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1415346#M28291</link>
      <description>&lt;P&gt;Hi Peh,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried the method to load the model using TensorFlow 2 and serialize it in the SavedModel format as shown in your reply.&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;FONT face="courier new,courier"&gt;import tensorflow as tf&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;model = tf.keras.models.load_model('cnn_lstm_model.h5')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tf.saved_model.save(model,'model')&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;I got an error when I run the above code. A&lt;/SPAN&gt;ttached is the output of the terminal when I run the conversion. The error is exactly the same whether the model is in &lt;FONT face="courier new,courier"&gt;cnn_lstm_model.h5&amp;nbsp;&lt;/FONT&gt;format or in &lt;FONT face="courier new,courier"&gt;cnn_lstm_model.hdf5&amp;nbsp;&lt;/FONT&gt;format.&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;For your information, the second attachment is my model summary.&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Regards,&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;nat98&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 06:02:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1415346#M28291</guid>
      <dc:creator>nat98</dc:creator>
      <dc:date>2022-09-17T06:02:54Z</dc:date>
    </item>
    <item>
      <title>Re:Framework error when converting a HDF5 model into OpenVINO IR format model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1415555#M28293</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi nat98,&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;Based on your first attachment, I found that your encountered error might be due to h5py version ==3.0.0 which causes issues with Keras model loads in Tensorflow 2.1.0. &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;Please try to downgrade the h5py package with the following command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 16px;"&gt;pip install 'h5py==2.10.0' --force-reinstall&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 16px;"&gt;&amp;nbsp;&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;Here are two similar discussions that you can refer to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/tensorflow/tensorflow/issues/44467" rel="noopener noreferrer" target="_blank" style="font-size: 16px;"&gt;h5py==3.0.0 causes issues with keras model loads in tensorflow 2.1.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/53740577/does-any-one-got-attributeerror-str-object-has-no-attribute-decode-whi" rel="noopener noreferrer" target="_blank" style="font-size: 16px;"&gt;Does Any one got "AttributeError: 'str' object has no attribute 'decode' " , while Loading a Keras Saved 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;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, 19 Sep 2022 07:11:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1415555#M28293</guid>
      <dc:creator>Peh_Intel</dc:creator>
      <dc:date>2022-09-19T07:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Framework error when converting a HDF5 model into OpenVINO IR format model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1416162#M28313</link>
      <description>&lt;P&gt;Hi Peh,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your suggestion, I have downgraded the h5py package to version 2.10.0. This solved the "Attribute Error" issue. Thanks for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I load the model using TensorFlow 2 and serialize it in the SavedModel format, and converted it successfully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, when I convert to OpenVINO IR using the following code:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;python3 mo_tf.py --saved_model_dir &amp;lt;SAVED_MODEL_DIRECTORY&amp;gt; --output_dir &amp;lt;OUTPUT_MODEL_DIR&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;python3 mo_tf.py --saved_model_dir &amp;lt;SAVED_MODEL_DIRECTORY&amp;gt; --output_dir &amp;lt;OUTPUT_MODEL_DIR&amp;gt; --input_shape [60,160,160,3]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got the following errors:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[ ERROR ] Cannot infer shapes or values for node "StatefulPartitionedCall_1".&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ ERROR ] Expected DataType for argument 'dtype' not &amp;lt;class 'str'&amp;gt;.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ ERROR ] &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ ERROR ] It can happen due to bug in custom shape infer function &amp;lt;function tf_native_tf_node_infer at 0x7f39a20a4620&amp;gt;.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ ERROR ] Or because the node inputs have incorrect values/shapes.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ ERROR ] Or because input shapes are incorrect (embedded to the model or passed via --input_shape).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ ERROR ] Run Model Optimizer with --log_level=DEBUG for more information.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ ERROR ] Exception occurred during running replacer "REPLACEMENT_ID" (&amp;lt;class 'extensions.middle.PartialInfer.PartialInfer'&amp;gt;): Stopped shape/value propagation at "StatefulPartitionedCall_1" node. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;For more information please refer to Model Optimizer FAQ, question #38. (&lt;A href="https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html?question=38#question-38" target="_blank"&gt;https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html?question=38#question-38&lt;/A&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached is the screenshot of the terminal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;nat98&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 06:25:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1416162#M28313</guid>
      <dc:creator>nat98</dc:creator>
      <dc:date>2022-09-21T06:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Framework error when converting a HDF5 model into OpenVINO IR format model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1417257#M28335</link>
      <description>&lt;P&gt;Hi Peh,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have downgraded&amp;nbsp;the h5py package. It solved the error that I have during the model conversion from hdf5 to pb file format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run the following codes:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;python3 mo_tf.py --saved_model_dir &amp;lt;SAVED_MODEL_DIRECTORY&amp;gt; --output_dir &amp;lt;OUTPUT_MODEL_DIR&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;python3 mo_tf.py --saved_model_dir &amp;lt;SAVED_MODEL_DIRECTORY&amp;gt; --output_dir &amp;lt;OUTPUT_MODEL_DIR&amp;gt;&amp;nbsp;--input_shape [60,160,160,3]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I got some errors during the conversion to OpenVINO IR. Here are some of the errors:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[ ERROR ] Cannot infer shapes or values for node "StatefulPartitionedCall_1".&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ ERROR ] Expected DataType for argument 'dtype' not &amp;lt;class 'str'&amp;gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached is the screenshot of the full error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;nat98&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 09:00:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1417257#M28335</guid>
      <dc:creator>nat98</dc:creator>
      <dc:date>2022-09-26T09:00:52Z</dc:date>
    </item>
    <item>
      <title>Re:Framework error when converting a HDF5 model into OpenVINO IR format model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1417814#M28345</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi nat98,&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;Sorry for my late response. &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;Could you share the models (hdf5 and SavedModel format) with us for further investigation?&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>Wed, 28 Sep 2022 01:47:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1417814#M28345</guid>
      <dc:creator>Peh_Intel</dc:creator>
      <dc:date>2022-09-28T01:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Framework error when converting a HDF5 model into OpenVINO IR format model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1418245#M28358</link>
      <description>&lt;P&gt;Hi Peh,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The link to my models in both hdf5 and SavedModel format are as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HDF5: &lt;A href="https://drive.google.com/file/d/1ePuQrVXNA1diNEOvNlqvSYZ7RTOzncIZ/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1ePuQrVXNA1diNEOvNlqvSYZ7RTOzncIZ/view?usp=sharing&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;SavedModel: &lt;A href="https://drive.google.com/file/d/1ehp6dJ9uNEY13yIzI_OtVsXiSbxYDsdd/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1ehp6dJ9uNEY13yIzI_OtVsXiSbxYDsdd/view?usp=sharing&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that I could not attach my model in this reply due to the maximum size allowed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;nat98&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:06:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1418245#M28358</guid>
      <dc:creator>nat98</dc:creator>
      <dc:date>2022-09-29T08:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Framework error when converting a HDF5 model into OpenVINO IR format model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1418550#M28360</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi nat98,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for sharing your models with us.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I also encountered the same error when converting your shared SavedModel format files into IR. Then, I serialized the HDF5 format model into SavedModel format and successfully converted into IR. I found that my converted saved_model.pb file is 1727KB while yours is just 559KB.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I share my steps here: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Install the prerequisites for TensorFlow 2:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;cd /opt/intel/openvino_2021.4.582/deployment_tools/model_optimizer/install_prerequisites&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;./install_prerequisites_tf2.sh&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Serialize the HDF5 format model into SavedModel format:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;import tensorflow as tf&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;from tensorflow.keras.models import load_model&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;model = load_model(‘path/cnn_lstm_model.hdf5’)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;tf.saved_model.save(model,'model')&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Convert SavedModel format into IR:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;python3 mo_tf.py --saved_model_dir &amp;lt;path_SavedModel&amp;gt; --input_shape [1,60,160,160,3]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Link to SavedModel format and IR:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://drive.google.com/file/d/114MxoDn7GjJ4GqWsZ9A4cgIB4cAZU1kF/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/114MxoDn7GjJ4GqWsZ9A4cgIB4cAZU1kF/view?usp=sharing&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Peh&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 05:24:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1418550#M28360</guid>
      <dc:creator>Peh_Intel</dc:creator>
      <dc:date>2022-09-30T05:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Framework error when converting a HDF5 model into OpenVINO IR format model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1418939#M28362</link>
      <description>&lt;P&gt;Hi Peh,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I followed your steps and indeed after installing/upgrading TensorFlow 2 prerequisites, the&amp;nbsp;converted saved_model.pb file is 1.8 MB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I am able to convert the said&amp;nbsp;model into the OpenVINO IR format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for your time in solving my issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;nat98&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 02:06:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1418939#M28362</guid>
      <dc:creator>nat98</dc:creator>
      <dc:date>2022-10-03T02:06:26Z</dc:date>
    </item>
    <item>
      <title>Re:Framework error when converting a HDF5 model into OpenVINO IR format model</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1418999#M28365</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi nat98,&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;Glad to hear everything works well to you.&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, 03 Oct 2022 07:49:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Framework-error-when-converting-a-HDF5-model-into-OpenVINO-IR/m-p/1418999#M28365</guid>
      <dc:creator>Peh_Intel</dc:creator>
      <dc:date>2022-10-03T07:49:59Z</dc:date>
    </item>
  </channel>
</rss>

