Apache-2.0official Paddle PIR graph + Paddle2ONNX + ATC + AscendCLtorch_npu / npu:0本作品在大赛官方远端 Ascend Model Agent 的 Ascend910 上加载真实 checkpoint,并完成 full official UVDoc document unwarping graph forward。CPU fallback 被禁止;模型、输入与输出设备信息、权重加载审计、输出统计、软件版本和耗时均固化在 evidence/result.json。
固定官方 revision、32,054,311 字节权重与 SHA-256;完整 Paddle PIR 图以 opset 16 保留 GridSample 语义,经 ATC 编译原生 Ascend C GridSample 算子并由 AscendCL 执行。1×3×256×128 输入与同形展平图像输出全程驻留 npu:0,无 CPU fallback。
远端环境应预先安装版本匹配的 CANN、PyTorch 与 torch_npu,不要用普通 pip install 覆盖官方运行时。
python3 -m pip install -r requirements.txt
python3 inference.py --work-dir /tmp/atomgit/sprint3h/phase3-row14-uvdoc --out outputs/result.json --device npu:0 --model-id PaddlePaddle/UVDoc --official-revision 16c3f0ea9c2f0c6a57e24160f7eeaa7574613fa3 --weight-bytes 32054311 --weight-sha256 810488899520e0da843b9bd9769ba4949f1c81e357f0eceb12d4a7da459c3eca --input-shape 1,3,256,128 --input-name image --graph-name inference.json --weight-name inference.pdiparams --onnx-name model_op16.onnx --om-name uvdoc.om --onnx-opset 16 --task-name 'full official UVDoc document unwarping graph forward'
npu-smi info
cat outputs/result.jsonnpu:0[1,3,256,128][1,3,256,128]1173.851 ms810488899520e0da843b9bd9769ba4949f1c81e357f0eceb12d4a7da459c3eca32,054,311 bytes / 1 shard filesevidence/result.json 是机器可读事实源;三张证据图分别呈现 Agent 适配流程、NPU 设备闭环和模型输出结果。
npu:0

