xujiashuai/inception_v3_tf
模型介绍文件和版本Pull Requests讨论分析
下载使用量0

inception_v3.tf_in1k on Ascend NPU

1. 简介

本文档记录 timm/inception_v3.tf_in1k (Inception-V3 TF-style) 在昇腾 NPU 上的适配验证结果。

  • 模型来源: timm/inception_v3.tf_in1k
  • 架构: Inception-V3 with TensorFlow-style preprocessing
  • 参数量: ~27M
  • 任务: Image Classification (图像分类, ImageNet-1K, 1000类)
  • 适配状态: SUCCESS
  • 适配时间: 2026-05-18

2. 验证环境

组件版本
torch2.9.0
torch-npu2.9.0.post1
timm1.0.27
CANN8.5.1
  • NPU: Ascend 910B4
  • 系统: Linux aarch64

3. 推理脚本

source setup_env.sh && /usr/local/python3.11.14/bin/python3 deliverables/inception_v3_tf/inference.py

4. 推理输出证据

=== inception_v3.tf_in1k ===
Dtype: torch.float32

--- CPU 推理 ---
输出形状: torch.Size([1, 1000])
输出前5值: [0.0324, 0.6967, 0.6080, 0.1717, 1.9174]
推理时间: 293.99ms

--- NPU 推理 ---
输出形状: torch.Size([1, 1000])
输出前5值: [0.0311, 0.6968, 0.6093, 0.1732, 1.9153]
推理时间: 10.70ms

=== 精度对比 ===
Cosine Similarity: 0.999999
Max Absolute Error: 0.007554
Relative Error: 0.004850

✓ NPU 适配通过

5. 性能参考

指标数值
NPU 平均延迟10.70 ms
CPU 推理时间293.99 ms

6. CPU vs NPU 精度对比

指标数值
Cosine Similarity0.999999
Max Abs Error0.007554
Relative Error0.004850
是否满足要求是(cosine≈1.0)

7. 评测材料

材料文件说明
推理脚本inference.py独立可运行的 NPU 推理代码
评测报告report.json结构化评测结果

8. 注意事项

  • 使用 timm 库的 inception_v3.tf_in1k 模型定义
  • 权重通过 timm 从 HuggingFace Hub 下载(hf-mirror)
  • 输入: 随机 299x299 RGB 图像
  • 输出: 1000 类 ImageNet 分类 logits

贡献者: xujiashuai 参赛赛道: 模型适配赛道 提交时间: 2026-05-18