Skip to content
cccskills
FreePublished on GitHub

video-depth-estimation-pipeline

将本地视频转换为近亮远暗的连续灰度深度视频,使用 Video Depth Anything 时序模型,保留时长和可选原声。用于深度控制视频、depth video、视频深度估计。

The English summary is being prepared. Showing the original description.

See how to install

Files included (5)

  • SKILL.md3.1 KB
  • references/setup.md1.9 KB
  • scripts/convert.py11.2 KB
  • scripts/test_convert.py4.2 KB
  • skill.json232 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

视频转黑白深度

使用本技能目录的 scripts/convert.py,不要临时拼逐帧模型、边缘检测、浮雕或伪彩方案。本流程使用官方 Video Depth Anything Small 相对深度模型,不是米制测距,也不是立体左右眼视频。

执行

  1. 定位用户原片与当前深度 Python 环境,检查本机配置 ~/.kunpeng/video-depth.json 的 repo;未配置时默认 ~/.kunpeng/runtimes/Video-Depth-Anything。不要把旧聊天中的临时日期目录当通用安装位置。缺少环境时读取 references/setup.md。
  2. 使用深度环境中的 Python 运行: python <技能目录>/scripts/convert.py <原片路径> --output <新产物路径.mp4> --check
  3. 检查成功后移除 --check 执行同一命令。路径必须按当前 shell 正确引用。默认15fps、input-size=256、工作长边720、FP32、自动选择 CUDA/MPS/CPU,最终恢复源视频显示尺寸并保留第一条音轨。明确要求无声时加 --silent。8GB Mac 不要直接上518/全尺寸长片。
  4. 通过 bash 的后台执行与 bash_read_output 跟进任务,检查 JSON stage 与进程退出码,不能因一次等待超时重复启动。同一输出存在 lock 表示已有任务;核实原进程后才能处理遗留锁。
  5. 完成必须看到 stage=completed、MP4 和同名 .depth.json 回执。抽取开头、中段、结尾验证纯灰度、场景近远关系和明显闪烁,再交付可播放路径;不能只看文件存在就宣布完成。用户要求进入画布/剪辑时,沿用已有素材导入工具,不自动新建工作台。

固定约束

  • 原视频不覆盖,已有输出不覆盖;失败不发布半成品。
  • 变帧率输入先用 FFmpeg fps 滤镜按时间戳转为恒定帧率,不能按帧序号stride后伪装目标fps。核对视频流时长,不把音频尾长当视频时长。
  • 默认近亮远暗的纯黑白连续灰度,不要 inferno/jet。全片共享稳健范围归一化(上界99.5百分位,极近端少量值会裁切),不能逐帧拉伸;模型异常/常量深度必须报错。
  • 使用视频时序模型;降工作分辨率保留整个时间轴,不能截前几秒冒充完成。默认最多1800个工作帧,超过时说明资源限制并按需求降低fps或分段;分段需核验接缝,不承诺无闪烁。
  • 720工作长边与256网络输入只是计算规格,输出恢复原尺寸不代表恢复了原生高分辨率深度细节。报告最终尺寸、fps、时长和计算规格。
  • 无声输入正常支持;有声默认保留原声。不同长度音轨不通过 -shortest 截断深度画面。
  • 下载源、代理、模型选择不静默更换。优先复用已装官方模型;本地转换不需要DMX/RunningHub key。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

建立参考分工、锚定图变体、局部核验与版本记录,用于普通对话、画布和工坊的连续镜头创作。

The English summary is being prepared. Showing the original description.

pengfeiqiao/kunpeng102Updated Oct 18, 2026

用户提到白模/白膜/运镜预演/previs 时使用。调用本机 Blender 无界面渲染极简白模场景与运镜视频,用于验证构图遮挡、空间调度与动作时机,也可作为 AI 视频生成的全能参考。

The English summary is being prepared. Showing the original description.

pengfeiqiao/kunpeng102Updated Oct 18, 2026

在 Blender 中新建或修改可编辑模型、材质、灯光及场景工程。适用于产品建模、场景搭建、已有 blend 修改与渲染;纯白模运镜使用 blender-clay-previz。

The English summary is being prepared. Showing the original description.

pengfeiqiao/kunpeng102Updated Oct 18, 2026

画布能力由 canvas 工具契约提供,本文件仅保留操作顺序和数据安全约束。

The English summary is being prepared. Showing the original description.

pengfeiqiao/kunpeng102Updated Oct 18, 2026

汽车TVC、品牌片、汽车文案剧本、车辆资产与图片/视频提示词、分镜及Blender白模运镜。按人物叙事、生活观察、产品演示、造型光影等意图选择方法,维护车型身份与驾驶安全带连续性;不处理购车行情或维修问答。

The English summary is being prepared. Showing the original description.

pengfeiqiao/kunpeng102Updated Oct 18, 2026

专业的汽车3D模型图片生成技能,使用Gemini API生成高质量汽车展示图片,并通过豆包AI进行质量分析和优化。 使用场景:汽车品牌宣传片、车型展示、汽车广告素材生成。 关键词:汽车模型、车型图、汽车展示图、AI生图、Gemini

The English summary is being prepared. Showing the original description.

pengfeiqiao/kunpeng102Updated Oct 18, 2026

See all skills by pengfeiqiao

Report a problem with this skill