Files
AnyImage/openspec/changes/restore-cutout-depth-extension/tasks.md
nan a0dd6e4a88 feat: Add restore cutout depth extension with edge depth correction
- Introduced a new extension for restoring cutout depth with edge correction.
- Implemented edge depth extension algorithm in `edge_depth.py` to enhance depth accuracy near cutout edges.
- Updated `generate_moge_artifacts` to include an option for extending depth edges during depth generation.
- Modified cutout job processing to enable edge depth extension based on depth request.
- Added comprehensive tests for edge depth functionality, ensuring correct behavior under various scenarios.
- Updated existing node loading functions to remove asset revision dependencies, simplifying the loading process.
- Created new design and proposal documentation outlining the goals and decisions for the extension.
2026-09-13 20:36:52 +08:00

1.3 KiB
Raw Blame History

1. Cutout 深度延伸

  • 1.1 恢复实测旧算法:固定0.95可靠来源条件、内侧2 px保护、外侧4 px延伸、分量内平滑和细分量回退;复用现有服务端反投影函数,核对NumPy/SciPy服务端声明。
  • 1.2 为共享产物入口增加默认关闭的内部选项,仅由Cutout深度请求开启;深度和Metadata使用修复Frame,Normal与有效性通道保留原始语义。
  • 1.3 补充相关行为测试:低剪裁Alpha不降低供体要求、分量隔离、无核心回退、贴图边界、完全不透明输入、内部validity孔洞、XYZ投影和未修改像素。
  • 1.4 验证Cutout深度/Normal联合请求只推理一次,以及普通Depth Plane、全景和仅Normal路径的产物隔离。

2. 验收

  • 2.1 运行受影响的服务端与Cutout产物测试,确认进程正常退出。
  • 2.2 在工作区外复用实测蜘蛛/头骨Alpha和预测,固定现有节点及参数,仅替换原始/延伸深度产物,记录同视角图、补边耗时、节点求值耗时与残余问题。
  • 2.3 检查使用原始Normal的边缘着色,以及生产Cutout产物与独立实验的数值一致性。
  • 2.4 检查最终差异与OpenSpec校验,确认改动限于深度产物生成及相关测试,汇总结果。