<?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>i.MX Processorsのトピックi.MX Machine Learning demo python script download Error</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-Machine-Learning-demo-python-script-download-Error/m-p/1739292#M214006</link>
    <description>&lt;P&gt;Hi NXP.&lt;/P&gt;&lt;P&gt;I'm trying to run a machine learning demo.(i.MX Machine Learning User's Guide 11.2 TensorFlow Lite Demos for i.MX 93)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run $ python3 download_models.py, an error occurs and I cannot run it.&lt;/P&gt;&lt;P&gt;I think the cause is that one of the URLs is 404 and cannot be connected.&lt;/P&gt;&lt;P&gt;(The python file says this: url = "&lt;A href="https://drive.google.com/uc?export=download&amp;amp;confirm=yTib&amp;amp;id=1VHM41B8bSr07loNtHlTbXr89670w3H9W" target="_blank"&gt;https://drive.google.com/uc?export=download&amp;amp;confirm=yTib&amp;amp;id=1VHM41B8bSr07loNtHlTbXr89670w3H9W&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;This phenomenon occurs in my Linux 6.1.22_2.0.0 environment.&lt;/P&gt;&lt;P&gt;And since the contents of download_models.py have not changed on Linux 6.1.36_2.1.0, the same problem should occur.&lt;/P&gt;&lt;P&gt;I would like the link to be restored or the python file to be modified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the log when running the python file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Download file from &lt;A href="https://drive.google.com/uc?export=download&amp;amp;confirm=yTib&amp;amp;id=1VHM41B8bSr07loNtHlTbXr89670w3H9W" target="_blank"&gt;https://drive.google.com/uc?export=download&amp;amp;confirm=yTib&amp;amp;id=1VHM41B8bSr07loNtHlTbXr89670w3H9W&lt;/A&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 1705, in gzopen&lt;BR /&gt;t = cls.taropen(name, mode, fileobj, **kwargs)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 1682, in taropen&lt;BR /&gt;return cls(name, mode, fileobj, **kwargs)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 1542, in __init__&lt;BR /&gt;self.firstmember = self.next()&lt;BR /&gt;^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 2379, in next&lt;BR /&gt;raise e&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 2352, in next&lt;BR /&gt;tarinfo = self.tarinfo.fromtarfile(self)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 1122, in fromtarfile&lt;BR /&gt;buf = tarfile.fileobj.read(BLOCKSIZE)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/gzip.py", line 301, in read&lt;BR /&gt;return self._buffer.read(size)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/_compression.py", line 68, in readinto&lt;BR /&gt;data = self.read(len(byte_view))&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/gzip.py", line 499, in read&lt;BR /&gt;if not self._read_gzip_header():&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/gzip.py", line 468, in _read_gzip_header&lt;BR /&gt;last_mtime = _read_gzip_header(self._fp)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/gzip.py", line 428, in _read_gzip_header&lt;BR /&gt;raise BadGzipFile('Not a gzipped file (%r)' % magic)&lt;BR /&gt;gzip.BadGzipFile: Not a gzipped file (b'&amp;lt;h')&lt;/P&gt;&lt;P&gt;The above exception was the direct cause of the following exception:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/bin/eiq-examples-git/download_models.py", line 98, in &amp;lt;module&amp;gt;&lt;BR /&gt;download_all_models(model_dir, vela_dir)&lt;BR /&gt;File "/usr/bin/eiq-examples-git/download_models.py", line 86, in download_all_models&lt;BR /&gt;decompress(path, model_dir)&lt;BR /&gt;File "/usr/bin/eiq-examples-git/download_models.py", line 28, in decompress&lt;BR /&gt;tar = tarfile.open(path, "r:gz")&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 1652, in open&lt;BR /&gt;return func(name, filemode, fileobj, **kwargs)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 1709, in gzopen&lt;BR /&gt;raise ReadError("not a gzip file") from e&lt;BR /&gt;tarfile.ReadError: not a gzip file&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2023 08:09:56 GMT</pubDate>
    <dc:creator>Ryo_Aoki</dc:creator>
    <dc:date>2023-10-13T08:09:56Z</dc:date>
    <item>
      <title>i.MX Machine Learning demo python script download Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-Machine-Learning-demo-python-script-download-Error/m-p/1739292#M214006</link>
      <description>&lt;P&gt;Hi NXP.&lt;/P&gt;&lt;P&gt;I'm trying to run a machine learning demo.(i.MX Machine Learning User's Guide 11.2 TensorFlow Lite Demos for i.MX 93)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run $ python3 download_models.py, an error occurs and I cannot run it.&lt;/P&gt;&lt;P&gt;I think the cause is that one of the URLs is 404 and cannot be connected.&lt;/P&gt;&lt;P&gt;(The python file says this: url = "&lt;A href="https://drive.google.com/uc?export=download&amp;amp;confirm=yTib&amp;amp;id=1VHM41B8bSr07loNtHlTbXr89670w3H9W" target="_blank"&gt;https://drive.google.com/uc?export=download&amp;amp;confirm=yTib&amp;amp;id=1VHM41B8bSr07loNtHlTbXr89670w3H9W&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;This phenomenon occurs in my Linux 6.1.22_2.0.0 environment.&lt;/P&gt;&lt;P&gt;And since the contents of download_models.py have not changed on Linux 6.1.36_2.1.0, the same problem should occur.&lt;/P&gt;&lt;P&gt;I would like the link to be restored or the python file to be modified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the log when running the python file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Download file from &lt;A href="https://drive.google.com/uc?export=download&amp;amp;confirm=yTib&amp;amp;id=1VHM41B8bSr07loNtHlTbXr89670w3H9W" target="_blank"&gt;https://drive.google.com/uc?export=download&amp;amp;confirm=yTib&amp;amp;id=1VHM41B8bSr07loNtHlTbXr89670w3H9W&lt;/A&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 1705, in gzopen&lt;BR /&gt;t = cls.taropen(name, mode, fileobj, **kwargs)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 1682, in taropen&lt;BR /&gt;return cls(name, mode, fileobj, **kwargs)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 1542, in __init__&lt;BR /&gt;self.firstmember = self.next()&lt;BR /&gt;^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 2379, in next&lt;BR /&gt;raise e&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 2352, in next&lt;BR /&gt;tarinfo = self.tarinfo.fromtarfile(self)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 1122, in fromtarfile&lt;BR /&gt;buf = tarfile.fileobj.read(BLOCKSIZE)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/gzip.py", line 301, in read&lt;BR /&gt;return self._buffer.read(size)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/_compression.py", line 68, in readinto&lt;BR /&gt;data = self.read(len(byte_view))&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/gzip.py", line 499, in read&lt;BR /&gt;if not self._read_gzip_header():&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/gzip.py", line 468, in _read_gzip_header&lt;BR /&gt;last_mtime = _read_gzip_header(self._fp)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/gzip.py", line 428, in _read_gzip_header&lt;BR /&gt;raise BadGzipFile('Not a gzipped file (%r)' % magic)&lt;BR /&gt;gzip.BadGzipFile: Not a gzipped file (b'&amp;lt;h')&lt;/P&gt;&lt;P&gt;The above exception was the direct cause of the following exception:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/bin/eiq-examples-git/download_models.py", line 98, in &amp;lt;module&amp;gt;&lt;BR /&gt;download_all_models(model_dir, vela_dir)&lt;BR /&gt;File "/usr/bin/eiq-examples-git/download_models.py", line 86, in download_all_models&lt;BR /&gt;decompress(path, model_dir)&lt;BR /&gt;File "/usr/bin/eiq-examples-git/download_models.py", line 28, in decompress&lt;BR /&gt;tar = tarfile.open(path, "r:gz")&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 1652, in open&lt;BR /&gt;return func(name, filemode, fileobj, **kwargs)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.11/tarfile.py", line 1709, in gzopen&lt;BR /&gt;raise ReadError("not a gzip file") from e&lt;BR /&gt;tarfile.ReadError: not a gzip file&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 08:09:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-Machine-Learning-demo-python-script-download-Error/m-p/1739292#M214006</guid>
      <dc:creator>Ryo_Aoki</dc:creator>
      <dc:date>2023-10-13T08:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX Machine Learning demo python script download Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-Machine-Learning-demo-python-script-download-Error/m-p/1741256#M214185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202348"&gt;@Ryo_Aoki&lt;/a&gt;,&lt;/P&gt;
&lt;DIV&gt;I hope you are doing well&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Yes, you are right. The file is not there. I asked the developers about this situation. We received a response from them that, the customer can pass the models.py with their model since they are not able to provide those files. They added that they would change the section in the user guide.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I hope this information helps you.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Dhruvit Vasavada&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 11:01:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-Machine-Learning-demo-python-script-download-Error/m-p/1741256#M214185</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-10-17T11:01:32Z</dc:date>
    </item>
  </channel>
</rss>

