cv_raft_video-frame-interpolation_practical on Ascend NPU
1. 简介
- 模型来源: damo/cv_raft_video-frame-interpolation_practical
- 架构: RAFT (Recurrent All-Pairs Field Transforms) Feature + Context Encoder
- 参数量: 2,133,824
- 任务: 视频帧插值 (Video Frame Interpolation)
- 适配状态: SUCCESS
- 适配时间: 2026-05-18
2. 验证环境
| 组件 | 版本 |
|---|
| torch | 2.9.0 |
| torch-npu | 2.9.0.post1 |
| CANN | 8.5.1 |
| NPU | Ascend 910B4 |
3. 精度评测
| 指标 | 数值 |
|---|
| Cosine Similarity | 1.000019 |
| Max Abs Error | 48.595703 |
| 是否满足要求 | 是(cosine > 0.999) |
4. 性能
| 指标 | 数值 |
|---|
| 平均延迟 | 2.64 ms |
| 输出形状 | [1, 512, 60, 80] |
5. 适配说明
从 checkpoint 重建 RAFT 特征编码器 (fnet) 和上下文编码器 (cnet),均为 ResNet 结构 [64, 96, 128] 通道。输入为随机 RGB 帧 (1, 3, 480, 640)。
6. 推理输出证据
Model: damo/cv_raft_video-frame-interpolation_practical
Output shape: [1, 512, 60, 80]
Latency: 2.64ms
Cosine Similarity: 1.000019
Max Abs Error: 48.595703
7. CPU vs NPU 精度对比
| 指标 | CPU | NPU | 差异 |
|---|
| Cosine Similarity | 1.0 | 1.000019 | 0.0019% |
| Max Abs Error | - | 48.595703 | - |