xujiashuai/cv_mobilenet-v2_bad-image-detecting
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

cv_mobilenet-v2_bad-image-detecting on Ascend NPU

1. 简介

  • 模型来源: damo/cv_mobilenet-v2_bad-image-detecting
  • 架构: MobileNetV2 (custom width, 3-class classifier)
  • 参数量: 399,971
  • 任务: 不良图片检测 (3类)
  • 适配状态: SUCCESS
  • 适配时间: 2026-05-17

2. 验证环境

组件版本
torch2.9.0
torch-npu2.9.0.post1
CANN8.5.1
NPUAscend 910B4

3. 精度评测

指标数值
Cosine Similarity1.000000
Max Abs Error0.004929
是否满足要求是(< 1%)

4. 性能

指标数值
平均延迟4.63 ms
输出形状[1, 3]

5. 适配说明

使用自定义 MobileNetV2 架构(width_mult=0.5),从 checkpoint 反推各 InvertedResidual block 的 hidden channels。输入为 RGB 图像 (batch, 3, 224, 224)。

6. 推理输出证据

Model: damo/cv_mobilenet-v2_bad-image-detecting
Output shape: [1, 3]
Latency: 4.63ms
Cosine Similarity: 1.000000
Max Abs Error: 0.004929

7. CPU vs NPU 精度对比

指标CPUNPU差异
Cosine Similarity1.01.0000000%
Max Abs Error-0.004929-