昇腾 NPU (torch-npu) 适配版。FairFace 年龄分类 ViT 模型,预测年龄分组。
# CLI 单图推理
python inference.py --img test_input.png
# FastAPI 服务 (POST /predict 上传图片)
python inference.py --server./model_weights/dima806/fairface_age_image_detection(本地优先,推理不联网)npu:0(torch_npu),无任何 CUDA 依赖