xujiashuai/timm-cv_resnet50d.gluon_in1k
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

resnet50d.gluon_in1k on Ascend NPU

1. 简介

  • 模型来源: timm/resnet50d.gluon_in1k
  • 架构: ResNet-50 (Gluon-D (deep stem))
  • 参数量: ~25.6M
  • 任务: Image Classification (ImageNet-1K, 1000类)
  • 适配状态: SUCCESS

2. 验证环境

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

3. 推理脚本

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

4. 推理输出证据

模型: cv_resnet50d.gluon_in1k
设备: npu:0
精度: float32
------------------------------------------------------------
权重加载完成

--- CPU 推理 ---
输出形状: [1, 1000]
Logits 前5个: [-1.0614568  -0.24489401 -0.613368    0.09714948  0.8675443 ]
是否有 NaN: False
预测类别: 591

--- NPU 推理 (npu:0) ---
输出形状: [1, 1000]
Logits 前5个: [-1.0616417  -0.24496754 -0.61335903  0.09731174  0.867788  ]
是否有 NaN: False
预测类别: 591

--- 精度对比 ---
Cosine Similarity: 1.000000
Max Abs Error: 0.001875

--- 性能基准 ---
平均延迟: 5.29 ms (10轮)

✓ 推理完成

5. CPU vs NPU 精度对比

指标数值
Cosine Similarity1.000000
Max Abs Error0.001875
预测类别一致是 (591)

6. 性能参考

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