timm/regnety_320.tv2_in1k - Ascend NPU Adaptation
1. Model Overview
RegNetY-320 is a large RegNet architecture model from TorchVision v2 recipe, trained on ImageNet-1k with squeeze-and-excitation blocks.
- Original: timm/regnety_320.tv2_in1k
- Architecture: RegNetY (with SE blocks)
- Parameters: 145,046,770
- Input Resolution: 224x224
- Output Classes: 1000 (ImageNet-1k)
2. NPU Adaptation
- Device: Ascend NPU (npu:0)
- Framework: PyTorch + torch_npu
- Inference Script:
inference.py
3. Accuracy
| Metric | Value |
|---|
| Cosine Similarity | 1.000000 |
| Max Abs Error | 0.002933 |
4. Latency
| Device | Avg Latency |
|---|
| NPU (npu:0) | 11.36 ms |
5. CPU vs NPU
| Metric | CPU | NPU |
|---|
| Output Shape | [1, 1000] | [1, 1000] |
| Prediction | 892 | 892 |
6. Usage
source setup_env.sh
HF_ENDPOINT=https://hf-mirror.com python3 inference.py --device npu:0