<?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>MBDT for VISIONのトピックS32V234 Matlab Vision Toolbox: Neural network without images as input?</title>
    <link>https://community.nxp.com/t5/MBDT-for-VISION/S32V234-Matlab-Vision-Toolbox-Neural-network-without-images-as/m-p/890954#M170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am currently evaluating on how the S32V234 can be used for running neural networks. The provided CNN Matlab examples work pretty well on my dev-board. What I could not find was an example for a neural network that does not use an image as the input (but e.g. numbers), so I wonder what the recommended way is to use such networks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can I just use any neural network in Matlab and compile it for the S32V234 with nxpvt_codegen(…)?&lt;/LI&gt;&lt;LI&gt;Can I use any layers/neural network types I want?&lt;/LI&gt;&lt;LI&gt;Is there example code I overlooked?&lt;/LI&gt;&lt;LI&gt;Is there a better way to do this, other than Matlab?&lt;/LI&gt;&lt;LI&gt;If I do not use any of the nxpvt.apexcv.xxx commands the compiled program will solely run on the ARM processor?&lt;/LI&gt;&lt;LI&gt;Does the Vision Toolbox support the integrated Vivante GPU in any way?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2019 15:00:21 GMT</pubDate>
    <dc:creator>fixed-term_luka</dc:creator>
    <dc:date>2019-04-24T15:00:21Z</dc:date>
    <item>
      <title>S32V234 Matlab Vision Toolbox: Neural network without images as input?</title>
      <link>https://community.nxp.com/t5/MBDT-for-VISION/S32V234-Matlab-Vision-Toolbox-Neural-network-without-images-as/m-p/890954#M170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am currently evaluating on how the S32V234 can be used for running neural networks. The provided CNN Matlab examples work pretty well on my dev-board. What I could not find was an example for a neural network that does not use an image as the input (but e.g. numbers), so I wonder what the recommended way is to use such networks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can I just use any neural network in Matlab and compile it for the S32V234 with nxpvt_codegen(…)?&lt;/LI&gt;&lt;LI&gt;Can I use any layers/neural network types I want?&lt;/LI&gt;&lt;LI&gt;Is there example code I overlooked?&lt;/LI&gt;&lt;LI&gt;Is there a better way to do this, other than Matlab?&lt;/LI&gt;&lt;LI&gt;If I do not use any of the nxpvt.apexcv.xxx commands the compiled program will solely run on the ARM processor?&lt;/LI&gt;&lt;LI&gt;Does the Vision Toolbox support the integrated Vivante GPU in any way?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 15:00:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MBDT-for-VISION/S32V234-Matlab-Vision-Toolbox-Neural-network-without-images-as/m-p/890954#M170</guid>
      <dc:creator>fixed-term_luka</dc:creator>
      <dc:date>2019-04-24T15:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: S32V234 Matlab Vision Toolbox: Neural network without images as input?</title>
      <link>https://community.nxp.com/t5/MBDT-for-VISION/S32V234-Matlab-Vision-Toolbox-Neural-network-without-images-as/m-p/890955#M171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/fixed-term.lukas.ebenstein@de.bosch.com" rel="noopener noreferrer" target="_blank"&gt;fixed-term.lukas.ebenstein@de.bosch.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your feedback. In regards, with your questions, please let me try to provide some insights. I might not have a final answer to all of them but if further clarifications are needed we can continue the discussions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Q1: Can I just use any neural network in Matlab and compile it for the S32V234 with nxpvt_codegen(…)?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Since NXP S32V processor is based on Cortex A53 ARM, you need to consider the &lt;A href="https://github.com/ARM-software/ComputeLibrary" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;ARM Compute Library&lt;/A&gt; support in MATLAB for code generation. &lt;A href="https://www.mathworks.com/help/coder/ug/networks-and-layers-supported-for-c-code-generation.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;Here &lt;/A&gt;is a link with the up to date information about the CNN/Deep Learning code generation support for ARM cores.&lt;/P&gt;&lt;P&gt;The list is available here:&amp;nbsp;&lt;A href="https://www.mathworks.com/help/coder/ug/networks-and-layers-supported-for-c-code-generation.html#mw_e768ac08-f527-43b0-a8d2-532eb41b0bd6" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;https://www.mathworks.com/help/coder/ug/networks-and-layers-supported-for-c-code-generation.html#mw_e768ac08-f527-43b0-a8d2-532eb41b0bd6&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The networks supported on S32V are: &lt;A href="https://www.mathworks.com/help/deeplearning/ref/alexnet.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;AlexNet&lt;/A&gt;, &lt;A href="https://www.mathworks.com/help/deeplearning/ref/googlenet.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;GoogLeNet&lt;/A&gt;, &lt;A href="https://www.mathworks.com/help/deeplearning/ref/inceptionv3.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;Inception-v3&lt;/A&gt;, &lt;A href="https://www.mathworks.com/help/deeplearning/ref/resnet50.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;ResNet-50&lt;/A&gt;, &lt;A href="https://www.mathworks.com/help/deeplearning/ref/resnet101.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;ResNet-101&lt;/A&gt;, &lt;A href="https://www.mathworks.com/help/deeplearning/ref/squeezenet.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;SqueezeNet&lt;/A&gt;, &lt;A href="https://www.mathworks.com/help/deeplearning/ref/vgg16.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;VGG-16&lt;/A&gt; and &lt;A href="https://www.mathworks.com/help/deeplearning/ref/vgg19.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;VGG-19&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Q2: Can I use any layers/neural network types I want?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can use most of them. The complete list can be found on the MathWorks site here:&amp;nbsp;&lt;A href="https://www.mathworks.com/help/coder/ug/networks-and-layers-supported-for-c-code-generation.html#mw_1c8fc5c7-98bf-440a-b62f-af4398bff314" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;https://www.mathworks.com/help/coder/ug/networks-and-layers-supported-for-c-code-generation.html#mw_1c8fc5c7-98bf-440a-b62f-af4398bff314&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also use MATLAB command prompt to get a list of layers with the command:&lt;/P&gt;&lt;PRE style="color: #404040; background: transparent; border: none;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_16.png"&gt;&lt;IMG alt="pastedImage_16.png" src="https://community.nxp.com/t5/image/serverpage/image-id/80928iD34C8E778D56AF50/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_16.png" /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Q3: Is there example code I overlooked?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In NXP Vision Toolbox, all examples are stored under &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;..\NXP_Vision_Toolbox_for_S32V234\examples&lt;/SPAN&gt; folder&lt;/P&gt;&lt;P&gt;Another very useful page is MathWorks &lt;A href="https://www.mathworks.com/help/deeplearning/getting-started-with-deep-learning-toolbox.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;Getting Started with Deep Learning Toolbox&lt;/A&gt; page where you can find more examples. Anyhow, keep in mind that NXP is focusing on Vision part, hence this is why you see only examples related with pictures/frames/videos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Q4: Is there a better way to do this, other than Matlab?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Not sure if&amp;nbsp;I'm fully understanding your question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;think that MATLAB provides one of the best approaches on the market: it provides the pre-trained CNN ready to be simulated, generate code, re-train, visualize.&lt;/P&gt;&lt;P&gt;MATLAB provides all the tools necessary to visualize the layers, design new networks from scratch, transfer learning and import/export between various frameworks like Caffe, Tensorflow, PyTorch, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP provides an additional framework to accelerate the CNN using APEX vision accelerators. If you need more information please contact your FAE/Sale representative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Q5: If I do not use any of the nxpvt.apexcv.xxx commands the compiled program will solely run on the ARM processor?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Q6: Does the Vision Toolbox support the integrated Vivante GPU in any way?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Short answer is No.&amp;nbsp;All the code that is generated by MATLAB is executed either on ARM or the APEX cores. To run on any other processing unit apart of ARM, our tool relies on existing drivers, classes and kernels provided by NXP Vision SDK. Unfortunately, Vision SDK does not support the GPU. If in the future that will change, then we are going to expose such functionality in MATLAB too via NXP Vision Toolbox with some commands like &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;nxpvt.gpu.xxx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Q7: What I could not find was an example for a neural network that does not use an image as the input (but e.g. numbers), so I wonder what the recommended way is to use such networks.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;We do not have such example, but i think we can find some on MathWorks website here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mathworks.com/help/deeplearning/examples/time-series-forecasting-using-deep-learning.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;https://www.mathworks.com/help/deeplearning/examples/time-series-forecasting-using-deep-learning.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mathworks.com/help/deeplearning/examples/sequence-to-sequence-regression-using-deep-learning.html" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;https://www.mathworks.com/help/deeplearning/examples/sequence-to-sequence-regression-using-deep-learning.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Typically we focus on Computer Vision related tasks but since the S32V is a ARM based platform i guess you can use it for any other jobs related with industrial, iot or automotive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you!&lt;/P&gt;&lt;P&gt;If you have further questions do not hesitate to contact us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:20:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MBDT-for-VISION/S32V234-Matlab-Vision-Toolbox-Neural-network-without-images-as/m-p/890955#M171</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2020-11-02T14:20:22Z</dc:date>
    </item>
  </channel>
</rss>

