<?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: How to deploy YOLO8 on IMX8MP？ in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2018303#M232262</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Zhiming,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Thank you for your reply!&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I am using ultralytics_yolov8.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;&lt;A href="https://github.com/DeGirum/ultralytics_yolov8" target="_blank"&gt;https://github.com/DeGirum/ultralytics_yolov8&lt;/A&gt;&lt;BR /&gt;branch:master&lt;BR /&gt;commit 75cab2e0c68723d4344c69a3bcd85265a582ab3d&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hwang@E480:~/git/imx8mp/cyberbee/NFS/gst/ultralytics_yolov8$ yolo export model=yolov8n.pt imgsz=640 format=tflite int8 separate_outputs=True&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/local/bin/yolo", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;sys.exit(entrypoint())&lt;BR /&gt;File "/home/xhwang/.local/lib/python3.8/site-packages/ultralytics/cfg/__init__.py", line 903, in entrypoint&lt;BR /&gt;check_dict_alignment(full_args_dict, overrides)&lt;BR /&gt;File "/home/xhwang/.local/lib/python3.8/site-packages/ultralytics/cfg/__init__.py", line 485, in check_dict_alignment&lt;BR /&gt;raise SyntaxError(string + CLI_HELP_MSG) from e&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;SyntaxError: 'separate_outputs' is not a valid YOLO argument.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Arguments received: ['yolo', 'export', 'model=yolov8n.pt', 'imgsz=640', 'format=tflite', 'int8', 'separate_outputs=True']. Ultralytics 'yolo' commands use the following syntax:&lt;/P&gt;&lt;P&gt;yolo TASK MODE ARGS&lt;/P&gt;&lt;P&gt;Where TASK (optional) is one of {'pose', 'detect', 'segment', 'obb', 'classify'}&lt;BR /&gt;MODE (required) is one of {'track', 'val', 'export', 'benchmark', 'train', 'predict'}&lt;BR /&gt;ARGS (optional) are any number of custom 'arg=value' pairs like 'imgsz=320' that override defaults.&lt;BR /&gt;See all ARGS at &lt;A href="https://docs.ultralytics.com/usage/cfg" target="_blank"&gt;https://docs.ultralytics.com/usage/cfg&lt;/A&gt; or with 'yolo cfg'&lt;/P&gt;&lt;P&gt;1. Train a detection model for 10 epochs with an initial learning_rate of 0.01&lt;BR /&gt;yolo train data=coco8.yaml model=yolo11n.pt epochs=10 lr0=0.01&lt;/P&gt;&lt;P&gt;2. Predict a YouTube video using a pretrained segmentation model at image size 320:&lt;BR /&gt;yolo predict model=yolo11n-seg.pt source='&lt;A href="https://youtu.be/LNwODJXcvt4" target="_blank"&gt;https://youtu.be/LNwODJXcvt4&lt;/A&gt;' imgsz=320&lt;/P&gt;&lt;P&gt;3. Val a pretrained detection model at batch-size 1 and image size 640:&lt;BR /&gt;yolo val model=yolo11n.pt data=coco8.yaml batch=1 imgsz=640&lt;/P&gt;&lt;P&gt;4. Export a YOLO11n classification model to ONNX format at image size 224 by 128 (no TASK required)&lt;BR /&gt;yolo export model=yolo11n-cls.pt format=onnx imgsz=224,128&lt;/P&gt;&lt;P&gt;5. Streamlit real-time webcam inference GUI&lt;BR /&gt;yolo streamlit-predict&lt;/P&gt;&lt;P&gt;6. Ultralytics solutions usage&lt;BR /&gt;yolo solutions count or in ['heatmap', 'queue', 'speed', 'workout', 'analytics', 'trackzone'] source="path/to/video/file.mp4"&lt;/P&gt;&lt;P&gt;7. Run special commands:&lt;BR /&gt;yolo help&lt;BR /&gt;yolo checks&lt;BR /&gt;yolo version&lt;BR /&gt;yolo settings&lt;BR /&gt;yolo copy-cfg&lt;BR /&gt;yolo cfg&lt;BR /&gt;yolo solutions help&lt;/P&gt;&lt;P&gt;Docs: &lt;A href="https://docs.ultralytics.com" target="_blank"&gt;https://docs.ultralytics.com&lt;/A&gt;&lt;BR /&gt;Solutions: &lt;A href="https://docs.ultralytics.com/solutions/" target="_blank"&gt;https://docs.ultralytics.com/solutions/&lt;/A&gt;&lt;BR /&gt;Community: &lt;A href="https://community.ultralytics.com" target="_blank"&gt;https://community.ultralytics.com&lt;/A&gt;&lt;BR /&gt;GitHub: &lt;A href="https://github.com/ultralytics/ultralytics" target="_blank"&gt;https://github.com/ultralytics/ultralytics&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joshua&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2024 05:14:51 GMT</pubDate>
    <dc:creator>Joshua2</dc:creator>
    <dc:date>2024-12-23T05:14:51Z</dc:date>
    <item>
      <title>How to deploy YOLO8 on IMX8MP？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2018274#M232257</link>
      <description>&lt;P&gt;Hi ，&lt;/P&gt;&lt;P&gt;HW: imx8mp-evk.&lt;BR /&gt;SW: LF_v5.10.72-2.2.0_images_IMX8MPEVK&lt;BR /&gt;PC: ubuntu20.04&lt;BR /&gt;Reference document: i.MX_Machine_Learning_User's_Guide.pdf&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We are deploying YOLO8 on IMX8MP, but we are encountering issues.&lt;BR /&gt;URL: &lt;A href="https://github.com/NXP/eiq-model-zoo.git" target="_blank"&gt;https://github.com/NXP/eiq-model-zoo.git&lt;/A&gt;&lt;BR /&gt;branch: main&lt;BR /&gt;commit: 58c2b002e9f64f39b8c43e896e00446298544a33&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We refer to the README.md of eiq-model-zoo/tasks/visit/object-detection/yolov8&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1) The script 'bash recipe. sh' was not found.&lt;BR /&gt;2）‘’yolo export model=yolov8n.pt imgsz=640 format=tflite int8 separate_outputs=True”, an error was reported.&lt;/P&gt;&lt;P&gt;///&lt;/P&gt;&lt;P&gt;imx8mp@E480:~/git/imx8mp/cyberbee/NFS/gst/ultralytics_yolov8$ yolo export model=yolov8n.pt imgsz=640 format=tflite int8 separate_outputs=True&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/local/bin/yolo", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;sys.exit(entrypoint())&lt;BR /&gt;File "/home/xhwang/.local/lib/python3.8/site-packages/ultralytics/cfg/__init__.py", line 903, in entrypoint&lt;BR /&gt;check_dict_alignment(full_args_dict, overrides)&lt;BR /&gt;File "/home/xhwang/.local/lib/python3.8/site-packages/ultralytics/cfg/__init__.py", line 485, in check_dict_alignment&lt;BR /&gt;raise SyntaxError(string + CLI_HELP_MSG) from e&lt;BR /&gt;SyntaxError: 'separate_outputs' is not a valid YOLO argument.&lt;/P&gt;&lt;P&gt;Arguments received: ['yolo', 'export', 'model=yolov8n.pt', 'imgsz=640', 'format=tflite', 'int8', 'separate_outputs=True']. Ultralytics 'yolo' commands use the following syntax:&lt;/P&gt;&lt;P&gt;yolo TASK MODE ARGS&lt;/P&gt;&lt;P&gt;''''''''''''''''''''''''&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joshua&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 03:11:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2018274#M232257</guid>
      <dc:creator>Joshua2</dc:creator>
      <dc:date>2024-12-23T03:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy YOLO8 on IMX8MP？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2018293#M232260</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Please download from here &lt;A href="https://github.com/DeGirum/ultralytics_yolov8" target="_blank"&gt;https://github.com/DeGirum/ultralytics_yolov8&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="markdown-heading" dir="auto"&gt;
&lt;H4 class="heading-element" dir="auto" tabindex="-1"&gt;How to get model&lt;/H4&gt;
&lt;A id="user-content-how-to-get-model" class="anchor" href="https://github.com/NXP/eiq-model-zoo/tree/main/tasks/vision/object-detection/yolov8#how-to-get-model" aria-label="Permalink: How to get model" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;OL dir="auto" start="0"&gt;
&lt;LI&gt;Note, that model is released under AGPL 3.0 license&lt;/LI&gt;
&lt;LI&gt;visit&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/DeGirum/ultralytics_yolov8" target="_blank"&gt;DeGirum's GitHub repository&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and clone it&lt;/LI&gt;
&lt;LI&gt;install all necessary dependencies&lt;/LI&gt;
&lt;LI&gt;run following command to create fully quantized int8 model with separate outputs&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"&gt;
&lt;PRE&gt;yolo &lt;SPAN class="pl-k"&gt;export&lt;/SPAN&gt; model=yolov8n.pt imgsz=640 format=tflite int8 separate_outputs=True&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;OL dir="auto" start="4"&gt;
&lt;LI&gt;The TFLite model file for i.MX 8M Plus and for i.MX 93 is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;yolov8n_full_integer_quant.tflite&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;located in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;yolov8n_saved_model&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;directory.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 04:18:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2018293#M232260</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-12-23T04:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy YOLO8 on IMX8MP？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2018303#M232262</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Zhiming,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Thank you for your reply!&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I am using ultralytics_yolov8.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;&lt;A href="https://github.com/DeGirum/ultralytics_yolov8" target="_blank"&gt;https://github.com/DeGirum/ultralytics_yolov8&lt;/A&gt;&lt;BR /&gt;branch:master&lt;BR /&gt;commit 75cab2e0c68723d4344c69a3bcd85265a582ab3d&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hwang@E480:~/git/imx8mp/cyberbee/NFS/gst/ultralytics_yolov8$ yolo export model=yolov8n.pt imgsz=640 format=tflite int8 separate_outputs=True&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/local/bin/yolo", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;sys.exit(entrypoint())&lt;BR /&gt;File "/home/xhwang/.local/lib/python3.8/site-packages/ultralytics/cfg/__init__.py", line 903, in entrypoint&lt;BR /&gt;check_dict_alignment(full_args_dict, overrides)&lt;BR /&gt;File "/home/xhwang/.local/lib/python3.8/site-packages/ultralytics/cfg/__init__.py", line 485, in check_dict_alignment&lt;BR /&gt;raise SyntaxError(string + CLI_HELP_MSG) from e&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;SyntaxError: 'separate_outputs' is not a valid YOLO argument.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Arguments received: ['yolo', 'export', 'model=yolov8n.pt', 'imgsz=640', 'format=tflite', 'int8', 'separate_outputs=True']. Ultralytics 'yolo' commands use the following syntax:&lt;/P&gt;&lt;P&gt;yolo TASK MODE ARGS&lt;/P&gt;&lt;P&gt;Where TASK (optional) is one of {'pose', 'detect', 'segment', 'obb', 'classify'}&lt;BR /&gt;MODE (required) is one of {'track', 'val', 'export', 'benchmark', 'train', 'predict'}&lt;BR /&gt;ARGS (optional) are any number of custom 'arg=value' pairs like 'imgsz=320' that override defaults.&lt;BR /&gt;See all ARGS at &lt;A href="https://docs.ultralytics.com/usage/cfg" target="_blank"&gt;https://docs.ultralytics.com/usage/cfg&lt;/A&gt; or with 'yolo cfg'&lt;/P&gt;&lt;P&gt;1. Train a detection model for 10 epochs with an initial learning_rate of 0.01&lt;BR /&gt;yolo train data=coco8.yaml model=yolo11n.pt epochs=10 lr0=0.01&lt;/P&gt;&lt;P&gt;2. Predict a YouTube video using a pretrained segmentation model at image size 320:&lt;BR /&gt;yolo predict model=yolo11n-seg.pt source='&lt;A href="https://youtu.be/LNwODJXcvt4" target="_blank"&gt;https://youtu.be/LNwODJXcvt4&lt;/A&gt;' imgsz=320&lt;/P&gt;&lt;P&gt;3. Val a pretrained detection model at batch-size 1 and image size 640:&lt;BR /&gt;yolo val model=yolo11n.pt data=coco8.yaml batch=1 imgsz=640&lt;/P&gt;&lt;P&gt;4. Export a YOLO11n classification model to ONNX format at image size 224 by 128 (no TASK required)&lt;BR /&gt;yolo export model=yolo11n-cls.pt format=onnx imgsz=224,128&lt;/P&gt;&lt;P&gt;5. Streamlit real-time webcam inference GUI&lt;BR /&gt;yolo streamlit-predict&lt;/P&gt;&lt;P&gt;6. Ultralytics solutions usage&lt;BR /&gt;yolo solutions count or in ['heatmap', 'queue', 'speed', 'workout', 'analytics', 'trackzone'] source="path/to/video/file.mp4"&lt;/P&gt;&lt;P&gt;7. Run special commands:&lt;BR /&gt;yolo help&lt;BR /&gt;yolo checks&lt;BR /&gt;yolo version&lt;BR /&gt;yolo settings&lt;BR /&gt;yolo copy-cfg&lt;BR /&gt;yolo cfg&lt;BR /&gt;yolo solutions help&lt;/P&gt;&lt;P&gt;Docs: &lt;A href="https://docs.ultralytics.com" target="_blank"&gt;https://docs.ultralytics.com&lt;/A&gt;&lt;BR /&gt;Solutions: &lt;A href="https://docs.ultralytics.com/solutions/" target="_blank"&gt;https://docs.ultralytics.com/solutions/&lt;/A&gt;&lt;BR /&gt;Community: &lt;A href="https://community.ultralytics.com" target="_blank"&gt;https://community.ultralytics.com&lt;/A&gt;&lt;BR /&gt;GitHub: &lt;A href="https://github.com/ultralytics/ultralytics" target="_blank"&gt;https://github.com/ultralytics/ultralytics&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joshua&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 05:14:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2018303#M232262</guid>
      <dc:creator>Joshua2</dc:creator>
      <dc:date>2024-12-23T05:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy YOLO8 on IMX8MP？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2018783#M232295</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;The code has changed, you can refer below commit. I think&amp;nbsp;&lt;STRONG&gt;yolo export model=yolov8n.pt imgsz=640 format=tflite int8&lt;/STRONG&gt; is enough.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_0-1735007812185.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/317124iE8F215E6C80862FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_0-1735007812185.png" alt="Zhiming_Liu_0-1735007812185.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 02:37:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2018783#M232295</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-12-24T02:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy YOLO8 on IMX8MP？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2019178#M232335</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Zhiming，&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you very much for your help. The conversion issue has been resolved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I have encountered a new problem now, IMX8MP inference is very very slow!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example program running:&lt;BR /&gt;ultralytics_yolov8/examples/YOLOv8-ONNXRuntime-CPP&lt;BR /&gt;Model conversion:&lt;BR /&gt;yolo export model=yolov8n.pt imgsz=640 format=onnx int8&lt;BR /&gt;compile:&lt;BR /&gt;mkdir build &amp;amp;&amp;amp; cd build; cmake -D AARCH=TRUE ..; make&lt;BR /&gt;result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;params.cudaEnable 0&lt;BR /&gt;[YOLO_V8(CUDA)]: Cuda warm-up cost 2205.53 ms.&lt;BR /&gt;start Detector&lt;BR /&gt;img_path ../bus.jpg&lt;BR /&gt;[YOLO_V8(CUDA)]: 96.488ms pre-process, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;2129.51ms inference&lt;/STRONG&gt;&lt;/FONT&gt;, 17.911ms post-process.&lt;BR /&gt;res 4&lt;BR /&gt;label person 0.87 0.870000&lt;BR /&gt;label person 0.86 0.860000&lt;BR /&gt;label bus 0.86 0.860000&lt;BR /&gt;label person 0.82 0.820000&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;How can I optimize it? How to use GPU or NPU acceleration?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Joshua&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2024 02:29:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2019178#M232335</guid>
      <dc:creator>Joshua2</dc:creator>
      <dc:date>2024-12-25T02:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy YOLO8 on IMX8MP？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2019230#M232346</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;To appoint hardware accelerators , please refer&amp;nbsp;2.6.5 Using hardware accelerators in this guide.&lt;A href="https://www.nxp.com/docs/en/user-guide/IMX-MACHINE-LEARNING-UG.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/IMX-MACHINE-LEARNING-UG.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2024 05:55:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2019230#M232346</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-12-25T05:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy YOLO8 on IMX8MP？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2019515#M232384</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Reference Documents&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.1 ONNX Runtime software stack&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ONNX Runtime only supports CPU, which may be the reason for being too slow.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried using the TF model and referred to "ultralytics_yolov5/examples/YOLOv8OpenCV-int8-tflite Python",&lt;BR /&gt;1. Default interface:&lt;BR /&gt;interpreter = tflite.Interpreter(model_path=self.tflite_model)&lt;BR /&gt;##########Inference time: 1267.3 ms&lt;BR /&gt;2. Multi threaded optimization&lt;BR /&gt;eter = tflite.Interpreter(model_path=self.tflite_model, experimental_delegates=None, num_threads=4)&lt;BR /&gt;##########Inference time: 513.8 ms&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;3. How do I configure NPU and GPU inference?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Joshua&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 05:14:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2019515#M232384</guid>
      <dc:creator>Joshua2</dc:creator>
      <dc:date>2024-12-26T05:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy YOLO8 on IMX8MP？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2019974#M232423</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Zhiming,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;The problem with YOLO's reasoning is still unresolved and we need your help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;IMAGE:&amp;nbsp;LF_v6.6.52-2.2.0_images_IMX8MPEVK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;I tried using NPU inference, but the speed was very slow. The CPU takes about 50ms, but the NPU requires 3500ms. Is there a problem with the configuration?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NPU:&lt;/P&gt;&lt;P&gt;python3 main.py --model yolov8n_full_integer_quant.tflite --img image.jpg --conf-thres 0.5 --iou-thres 0.5&lt;BR /&gt;INFO: Vx delegate: allowed_cache_mode set to 0.&lt;BR /&gt;INFO: Vx delegate: device num set to 0.&lt;BR /&gt;INFO: Vx delegate: allowed_builtin_code set to 0.&lt;BR /&gt;INFO: Vx delegate: error_during_init set to 0.&lt;BR /&gt;INFO: Vx delegate: error_during_prepare set to 0.&lt;BR /&gt;INFO: Vx delegate: error_during_invoke set to 0.&lt;BR /&gt;W [HandleLayoutInfer:332]Op 162: default layout inference pass.&lt;BR /&gt;W [HandleLayoutInfer:332]Op 162: default layout inference pass.&lt;BR /&gt;W [HandleLayoutInfer:332]Op 162: default layout inference pass.&lt;BR /&gt;W [HandleLayoutInfer:332]Op 162: default layout inference pass.&lt;BR /&gt;W [HandleLayoutInfer:332]Op 162: default layout inference pass.&lt;BR /&gt;W [HandleLayoutInfer:332]Op 162: default layout inference pass.&lt;BR /&gt;W [HandleLayoutInfer:332]Op 162: default layout inference pass.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;##########Inference time: 3446.0 ms&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;img_width 256 img_height 256&lt;BR /&gt;[[[ 2.6509 15.906 15.906 ... 145.8 178.94 243.89]&lt;BR /&gt;[ 7.9528 11.929 11.929 ... 198.82 185.57 189.54]&lt;BR /&gt;[ 6.6274 33.137 35.788 ... 214.73 145.8 59.646]&lt;BR /&gt;...&lt;BR /&gt;[ 0 0 0 ... 0 0 0]&lt;BR /&gt;[ 0 0 0 ... 0 0 0]&lt;BR /&gt;[ 0 0 0 ... 0 0 0]]]&lt;BR /&gt;[32.7551794052124, 240.449116230011, 771.6738510131836, 469.714515209198] 0.8750193 5&lt;BR /&gt;[57.9184627532959, 394.2247134447098, 162.1633529663086, 508.8573968410492] 0.7973549 0&lt;BR /&gt;[675.8167366683483, 455.7349169254303, 134.20414835214615, 419.387948513031] 0.7507562 0&lt;BR /&gt;[222.8777128458023, 402.6124691963196, 123.0204713344574, 447.3471450805664] 0.6316708 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CPU:&lt;/P&gt;&lt;P&gt;python3 main.py --model yolov8n_full_integer_quant.tflite --img image.jpg --conf-thres 0.5 --iou-thres 0.5&lt;BR /&gt;INFO: Created TensorFlow Lite XNNPACK delegate for CPU.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;##########Inference time: 48.3 ms&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;img_width 256 img_height 256&lt;BR /&gt;[[[ 2.6509 15.906 15.906 ... 143.15 180.26 245.21]&lt;BR /&gt;[ 6.6274 11.929 11.929 ... 193.52 185.57 189.54]&lt;BR /&gt;[ 6.6274 33.137 35.788 ... 212.08 132.55 58.321]&lt;BR /&gt;...&lt;BR /&gt;[ 0 0 0 ... 0 0 0]&lt;BR /&gt;[ 0 0 0 ... 0 0 0]&lt;BR /&gt;[ 0 0 0 ... 0 0 0]]]&lt;BR /&gt;[32.7551794052124, 240.449116230011, 771.6738510131836, 469.714515209198] 0.8750193 5&lt;BR /&gt;[57.9184627532959, 394.2247134447098, 162.1633529663086, 508.8573968410492] 0.7973549 0&lt;BR /&gt;[678.6126579344273, 455.7349169254303, 128.61230581998825, 419.387948513031] 0.7507562 0&lt;BR /&gt;[225.67363411188126, 402.6124691963196, 117.4286288022995, 447.3471450805664] 0.6316708 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joshua&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 08:20:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2019974#M232423</guid>
      <dc:creator>Joshua2</dc:creator>
      <dc:date>2024-12-27T08:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy YOLO8 on IMX8MP？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2020253#M232447</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Please appoint&amp;nbsp;&lt;SPAN&gt;experimental_delegates="/usr/lib/libvx_delegate.so"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 02:42:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-deploy-YOLO8-on-IMX8MP/m-p/2020253#M232447</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-12-30T02:42:10Z</dc:date>
    </item>
  </channel>
</rss>

