跳到主要内容

MobileNet224 Full80

针对 COCO 数据集目标检测优化的 MobileNet 模型,支持 224x224 全分辨率及 80 个类别。

支持的处理器

  • SL1680
  • SL1640

性能

SyNAP

25.17ms
推理时间
66.28ms
初始化时间

Inference time is 26.63 ms on AOSP, 29.9 ms on ATV. Init-time is 643 ms on AOSP, 715 ms on ATV.

MobileNet224 Full80

模型概述

针对 COCO 数据集目标检测优化的 MobileNet 模型,支持 224x224 全分辨率和 80 个类别。

MobileNet224 Full80 模型专为 Synaptics Astra™ SL1680 processor NPU 和 SL1640 processor NPU 开发和优化。

模型特性

  • 模型类型: 目标检测
  • 输入尺寸: 224x224
  • 输出尺寸: 640x480

ℹ️ 信息: 此模型可直接在 Synaptics Astra Machina 开发板上使用。MobileNet224 Full80 的 NPU 优化版本已预装于 Astra SDK 镜像中。

在 Synaptics Astra SL1600 系列上部署

此模型针对 Synaptics Astra SL1680 处理器编译。您可以在搭载 SL1680 处理器的 Machina™ 开发套件上找到已预装的此模型。

您也可以在搭载 SL1640 处理器的 Machina™ 开发套件上找到针对 Synaptics Astra SL1640 处理器编译的同款模型。

Synaptics Astra Machina™ 是面向 Astra SL 系列高性能 IoT 处理器的模块化开发套件,集成了 Synaptics Veros™ 无线连接解决方案。了解更多信息,请点击此处

应用程序二进制文件

synap_cli_od 命令行应用程序可运行 MobileNet224 Full80 等目标检测模型。

输入:

  • 转换后的 synap 模型(.synap 扩展名)
  • 可选:检测对象的置信度阈值
  • 一张或多张图像(jpeg 或 png 格式)

输出:

  • 每张输入图像中检测到的对象列表,包括:
    • 边界框
    • 类别索引
    • 置信度分数

在 Astra SL1680 和 SL1640 上的命令行用法:

MODELS=/usr/share/synap/models/

cd $MODELS/object_detection/coco/model/mobilenet224_full80/mobilenet224_full80/mobilenet224_full80

synap_cli_od -m model.synap input_image.jpg

SL1680 上的示例输出:

Input image: input_image.jpg (w = 640, h = 480, c = 3)
Detection time: 25.17 ms
# Score Class Position Size Description
0 0.95 0 94,193 62,143 person

ℹ️ 信息: JPEG/PNG 输入图像由软件调整为网络输入张量尺寸。

💡注意: 请确保在模型转换期间定义输出格式。缺少格式详情可能会导致 "Failed to initialize detector" 等错误。

NPU 性能

处理器推理时间(ms)
SL168025.17
SL164052.98

优化和自定义模型

高级用户可能希望自定义源模型并为 Synaptics Astra NPU 重新编译。 请参阅自带模型章节以获取更多信息。

供参考,固件镜像中提供的 .synap 格式模型是使用以下 .yaml 设置为 Synaptics Astra NPU 编译的:

security:
secure: ${ENV:SYNAP_SECURITY_ENABLED}
file: ../../../../../security.yaml
outputs:
- dequantize: true
format: retinanet_boxes w_scale=640 h_scale=480 anchors=${FILE:../anchors.json}
- dequantize: true
format: per_class_confidence

许可证

源模型依据 Apache License 2.0 授权。

用于设备端部署的编译模型受 Synaptics Astra EULA 约束。

了解更多

相关模型