This package runs the official FairFace ViT image-classification checkpoint through AutoModelForImageClassification on Ascend NPU. The runtime rejects CPU fallback and verifies parameters, image tensor, and logits on npu:0.
python inference.py --model-dir /path/to/official/modelThe official revision checkpoint is 343,245,508 bytes, SHA-256 1265d8e5a8a363a615898be873c224aebc6f310654bf23b1745da0975a7b7555. Verified logits shape: [1,9]; measured full NPU forward: 175.67 ms.
该实现用于年龄分类模型在 Ascend NPU 上的可复核单图推理。它只提交官方权重的真实完整前向结果;不替代人工公平性评估,不将预测结果用于身份识别或高风险自动决策。