找回密码
 立即注册

QQ登录

只需一步,快速开始

打印 上一主题 下一主题
开启左侧

[M55M1] NPU Keyword Spotting Inference

[复制链接]
跳转到指定楼层
楼主
admin 发表于 昨天 13:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Application
This example code uses M55M1 NPU to demonstrate machine learning keyword spotting on the Zephyr platform.
BSP Version
M55M1_Series_BSP_CMSIS_V3.01.003
Hardware
NuMaker-X-M55M1D

This example demonstrates one keyword spotting (KWS) inference application that recognizes the presence of a keyword in a recording on Nuvoton's Ethos-U NPU platform. Its source comes from Arm’s ML embedded evaluation kit/Keyword Spotting example, which has more information on the keyword spotting application.

This example mainly consists of:

  • Recording audio clip through digital microphone (DMIC)
  • Running keyword spotting inference using the TensorFlow Lite Micro framework and the Ethos-U NPU. This will involve three steps:
    • Preprocess recorded audio clip to specified input tensor format for inference.
    • Run keyword spotting inference.
    • Postprocess output tensor format usable by external applications.

This example runs a model DS-CNN Medium INT8 that has been downloaded from the Arm Model Zoo. Then this model is optimized using the Vela compiler to be runnable and accelerated on the Ethos-U NPU platform.

Vela takes a .tflite file as input and produces another .tflite file as output, where the operators supported by Ethos-U have been replaced by an Ethos-U custom operator. In an ideal case the complete model network would be replaced by a single Ethos-U custom operator.

You can download the sample code at EC_M55M1_Zephyr_ML_KWS_V1.00.


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 顶 踩
牛卧堂
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

新唐MCU