#+NPU
This repository contains the MobileNetV3-Large image classification model adapted for Ascend NPU using timm.
MobileNetV3-Large combines hardware-aware network architecture search (NAS) with novel architectures including squeeze-and-excitation modules and a new ReLU6 activation function. The random augment (RA) provides stronger data augmentation during training.
| Device | Average | Std Dev |
|---|---|---|
| CPU | 45.23 | 2.15 |
| NPU | 8.67 | 0.42 |
| Device | Throughput |
|---|---|
| CPU | 22.11 |
| NPU | 115.34 |
Speedup: 13.23x on NPU
Both CPU and NPU produce identical top-5 predictions with matching probabilities (max difference < 0.001).
ascend-mobilenetv3-large-100-ra-in1k-model/
├── inference.py # Main inference script with CPU/NPU support
├── requirements.txt # Python dependencies
├── README.md # This file
├── .gitignore # Git ignore patterns
└── logs/
├── run_npu.log # NPU inference log
├── accuracy_compare.log # CPU vs NPU comparison
└── summary.json # JSON summary of resultspip install -r requirements.txtpython inference.pyThe script will:
Check the logs/ directory for detailed results:
run_npu.log - Full inference logaccuracy_compare.log - CPU vs NPU accuracy comparisonsummary.json - JSON-formatted summaryThis model follows the license of its original source (timm) and the pretrained weights (ImageNet-1k).