<?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 running a python scripts to use deep learning models in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/running-a-python-scripts-to-use-deep-learning-models/m-p/2058215#M234829</link>
    <description>&lt;P&gt;hi, I have trained a yolo model and an ocr model to detect and read something using webcam, in my pc I have a python script that I can run and the script open up the camera and use these models, but now I want to have this on my i.mx 8series board and so I need to install some libraries like ultralytics, but I don't know how ? I am a beginner and I have no idea what should I do and I wanted to know that if linux is installed on the board can I simply transfer the folder of my project into the board and run the python scripts?&lt;/P&gt;</description>
    <pubDate>Sat, 08 Mar 2025 07:47:16 GMT</pubDate>
    <dc:creator>si1234</dc:creator>
    <dc:date>2025-03-08T07:47:16Z</dc:date>
    <item>
      <title>running a python scripts to use deep learning models</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/running-a-python-scripts-to-use-deep-learning-models/m-p/2058215#M234829</link>
      <description>&lt;P&gt;hi, I have trained a yolo model and an ocr model to detect and read something using webcam, in my pc I have a python script that I can run and the script open up the camera and use these models, but now I want to have this on my i.mx 8series board and so I need to install some libraries like ultralytics, but I don't know how ? I am a beginner and I have no idea what should I do and I wanted to know that if linux is installed on the board can I simply transfer the folder of my project into the board and run the python scripts?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 07:47:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/running-a-python-scripts-to-use-deep-learning-models/m-p/2058215#M234829</guid>
      <dc:creator>si1234</dc:creator>
      <dc:date>2025-03-08T07:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: running a python scripts to use deep learning models</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/running-a-python-scripts-to-use-deep-learning-models/m-p/2058963#M234881</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247615"&gt;@si1234&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing very well.&lt;/P&gt;
&lt;P&gt;Is your issue trying to install the libraries?&lt;/P&gt;
&lt;P&gt;You can connect your board to Ethernet or wifi to a red with internet access and simply run the pip command as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ pip3 install ultralytics&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to install the library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know how it was, or clarify your exact issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 18:48:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/running-a-python-scripts-to-use-deep-learning-models/m-p/2058963#M234881</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2025-03-10T18:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: running a python scripts to use deep learning models</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/running-a-python-scripts-to-use-deep-learning-models/m-p/2059280#M234909</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you for your response! Yes, my issue is indeed with installing the required libraries. The Python script I am trying to run imports libraries like ultralytics, so I need to have them installed. However, I was informed that I cannot simply use pip install. Instead, I need to include the required libraries before building the Linux image (Yocto Project) for the board—specifically, by having the Python packages in .bb format and integrating them into the image build.&lt;BR /&gt;&lt;BR /&gt;Could you confirm if this is the correct approach, or if there is an alternative way to install the libraries?&lt;BR /&gt;&lt;BR /&gt;Best regards,</description>
      <pubDate>Tue, 11 Mar 2025 07:27:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/running-a-python-scripts-to-use-deep-learning-models/m-p/2059280#M234909</guid>
      <dc:creator>si1234</dc:creator>
      <dc:date>2025-03-11T07:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: running a python scripts to use deep learning models</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/running-a-python-scripts-to-use-deep-learning-models/m-p/2059808#M234946</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes pip install works with some libraries, but totally agree that working with Yocto, you should to add those libraries while you are compiling.&lt;/P&gt;
&lt;P&gt;You can add your custom layer with all the libraries you need or add in the local.conf file in Yocto.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, it appears there is a recipe &lt;A href="https://layers.openembedded.org/layerindex/recipe/404021/" target="_self"&gt;here:&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;under:&amp;nbsp;&lt;SPAN&gt;recipes-python/ultralytics/python3-ultralytics_8.1.45.bb&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 19:25:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/running-a-python-scripts-to-use-deep-learning-models/m-p/2059808#M234946</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2025-03-11T19:25:26Z</dc:date>
    </item>
  </channel>
</rss>

