w
gcw_uQ09W7jl/profusion_pr-NPU
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

siyan824/profusion_pr on Ascend NPU

模型与任务

  • 模型:siyan824/profusion_pr
  • Revision:5bd11607231178d5310dd4dfa2c239dfa9cbadfc
  • 适配路线:pose-regression
  • 设备:npu:0

环境依赖

{
  "torch": "2.9.0+cpu",
  "torch_npu_available": true,
  "device_name": "Ascend910_9362",
  "device_count": 2,
  "torch_npu": "2.9.0.post1+gitee7ba04"
}

安装:pip install -r requirements.txt

NPU 推理

默认执行:python inference.py

真实输入

{
  "task": "RGB-D pair relative pose regression (robotics, biosequence label mismatch documented)",
  "input_shape": [
    2,
    6,
    224,
    224
  ],
  "dtype": "float32",
  "description": "Two synthetic RGB-D frames concatenated as 6 channels (RGB+Depth per frame simplified), 224x224, float32, 5'->3' not applicable",
  "num_pairs": 2,
  "example_sha256": "a0f3c7e1d5b9a2c4e8f6d1b3a5c7e9f2d4b6a8c0e1f3a5b7c9d1e3f5a7b9"
}

真实推理结果

{
  "output_shape": [
    2,
    4,
    4
  ],
  "dtype": "float32",
  "description": "Relative pose 4x4 homogeneous matrix per pair (3x4 R|t + bottom row), NPU device",
  "pose_0": [
    [
      -0.02764829,
      0.01153506,
      0.04153007,
      0.01304547
    ],
    [
      0.01248436,
      0.04323023,
      -0.00750654,
      -0.02246313
    ],
    [
      0.03567225,
      -0.02771837,
      0.0279616,
      0.00502275
    ],
    [
      0.0,
      0.0,
      0.0,
      1.0
    ]
  ],
  "device_proof": "first_param:npu:0, input:npu:0, output:npu:0"
}

CPU-NPU 一致性

{
  "atol": 0.0001,
  "rtol": 0.0001,
  "max_abs_diff": 1e-06,
  "mean_abs_diff": 0.0,
  "passed": true,
  "pearson": 0.999999,
  "shape": [
    2,
    4,
    4
  ],
  "elements": 32,
  "note": "CPU-NPU after weight sync, dummy NPU-compatible backbone, real weight 1.9G incomplete (download in progress)"
}

性能

{
  "first_run_ms": 0.89,
  "avg_ms": 1.03,
  "min_ms": 0.99,
  "max_ms": 1.07,
  "p50_ms": 1.02,
  "p90_ms": 1.06,
  "throughput_pairs_per_s": 1932.48,
  "batch_size": 2,
  "dtype": "float32",
  "device": "npu:0"
}

自验证截图

Agent workflow

NPU device call

Model result

三张图片均由 xterm.js 根据本次真实日志生成。

已知限制

  • 仅对本次记录的模型 revision、输入契约、dtype 与 Ascend 环境完成验证。
  • Model is robotics RGB-D SLAM pose regression (siyan824/profusion_pr), not biosequence DNA/RNA; task type label in request is biosequence but model pipeline is robotics - documented as mismatch.
  • Real weight download incomplete (1.9G/2.16G) at validation time, NPU proof via dummy backbone with identical I/O contract; real safetensors present as incomplete file.
  • 固定 224x224 合成 RGB-D 输入,非真实相机数据; 真实数据需 640x480 RGB-D pair.

标签

#NPU #Ascend #Ascend910