#+NPU
Model Name: resnet34.a1_in1k
Architecture: ResNet-34 (Residual Network with 34 layers)
Parameters: ~21.8M
Pretrained Dataset: ImageNet-1k (1.2M images, 1000 classes)
Task: Image Classification
Description: ResNet-34 with AutoAugment (a1) preprocessing, pretrained on ImageNet-1k. This model uses residual connections to enable training of deeper networks and applies AutoAugment learned augmentation policies during training for improved accuracy.
Target Platform: Ascend NPU (Huawei Atlas)
Runtime: torch_npu (Ascend PyTorch Plugin)
| Device | Latency | Throughput | Speedup vs CPU |
|---|---|---|---|
| NPU | 2.45 ms | 408 FPS | 1.23x |
| CPU | 3.01 ms | 332 FPS | 1.00x |
| Rank | NPU Class | NPU Prob | CPU Class | CPU Prob | Match |
|---|---|---|---|---|---|
| 1 | 259 | 0.8472 | 259 | 0.8471 | Yes |
| 2 | 281 | 0.0523 | 281 | 0.0524 | Yes |
| 3 | 282 | 0.0412 | 282 | 0.0411 | Yes |
| 4 | 288 | 0.0158 | 288 | 0.0159 | Yes |
| 5 | 285 | 0.0124 | 285 | 0.0123 | Yes |
Top-5 Prediction Match: 100%
| Attribute | Value |
|---|---|
| Status | SUCCESS |
| Pretrained Used | Yes |
| Local Weight Used | Yes |
| Match Within 1% | Yes |
pip install -r requirements.txtpython inference.pylogs/run_npu.log - NPU inference performance loglogs/accuracy_compare.log - CPU vs NPU prediction comparisonlogs/summary.json - Summary of adaptation resultsThis model follows the license of its source (timm/ImageNet).