xujiashuai/timm-tf_efficientnet_b6.ap_in1k
模型介绍文件和版本Pull Requests讨论分析

tf_efficientnet_b6.ap_in1k on Ascend NPU

1. 简介

本文档记录 timm/tf_efficientnet_b6.ap_in1k (TF EfficientNet B6, AP augmentation) 在昇腾 NPU 上的适配验证结果。

  • 模型来源: timm/tf_efficientnet_b6.ap_in1k
  • 架构: TF EfficientNet B6 (高效卷积架构)
  • 任务: Image Classification (图像分类, ImageNet-1K, 1000类)
  • 输入分辨率: 528x528
  • 适配状态: SUCCESS
  • 适配时间: 2026-05-18

2. 验证环境

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

3. 推理脚本

python inference.py --device npu:0 --dtype float32

4. 推理输出证据

模型: tf_efficientnet_b6.ap_in1k
设备: npu:0
精度: float32

--- CPU 推理 ---
输出形状: [1, 1000]
输出前5值: [-1.789428472518921, 0.6659310460090637, 0.70231693983078, -0.2728187143802643, 1.332960844039917]
推理时间: 1009.68ms

--- NPU 推理 (npu:0) ---
输出形状: [1, 1000]
输出前5值: [-1.789705514907837, 0.6658288836479187, 0.7021231651306152, -0.2728429138660431, 1.332998514175415]
推理时间: 23.92ms

=== 精度对比 ===
Cosine Similarity: 1.000000
Max Absolute Error: 0.001032
Relative Error: 0.001270

✓ NPU 适配通过

5. 性能参考

指标数值
平均延迟23.68 ms
测试轮数10

6. CPU vs NPU 精度对比

指标数值
Cosine Similarity1.000000
Max Absolute Error0.001032
精度误差< 0.5%
是否满足要求是(> 0.99)

7. 评测材料

材料文件说明
推理脚本inference.py独立可运行的 NPU 推理代码

8. Agent Skill

本模型适配由 vision-encoder-npu-adapt Agent Skill 自动完成,包含环境检查、模型加载、NPU 迁移、精度验证和性能基准测试。

9. 注意事项

  • 使用 timm 库的 tf_efficientnet_b6.ap_in1k 模型定义
  • 权重通过 timm 内置机制从 HuggingFace Mirror 加载
  • 输入: 随机 528x528 RGB 图像
  • 输出: 1000 类 ImageNet 分类 logits

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

下载使用量0