Add reviewed experimental move+replace conditions 109 move_replace_mesh_v1
Browse files- .gitattributes +12 -0
- realcase/109/move_replace_mesh_v1/README.md +11 -0
- realcase/109/move_replace_mesh_v1/archive_validation.json +8 -0
- realcase/109/move_replace_mesh_v1/code/SHA256.json +11 -0
- realcase/109/move_replace_mesh_v1/code/bbox.py +188 -0
- realcase/109/move_replace_mesh_v1/code/bbox_dataset_original.py +117 -0
- realcase/109/move_replace_mesh_v1/code/geometry_plan.py +136 -0
- realcase/109/move_replace_mesh_v1/code/prepare_selected.py +57 -0
- realcase/109/move_replace_mesh_v1/code/render_conditions.py +132 -0
- realcase/109/move_replace_mesh_v1/code/render_pcf.py +242 -0
- realcase/109/move_replace_mesh_v1/code/sam2_candidate.py +46 -0
- realcase/109/move_replace_mesh_v1/code/verify_and_package.py +123 -0
- realcase/109/move_replace_mesh_v1/code/vggt_candidate.py +32 -0
- realcase/109/move_replace_mesh_v1/conditions.tar +3 -0
- realcase/109/move_replace_mesh_v1/geometry_plan.json +156 -0
- realcase/109/move_replace_mesh_v1/hf_v2_inference_adapter.json +1490 -0
- realcase/109/move_replace_mesh_v1/loader_checks.json +259 -0
- realcase/109/move_replace_mesh_v1/manifest.json +110 -0
- realcase/109/move_replace_mesh_v1/media/joint_B_orbit_10deg.mkv +3 -0
- realcase/109/move_replace_mesh_v1/media/joint_B_small_4deg.mkv +3 -0
- realcase/109/move_replace_mesh_v1/media/relit_B_orbit_10deg_blue.mkv +3 -0
- realcase/109/move_replace_mesh_v1/media/relit_B_orbit_10deg_green.mkv +3 -0
- realcase/109/move_replace_mesh_v1/media/relit_B_orbit_10deg_purple.mkv +3 -0
- realcase/109/move_replace_mesh_v1/media/relit_B_orbit_10deg_warm.mkv +3 -0
- realcase/109/move_replace_mesh_v1/media/relit_B_small_4deg_blue.mkv +3 -0
- realcase/109/move_replace_mesh_v1/media/relit_B_small_4deg_green.mkv +3 -0
- realcase/109/move_replace_mesh_v1/media/relit_B_small_4deg_purple.mkv +3 -0
- realcase/109/move_replace_mesh_v1/media/relit_B_small_4deg_warm.mkv +3 -0
- realcase/109/move_replace_mesh_v1/media/replacement_reference.png +3 -0
- realcase/109/move_replace_mesh_v1/media/source_A.mkv +3 -0
- realcase/109/move_replace_mesh_v1/placement_A_000024.png +3 -0
- realcase/109/move_replace_mesh_v1/preview_orbit_10deg.mp4 +3 -0
- realcase/109/move_replace_mesh_v1/preview_small_4deg.mp4 +3 -0
- realcase/109/move_replace_mesh_v1/replacement_asset.glb +3 -0
- realcase/109/move_replace_mesh_v1/sha256.json +0 -0
- realcase/109/move_replace_mesh_v1/support_inliers_000024.png +3 -0
.gitattributes
CHANGED
|
@@ -498,3 +498,15 @@ realcase/108/move_replace_mesh_v2/media/relit_B_small_4deg_purple.mkv filter=lfs
|
|
| 498 |
realcase/108/move_replace_mesh_v2/media/relit_B_small_4deg_warm.mkv filter=lfs diff=lfs merge=lfs -text
|
| 499 |
realcase/108/move_replace_mesh_v2/media/source_A.mkv filter=lfs diff=lfs merge=lfs -text
|
| 500 |
realcase/108/move_replace_mesh_v2/replacement_asset.glb filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 498 |
realcase/108/move_replace_mesh_v2/media/relit_B_small_4deg_warm.mkv filter=lfs diff=lfs merge=lfs -text
|
| 499 |
realcase/108/move_replace_mesh_v2/media/source_A.mkv filter=lfs diff=lfs merge=lfs -text
|
| 500 |
realcase/108/move_replace_mesh_v2/replacement_asset.glb filter=lfs diff=lfs merge=lfs -text
|
| 501 |
+
realcase/109/move_replace_mesh_v1/media/joint_B_orbit_10deg.mkv filter=lfs diff=lfs merge=lfs -text
|
| 502 |
+
realcase/109/move_replace_mesh_v1/media/joint_B_small_4deg.mkv filter=lfs diff=lfs merge=lfs -text
|
| 503 |
+
realcase/109/move_replace_mesh_v1/media/relit_B_orbit_10deg_blue.mkv filter=lfs diff=lfs merge=lfs -text
|
| 504 |
+
realcase/109/move_replace_mesh_v1/media/relit_B_orbit_10deg_green.mkv filter=lfs diff=lfs merge=lfs -text
|
| 505 |
+
realcase/109/move_replace_mesh_v1/media/relit_B_orbit_10deg_purple.mkv filter=lfs diff=lfs merge=lfs -text
|
| 506 |
+
realcase/109/move_replace_mesh_v1/media/relit_B_orbit_10deg_warm.mkv filter=lfs diff=lfs merge=lfs -text
|
| 507 |
+
realcase/109/move_replace_mesh_v1/media/relit_B_small_4deg_blue.mkv filter=lfs diff=lfs merge=lfs -text
|
| 508 |
+
realcase/109/move_replace_mesh_v1/media/relit_B_small_4deg_green.mkv filter=lfs diff=lfs merge=lfs -text
|
| 509 |
+
realcase/109/move_replace_mesh_v1/media/relit_B_small_4deg_purple.mkv filter=lfs diff=lfs merge=lfs -text
|
| 510 |
+
realcase/109/move_replace_mesh_v1/media/relit_B_small_4deg_warm.mkv filter=lfs diff=lfs merge=lfs -text
|
| 511 |
+
realcase/109/move_replace_mesh_v1/media/source_A.mkv filter=lfs diff=lfs merge=lfs -text
|
| 512 |
+
realcase/109/move_replace_mesh_v1/replacement_asset.glb filter=lfs diff=lfs merge=lfs -text
|
realcase/109/move_replace_mesh_v1/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 真实视频案例 109:移动+替换实验条件
|
| 2 |
+
|
| 3 |
+
源案例:`rv_extra_case02_6374204`。操作:删除原位置 P 的灯,在 Q 插入另一件适配 floor 场景的 GLB 灯具。
|
| 4 |
+
|
| 5 |
+
包含 `small_4deg` 和 `orbit_10deg` 两套真实逐帧相机矩阵及全部 49 帧、1280×704 条件。PCF 使用用户指定原 `render_pcf.py`;三维框使用原 `bbox.py`;joint 使用原生产 `joint_frames`,红 P、蓝 Q、重叠黄,框内半透明。
|
| 6 |
+
|
| 7 |
+
`conditions.tar` 保留源 A 帧、可见 SAM2 mask、独立 amodal 估计、A/B 相机、P/Q OBB、PCF、三维框、实际 GLB 投影 mask、紫/绿/蓝/暖四色和低/中/高三档强度。`hf_v2_inference_adapter.json` 使用当前 HF 样本的原始 alpha/gamma/color 字段;`video=null`,因为 B 视角真实 RGB 未观测。旧 log-lumens NPZ 只是实验适配,不是实测流明,也不是现行 HF v2 的强度定义。
|
| 8 |
+
|
| 9 |
+
已完成:全帧文件/尺寸/支持域/相机/框自洽检查;首中末及出边关键帧视觉复核;原生产 joint_frames 与媒体读取函数实跑。旧完整 loader 要求色强支持域等于 bbox,与灯形要求冲突,未篡改为实心框。未运行真实模型推理。
|
| 10 |
+
|
| 11 |
+
限制:单目尺度和 VGGT 深度/支撑面是估计;GLB 投影未解决场景遮挡和动态前景;隐藏结构不写入可见 mask。本包是关键帧已审核的实验草稿,不是质量验收通过或训练真值。
|
realcase/109/move_replace_mesh_v1/archive_validation.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"members": 2556,
|
| 3 |
+
"symlink_members": 0,
|
| 4 |
+
"hardlink_members": 0,
|
| 5 |
+
"all_file_members_read": true,
|
| 6 |
+
"bytes": 434944000,
|
| 7 |
+
"sha256": "ef6cde3936bb62cf389bd81ccfb1249bbd73e68ff6d5fce7834b3271a4023a35"
|
| 8 |
+
}
|
realcase/109/move_replace_mesh_v1/code/SHA256.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bbox.py": "843652f38bd6de91a2d4b9d940871082b3c9cc0f2dd5c1c5ebf23500e6c9c613",
|
| 3 |
+
"bbox_dataset_original.py": "ae76b9588a94dd5a9db511ff89182a36d48947193b6ad04e0bbf3fae48a68fca",
|
| 4 |
+
"geometry_plan.py": "09b8760c498905d7d27d8e2389332b77e007f1417bc774ab05ea23420a6d8a39",
|
| 5 |
+
"prepare_selected.py": "3ac9d182f9d0f63da547431d2d95996820de9f982e44ac5002f91b6c92526796",
|
| 6 |
+
"render_conditions.py": "6485778d3990cd97e62fdf9ce0b3f437815a19026b228764d07f9dc03a72a8de",
|
| 7 |
+
"render_pcf.py": "3c0bf4f772a426fed9ac4c9f3f9d1e1ac8a5443caf5002ce4bba27b4a16e1aee",
|
| 8 |
+
"sam2_candidate.py": "ef429863e37196f6c43f7821a55f1c35abd0255b071255840bd2ee7b35d8f1ac",
|
| 9 |
+
"verify_and_package.py": "2b4702b101adb263b1657213e9bc08b59de84e7ef4b5ce2e4851ef4a094debbb",
|
| 10 |
+
"vggt_candidate.py": "8963b8d6affbefbe2ec59884792d2fdee3f560ae6459fe849c182555db42bfea"
|
| 11 |
+
}
|
realcase/109/move_replace_mesh_v1/code/bbox.py
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Render ordinary world-space oriented bounding boxes as lamp proxies."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import json
|
| 6 |
+
from dataclasses import dataclass
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
from typing import Iterable, List, Sequence, Tuple
|
| 9 |
+
|
| 10 |
+
import cv2
|
| 11 |
+
import numpy as np
|
| 12 |
+
|
| 13 |
+
try:
|
| 14 |
+
from .gaussian import camera_rays, quaternion_xyzw_to_matrix
|
| 15 |
+
except ImportError: # Direct script execution.
|
| 16 |
+
from gaussian import camera_rays, quaternion_xyzw_to_matrix
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
@dataclass(frozen=True)
|
| 20 |
+
class OrientedBoundingBox:
|
| 21 |
+
identifier: str
|
| 22 |
+
center_xyz: np.ndarray
|
| 23 |
+
size_xyz: np.ndarray
|
| 24 |
+
rotation_world: np.ndarray
|
| 25 |
+
color_rgb: np.ndarray
|
| 26 |
+
|
| 27 |
+
@property
|
| 28 |
+
def half_size(self) -> np.ndarray:
|
| 29 |
+
return 0.5 * self.size_xyz
|
| 30 |
+
|
| 31 |
+
@property
|
| 32 |
+
def vertices_world(self) -> np.ndarray:
|
| 33 |
+
signs = np.array(
|
| 34 |
+
[
|
| 35 |
+
[-1, -1, -1], [1, -1, -1], [1, 1, -1], [-1, 1, -1],
|
| 36 |
+
[-1, -1, 1], [1, -1, 1], [1, 1, 1], [-1, 1, 1],
|
| 37 |
+
],
|
| 38 |
+
dtype=np.float64,
|
| 39 |
+
)
|
| 40 |
+
local = signs * self.half_size
|
| 41 |
+
return local @ self.rotation_world.T + self.center_xyz
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
BOX_EDGES = (
|
| 45 |
+
(0, 1), (1, 2), (2, 3), (3, 0),
|
| 46 |
+
(4, 5), (5, 6), (6, 7), (7, 4),
|
| 47 |
+
(0, 4), (1, 5), (2, 6), (3, 7),
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def load_boxes(path: Path | str) -> Tuple[List[OrientedBoundingBox], dict]:
|
| 52 |
+
with Path(path).open("r", encoding="utf-8") as handle:
|
| 53 |
+
document = json.load(handle)
|
| 54 |
+
default_color = document.get("color_rgb", [255, 48, 220])
|
| 55 |
+
raw_boxes = document.get("boxes")
|
| 56 |
+
if not isinstance(raw_boxes, list) or not raw_boxes:
|
| 57 |
+
raise ValueError("Bounding-box JSON must contain a non-empty 'boxes' list.")
|
| 58 |
+
boxes = []
|
| 59 |
+
for index, item in enumerate(raw_boxes):
|
| 60 |
+
center = np.asarray(item.get("center_xyz"), dtype=np.float64)
|
| 61 |
+
size = np.asarray(item.get("size_xyz"), dtype=np.float64)
|
| 62 |
+
color = np.asarray(item.get("color_rgb", default_color), dtype=np.float64)
|
| 63 |
+
if center.shape != (3,) or size.shape != (3,) or color.shape != (3,):
|
| 64 |
+
raise ValueError(
|
| 65 |
+
f"Box {index}: center_xyz, size_xyz and color_rgb must each contain 3 values."
|
| 66 |
+
)
|
| 67 |
+
if not np.isfinite(center).all() or not np.isfinite(size).all() or np.any(size <= 0):
|
| 68 |
+
raise ValueError(f"Box {index}: center and positive size must be finite.")
|
| 69 |
+
if not np.isfinite(color).all() or np.any(color < 0) or np.any(color > 255):
|
| 70 |
+
raise ValueError(f"Box {index}: color_rgb must be in [0,255].")
|
| 71 |
+
boxes.append(
|
| 72 |
+
OrientedBoundingBox(
|
| 73 |
+
identifier=str(item.get("id", f"lamp_{index}")),
|
| 74 |
+
center_xyz=center,
|
| 75 |
+
size_xyz=size,
|
| 76 |
+
rotation_world=quaternion_xyzw_to_matrix(
|
| 77 |
+
item.get("rotation_xyzw", [0.0, 0.0, 0.0, 1.0])
|
| 78 |
+
),
|
| 79 |
+
color_rgb=np.rint(color).astype(np.uint8),
|
| 80 |
+
)
|
| 81 |
+
)
|
| 82 |
+
return boxes, document
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def _ray_box_depth(
|
| 86 |
+
box: OrientedBoundingBox,
|
| 87 |
+
rays_camera: np.ndarray,
|
| 88 |
+
w2c: np.ndarray,
|
| 89 |
+
near: float,
|
| 90 |
+
) -> np.ndarray:
|
| 91 |
+
"""Return camera-z at the first positive ray/OBB intersection."""
|
| 92 |
+
|
| 93 |
+
c2w = np.linalg.inv(w2c)
|
| 94 |
+
camera_center_world = c2w[:3, 3]
|
| 95 |
+
rotation_c2w = c2w[:3, :3]
|
| 96 |
+
origin_local = box.rotation_world.T @ (camera_center_world - box.center_xyz)
|
| 97 |
+
rays_world = rays_camera @ rotation_c2w.T
|
| 98 |
+
rays_local = rays_world @ box.rotation_world
|
| 99 |
+
|
| 100 |
+
parallel_outside = (np.abs(rays_local) < 1e-12) & (
|
| 101 |
+
np.abs(origin_local)[None, None, :] > box.half_size[None, None, :]
|
| 102 |
+
)
|
| 103 |
+
|
| 104 |
+
safe_direction = np.where(
|
| 105 |
+
np.abs(rays_local) < 1e-12,
|
| 106 |
+
np.where(rays_local >= 0, 1e-12, -1e-12),
|
| 107 |
+
rays_local,
|
| 108 |
+
)
|
| 109 |
+
t_0 = (-box.half_size - origin_local) / safe_direction
|
| 110 |
+
t_1 = (box.half_size - origin_local) / safe_direction
|
| 111 |
+
t_near = np.max(np.minimum(t_0, t_1), axis=-1)
|
| 112 |
+
t_far = np.min(np.maximum(t_0, t_1), axis=-1)
|
| 113 |
+
first = np.where(t_near >= near, t_near, t_far)
|
| 114 |
+
valid = (
|
| 115 |
+
(t_far >= np.maximum(t_near, near))
|
| 116 |
+
& (first >= near)
|
| 117 |
+
& ~np.any(parallel_outside, axis=-1)
|
| 118 |
+
)
|
| 119 |
+
return np.where(valid, first, np.inf)
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
def _project_vertices(
|
| 123 |
+
vertices_world: np.ndarray,
|
| 124 |
+
intrinsics: np.ndarray,
|
| 125 |
+
w2c: np.ndarray,
|
| 126 |
+
) -> Tuple[np.ndarray, np.ndarray]:
|
| 127 |
+
vertices_camera = vertices_world @ w2c[:3, :3].T + w2c[:3, 3]
|
| 128 |
+
valid = vertices_camera[:, 2] > 1e-6
|
| 129 |
+
normalized = vertices_camera / np.maximum(vertices_camera[:, 2:3], 1e-6)
|
| 130 |
+
pixels = normalized @ intrinsics.T
|
| 131 |
+
return pixels[:, :2], valid
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
def render_bbox_conditions(
|
| 135 |
+
boxes: Iterable[OrientedBoundingBox],
|
| 136 |
+
intrinsics: np.ndarray,
|
| 137 |
+
w2c: np.ndarray,
|
| 138 |
+
height: int,
|
| 139 |
+
width: int,
|
| 140 |
+
near: float = 0.05,
|
| 141 |
+
depth_far: float = 20.0,
|
| 142 |
+
edge_width: int = 4,
|
| 143 |
+
fill_alpha: float = 0.38,
|
| 144 |
+
) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
|
| 145 |
+
"""Render filled OBB silhouettes, 12 box edges, encoded depth, and raw depth."""
|
| 146 |
+
|
| 147 |
+
if near <= 0 or depth_far <= near:
|
| 148 |
+
raise ValueError("Require 0 < near < depth_far.")
|
| 149 |
+
rays = camera_rays(intrinsics, height, width)
|
| 150 |
+
raw_depth = np.full((height, width), np.inf, dtype=np.float64)
|
| 151 |
+
identity_rgb = np.zeros((height, width, 3), dtype=np.uint8)
|
| 152 |
+
box_mask = np.zeros((height, width), dtype=np.uint8)
|
| 153 |
+
box_list = list(boxes)
|
| 154 |
+
|
| 155 |
+
for box in box_list:
|
| 156 |
+
depth = _ray_box_depth(box, rays, w2c, near)
|
| 157 |
+
replace = depth < raw_depth
|
| 158 |
+
if np.any(replace):
|
| 159 |
+
raw_depth[replace] = depth[replace]
|
| 160 |
+
identity_rgb[replace] = np.rint(
|
| 161 |
+
box.color_rgb.astype(np.float64) * fill_alpha
|
| 162 |
+
).astype(np.uint8)
|
| 163 |
+
box_mask[replace] = 255
|
| 164 |
+
|
| 165 |
+
rectangle = (0, 0, width, height)
|
| 166 |
+
for box in box_list:
|
| 167 |
+
pixels, valid_vertices = _project_vertices(box.vertices_world, intrinsics, w2c)
|
| 168 |
+
color = tuple(int(channel) for channel in box.color_rgb)
|
| 169 |
+
for start_index, end_index in BOX_EDGES:
|
| 170 |
+
if not (valid_vertices[start_index] and valid_vertices[end_index]):
|
| 171 |
+
continue
|
| 172 |
+
point_0 = tuple(np.rint(np.clip(pixels[start_index], -1e6, 1e6)).astype(int))
|
| 173 |
+
point_1 = tuple(np.rint(np.clip(pixels[end_index], -1e6, 1e6)).astype(int))
|
| 174 |
+
visible, clipped_0, clipped_1 = cv2.clipLine(rectangle, point_0, point_1)
|
| 175 |
+
if visible:
|
| 176 |
+
cv2.line(identity_rgb, clipped_0, clipped_1, color, edge_width, cv2.LINE_AA)
|
| 177 |
+
cv2.line(box_mask, clipped_0, clipped_1, 255, edge_width, cv2.LINE_AA)
|
| 178 |
+
|
| 179 |
+
valid_depth = np.isfinite(raw_depth)
|
| 180 |
+
raw_depth_output = raw_depth.astype(np.float32)
|
| 181 |
+
raw_depth_output[~valid_depth] = 0.0
|
| 182 |
+
encoded = np.zeros((height, width), dtype=np.float64)
|
| 183 |
+
encoded[valid_depth] = 1.0 - np.clip(
|
| 184 |
+
(raw_depth[valid_depth] - near) / (depth_far - near), 0.0, 1.0
|
| 185 |
+
)
|
| 186 |
+
encoded_uint8 = np.rint(encoded * 255.0).astype(np.uint8)
|
| 187 |
+
depth_rgb = np.repeat(encoded_uint8[..., None], 3, axis=-1)
|
| 188 |
+
return identity_rgb, depth_rgb, box_mask, raw_depth_output
|
realcase/109/move_replace_mesh_v1/code/bbox_dataset_original.py
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Single-reference, bbox-aligned conditions. Independent of legacy six-view loaders."""
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
from functools import lru_cache
|
| 4 |
+
import json
|
| 5 |
+
import numpy as np
|
| 6 |
+
from PIL import Image
|
| 7 |
+
|
| 8 |
+
SCHEMA = 'LampEdit.bbox_conditions.v003'
|
| 9 |
+
|
| 10 |
+
def resolve(value, legacy_root, upgrade_root):
|
| 11 |
+
if value.startswith('bbox_v3/'):
|
| 12 |
+
return Path(upgrade_root) / value[len('bbox_v3/'):]
|
| 13 |
+
if value.startswith('data_v2/'):
|
| 14 |
+
return Path(legacy_root) / value[len('data_v2/'):]
|
| 15 |
+
raise ValueError('Only versioned portable paths are runtime inputs: ' + value)
|
| 16 |
+
|
| 17 |
+
def frames(path, gray=False):
|
| 18 |
+
paths=sorted(Path(path).glob('*.png'), key=lambda p:int(p.stem))
|
| 19 |
+
assert len(paths)==49 and [int(p.stem) for p in paths]==list(range(49))
|
| 20 |
+
result=[]
|
| 21 |
+
for p in paths:
|
| 22 |
+
with Image.open(p) as im:
|
| 23 |
+
im=im.convert('L' if gray else 'RGB')
|
| 24 |
+
if im.size!=(640,352):
|
| 25 |
+
assert not gray, 'Never resize bbox labels at load time'
|
| 26 |
+
im=im.resize((640,352),Image.Resampling.LANCZOS)
|
| 27 |
+
result.append(np.asarray(im).copy())
|
| 28 |
+
out=np.stack(result)
|
| 29 |
+
return out[...,None].astype(np.float32)/255 if gray else out
|
| 30 |
+
|
| 31 |
+
def field_frames(path, kind):
|
| 32 |
+
paths=sorted(Path(path).glob('*.npz'),key=lambda p:int(p.stem));assert len(paths)==49
|
| 33 |
+
result=[]
|
| 34 |
+
for p in paths:
|
| 35 |
+
with np.load(p,allow_pickle=False) as z:
|
| 36 |
+
roi=z[kind];origin=z['origin_xy'];shape=z['full_shape_hwc']
|
| 37 |
+
assert roi.dtype==np.float32 and tuple(shape)==(352,640,3)
|
| 38 |
+
assert np.isfinite(roi).all() and (roi>=0).all() and (roi<=1).all()
|
| 39 |
+
x,y=map(int,origin);h,w=roi.shape[:2]
|
| 40 |
+
assert roi.shape==(h,w,3) and 0<=x<=640-w and 0<=y<=352-h
|
| 41 |
+
full=np.zeros((352,640,3),np.float32);full[y:y+h,x:x+w]=roi
|
| 42 |
+
result.append(full)
|
| 43 |
+
return np.stack(result)
|
| 44 |
+
|
| 45 |
+
@lru_cache(maxsize=2)
|
| 46 |
+
def background_frames(path):
|
| 47 |
+
value=frames(path);value.setflags(write=False)
|
| 48 |
+
return value
|
| 49 |
+
|
| 50 |
+
def joint_frames(folder,legacy_root,upgrade_root):
|
| 51 |
+
recipe=json.loads((Path(folder)/'RENDER.json').read_text())
|
| 52 |
+
background=background_frames(str(resolve(recipe['background'],legacy_root,upgrade_root)))
|
| 53 |
+
labels=np.stack([np.asarray(Image.open(p)) for p in sorted(resolve(recipe['labels'],legacy_root,upgrade_root).glob('*.png'))])
|
| 54 |
+
sw=frames(resolve(recipe['source_wire'],legacy_root,upgrade_root),True)[...,0]>0
|
| 55 |
+
tw=frames(resolve(recipe['target_wire'],legacy_root,upgrade_root),True)[...,0]>0
|
| 56 |
+
palette=np.asarray(recipe['palette_rgb'],np.uint8);alpha=recipe['fill_alpha']
|
| 57 |
+
assert labels.shape==background.shape[:3]
|
| 58 |
+
result=background.copy();occupied=labels>0
|
| 59 |
+
result[occupied]=np.rint(recipe['background_alpha']*background[occupied]+alpha*palette[labels[occupied]]).astype(np.uint8)
|
| 60 |
+
wire=sw|tw;result[wire]=palette[labels[wire]]
|
| 61 |
+
return result
|
| 62 |
+
|
| 63 |
+
def load_row(row, legacy_root, upgrade_root):
|
| 64 |
+
assert row['condition_schema']==SCHEMA and row['frame_count']==49
|
| 65 |
+
path=lambda name:resolve(row[name],legacy_root,upgrade_root)
|
| 66 |
+
source=frames(path('source'));target=frames(path('target'))
|
| 67 |
+
joint=joint_frames(path('joint'),legacy_root,upgrade_root)
|
| 68 |
+
color=field_frames(path('color'),'color');intensity=field_frames(path('intensity'),'intensity')
|
| 69 |
+
sm=frames(path('source_bbox_in_target_view'),True)
|
| 70 |
+
tm=frames(path('target_bbox_in_target_view'),True)
|
| 71 |
+
label_paths=sorted(path('operation_labels').glob('*.png'))
|
| 72 |
+
assert len(label_paths)==49
|
| 73 |
+
labels=np.stack([np.asarray(Image.open(p)) for p in label_paths])
|
| 74 |
+
assert np.array_equal(((labels==1)|(labels==3)),sm[...,0]>0)
|
| 75 |
+
assert np.array_equal(((labels==2)|(labels==3)),tm[...,0]>0)
|
| 76 |
+
if row['target_light_active']:
|
| 77 |
+
assert np.array_equal(np.any(color>0,axis=-1),tm[...,0]>0)
|
| 78 |
+
assert np.array_equal(np.any(intensity>0,axis=-1),tm[...,0]>0)
|
| 79 |
+
else:
|
| 80 |
+
assert not color.any() and not intensity.any()
|
| 81 |
+
expected=1 if row['target_fixture_present'] else 0
|
| 82 |
+
assert len(row['reference_images'])==expected
|
| 83 |
+
refs=[]
|
| 84 |
+
for p in row['reference_images']:
|
| 85 |
+
with Image.open(resolve(p,legacy_root,upgrade_root)) as im:
|
| 86 |
+
refs.append(np.asarray(im.convert('RGB').resize((512,512),Image.Resampling.LANCZOS)))
|
| 87 |
+
reference=(np.stack(refs).astype(np.float32)/255. if refs else np.empty((0,512,512,3),np.float32))
|
| 88 |
+
source_mask=frames(path('source_mask_coarse'),True)
|
| 89 |
+
source_in_frame=np.any(source_mask>0,axis=(1,2,3))
|
| 90 |
+
target_in_frame=np.any(tm>0,axis=(1,2,3))
|
| 91 |
+
ambient=float(row['ambient'])
|
| 92 |
+
assert np.isfinite(ambient)
|
| 93 |
+
metadata={k:row[k] for k in ('sample_id','operation','joint_edit_operation','edit_operations',
|
| 94 |
+
'camera_relation','source_view','target_view','source_entity','target_entity',
|
| 95 |
+
'source_fixture_present','source_light_active','source_ambient','target_ambient',
|
| 96 |
+
'reference_asset_id','reference_v2_identity','reference_condition_required',
|
| 97 |
+
'reference_image_count','reference_sha256') if k in row}
|
| 98 |
+
return {**metadata,'source':source,'target':target,'joint':joint,'color':color,'intensity':intensity,
|
| 99 |
+
'source_mask_video':source_mask,'ambient':ambient,
|
| 100 |
+
'target_mask_video':tm,'source_bbox_in_target_view':sm,'operation_labels':labels,
|
| 101 |
+
'fixture_reference_images':reference,'prompt':row['prompt'],
|
| 102 |
+
'target_fixture_present':row['target_fixture_present'],
|
| 103 |
+
'target_light_active':row['target_light_active'],
|
| 104 |
+
'target_mask_in_frame':target_in_frame,'source_mask_in_frame':source_in_frame,
|
| 105 |
+
'target_mask_black_frames':np.flatnonzero(~target_in_frame).tolist(),
|
| 106 |
+
'source_mask_black_frames':np.flatnonzero(~source_in_frame).tolist(),
|
| 107 |
+
'source_physical_light_metadata_json':json.dumps(row.get('source_physical_light_metadata',{})),
|
| 108 |
+
'reference_value_range':'float32_RGB_0_1',
|
| 109 |
+
'target_physical_light_metadata_json':json.dumps(row['target_physical_light_metadata']),
|
| 110 |
+
'condition_schema':SCHEMA,'cache_key':row['conditioning_cache_key']}
|
| 111 |
+
|
| 112 |
+
class BBoxConditionDataset:
|
| 113 |
+
def __init__(self,manifest,legacy_root,upgrade_root):
|
| 114 |
+
self.rows=json.loads(Path(manifest).read_text());self.legacy_root=legacy_root;self.upgrade_root=upgrade_root
|
| 115 |
+
assert self.rows and all(r['condition_schema']==SCHEMA for r in self.rows)
|
| 116 |
+
def __len__(self):return len(self.rows)
|
| 117 |
+
def __getitem__(self,index):return load_row(self.rows[index],self.legacy_root,self.upgrade_root)
|
realcase/109/move_replace_mesh_v1/code/geometry_plan.py
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os,sys,json,hashlib,importlib.util
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
import numpy as np,cv2
|
| 4 |
+
sys.path.insert(0,'/root/autodl-tmp/codex_user8_move_replace_20261109/python_deps')
|
| 5 |
+
import trimesh
|
| 6 |
+
ROOT=Path('/root/autodl-tmp/kimi_realcase_20261109')
|
| 7 |
+
ASSETS=Path('/root/autodl-tmp/codex_user8_move_replace_20261109/realcase_new_models')
|
| 8 |
+
CORE=Path('/root/autodl-tmp/real_video_condition_repro_20261105_v1/tools/old671')
|
| 9 |
+
sys.path.insert(0,str(CORE))
|
| 10 |
+
from bbox import OrientedBoundingBox,render_bbox_conditions
|
| 11 |
+
W,H=1280,704
|
| 12 |
+
|
| 13 |
+
def sha(path):
|
| 14 |
+
h=hashlib.sha256()
|
| 15 |
+
with open(path,'rb') as f:
|
| 16 |
+
for b in iter(lambda:f.read(4*1024*1024),b''):h.update(b)
|
| 17 |
+
return h.hexdigest()
|
| 18 |
+
|
| 19 |
+
def norm(v):return v/max(1e-12,np.linalg.norm(v))
|
| 20 |
+
def rodrigues(axis,ang):
|
| 21 |
+
a=norm(axis);K=np.array([[0,-a[2],a[1]],[a[2],0,-a[0]],[-a[1],a[0],0]])
|
| 22 |
+
return np.eye(3)+np.sin(ang)*K+(1-np.cos(ang))*(K@K)
|
| 23 |
+
def angle(R):return float(np.degrees(np.arccos(np.clip((np.trace(R)-1)/2,-1,1))))
|
| 24 |
+
def fit_plane(points,tol,rng):
|
| 25 |
+
best=None
|
| 26 |
+
for _ in range(700):
|
| 27 |
+
p=points[rng.choice(len(points),3,replace=False)];n=norm(np.cross(p[1]-p[0],p[2]-p[0]));d=-float(n@p[0]);cnt=int((np.abs(points@n+d)<tol).sum())
|
| 28 |
+
if best is None or cnt>best[0]:best=(cnt,n,d)
|
| 29 |
+
if best is None:raise RuntimeError('plane fit failed')
|
| 30 |
+
inl=points[np.abs(points@best[1]+best[2])<tol]
|
| 31 |
+
if len(inl)<12:raise RuntimeError(f'too few plane inliers {len(inl)}')
|
| 32 |
+
c=inl.mean(0);_,_,vt=np.linalg.svd(inl-c,full_matrices=False);n=vt[-1];d=-float(n@c);mask=np.abs(points@n+d)<tol
|
| 33 |
+
return n,d,mask
|
| 34 |
+
|
| 35 |
+
def load_asset(n):
|
| 36 |
+
scene=trimesh.load(str(ASSETS/f'{n}.glb'),force='scene');mesh=scene.to_geometry();v=np.asarray(mesh.vertices,np.float64);f=np.asarray(mesh.faces,np.int32)
|
| 37 |
+
v=np.stack([v[:,0],-v[:,2],v[:,1]],1)
|
| 38 |
+
return v,f
|
| 39 |
+
|
| 40 |
+
def run(cfg):
|
| 41 |
+
case=cfg['case_id'];num=cfg['number'];cd=ROOT/'cases'/case;sd=ROOT/'samples'/case;out=ROOT/'outputs'/str(num)/os.environ.get('REVISION',cfg.get('revision','move_replace_mesh_v1'));out.mkdir(parents=True,exist_ok=False)
|
| 42 |
+
d=np.load(sd/'step3_worldpoints/vggt_raw.npz');wp=d['world_points'];conf=d['world_points_conf'];ext=d['extrinsic_3x4'].astype(np.float64);K=d['K'].astype(np.float64).copy();gh,gw=wp.shape[1:3];K[:,0,:]*=W/gw;K[:,1,:]*=H/gh
|
| 43 |
+
A=np.tile(np.eye(4),(49,1,1));A[:,:3,:]=ext
|
| 44 |
+
mask_stage=cfg.get('mask_stage',os.environ.get('MASK_STAGE','step8_sam2_candidate'))
|
| 45 |
+
masks=[cv2.imread(str(sd/mask_stage/'mask49'/f'{i:06}.png'),0)>0 for i in range(49)]
|
| 46 |
+
# Fit only the operator-selected support rectangle on frame 24 and save its actual inliers.
|
| 47 |
+
x0,y0,x1,y1=cfg['support_rect_xyxy'];gx=np.clip((np.arange(x0,x1,3)*gw/W).astype(int),0,gw-1);gy=np.clip((np.arange(y0,y1,3)*gh/H).astype(int),0,gh-1);xx,yy=np.meshgrid(gx,gy)
|
| 48 |
+
pts=wp[24,yy.ravel(),xx.ravel()];cf=conf[24,yy.ravel(),xx.ravel()];ok=np.isfinite(pts).all(1)&(cf>1e-3);pts=pts[ok];gx2=xx.ravel()[ok];gy2=yy.ravel()[ok]
|
| 49 |
+
if len(pts)<30:raise RuntimeError(f'insufficient support points {len(pts)}')
|
| 50 |
+
n,pd,inl=fit_plane(pts,cfg['plane_tolerance'],np.random.default_rng(20261109));ip=pts[inl]
|
| 51 |
+
camera_center=-A[24,:3,:3].T@A[24,:3,3];pc=ip.mean(0)
|
| 52 |
+
if n@(camera_center-pc)<0:n,pd=-n,-pd
|
| 53 |
+
inl_ratio=float(np.mean(inl));plane_rms=float(np.sqrt(np.mean((ip@n+pd)**2)))
|
| 54 |
+
# Vertical fixture axis: support normal for floor/desk/outdoor; wall-vertical for wall lamps.
|
| 55 |
+
if cfg['scene_type']=='wall':
|
| 56 |
+
up=-A[24,1,:3];up=norm(up-n*(n@up))
|
| 57 |
+
else:up=n.copy()
|
| 58 |
+
xr=norm(A[24,0,:3]-up*(up@A[24,0,:3]));yr=np.cross(up,xr);R=np.stack([xr,yr,up],1)
|
| 59 |
+
# Source visible cloud uses per-frame median lamp depth and the same A/K/mask version.
|
| 60 |
+
clouds=[];depths=[];visible_z=[];allowed_empty=set(cfg.get('allow_fully_occluded_frames',[]));occluded=[]
|
| 61 |
+
for i,m in enumerate(masks):
|
| 62 |
+
ys,xs=np.where(m)
|
| 63 |
+
if not len(xs):
|
| 64 |
+
if i not in allowed_empty:raise RuntimeError(f'unreviewed empty source mask frame {i}')
|
| 65 |
+
occluded.append(i);continue
|
| 66 |
+
step=max(1,len(xs)//6000);ys,xs=ys[::step],xs[::step];gy3=np.minimum((ys*gh/H).astype(int),gh-1);gx3=np.minimum((xs*gw/W).astype(int),gw-1);world=wp[i,gy3,gx3];cam=world@A[i,:3,:3].T+A[i,:3,3];z=cam[:,2];z=z[np.isfinite(z)&(z>0)]
|
| 67 |
+
if not len(z):raise RuntimeError(f'no positive depth frame {i}')
|
| 68 |
+
depth=float(np.median(z));depths.append(depth);zz=np.full(len(xs),depth);cp=np.stack([(xs-K[i,0,2])*zz/K[i,0,0],(ys-K[i,1,2])*zz/K[i,1,1],zz],1);world=(cp-A[i,:3,3])@A[i,:3,:3];clouds.append(world)
|
| 69 |
+
cloud=np.concatenate(clouds);local=cloud@R;visible_lo=local.min(0);visible_hi=local.max(0);visible_height=float(visible_hi[2]-visible_lo[2]);amodal=None
|
| 70 |
+
lo,hi=visible_lo.copy(),visible_hi.copy()
|
| 71 |
+
if cfg['scene_type']=='outdoor' or cfg.get('estimate_hidden_base',False):
|
| 72 |
+
# Estimate only the out-of-frame base: vertically intersect the lowest visible pole region with the fitted ground.
|
| 73 |
+
cutoff=np.percentile(local[:,2],12);pole=local[local[:,2]<=cutoff];low_world=(pole@R.T).mean(0);base=base=low_world-up*((up@low_world+pd)/(up@up))
|
| 74 |
+
lo=np.minimum(lo,(base@R)-np.array([.04*visible_height,.04*visible_height,0.]));hi=np.maximum(hi,base@R)
|
| 75 |
+
amodal={'estimated_base_world':base.tolist(),'method':'vertical intersection of lowest visible pole region with estimated ground plane','observed':False,'uncertainty':'base shape and exact ground contact are not visible in the source frames'}
|
| 76 |
+
pad=np.maximum(.025*(hi-lo),1e-4);lo-=pad;hi+=pad;P=(lo+hi)@R.T/2 if False else ((lo+hi)/2)@R.T;psize=hi-lo
|
| 77 |
+
# Replacement mesh and dimensions, explicitly relative rather than metric truth.
|
| 78 |
+
vertices,faces=load_asset(cfg['asset_number']);dims=vertices.min(0)*0+(vertices.max(0)-vertices.min(0));height_reference=psize[2] if cfg.get('asset_height_reference')=='P_size_z' else visible_height;qsize=dims*(height_reference*cfg['asset_height_scale']/dims[2])
|
| 79 |
+
if cfg['scene_type']=='wall':
|
| 80 |
+
qz=up;qy=n;qx=norm(np.cross(qy,qz));qrot=np.stack([qx,qy,qz],1)
|
| 81 |
+
else:qrot=R.copy()
|
| 82 |
+
# Ray/plane intersection at the operator-chosen A24 target pixel.
|
| 83 |
+
tx,ty=cfg['target_xy_A24'];ray_c=np.array([(tx-K[24,0,2])/K[24,0,0],(ty-K[24,1,2])/K[24,1,1],1.]);ray_w=A[24,:3,:3].T@ray_c;den=float(n@ray_w)
|
| 84 |
+
if abs(den)<1e-9:raise RuntimeError('target ray parallel to support')
|
| 85 |
+
lam=-(n@camera_center+pd)/den
|
| 86 |
+
if lam<=0:raise RuntimeError('target support intersection behind camera')
|
| 87 |
+
mount=camera_center+lam*ray_w
|
| 88 |
+
Q=mount+n*qsize[1]/2 if cfg['scene_type']=='wall' else mount+up*qsize[2]/2
|
| 89 |
+
qcenter_local=(vertices-(vertices.min(0)+vertices.max(0))/2)*(qsize/dims);qworld=qcenter_local@qrot.T+Q
|
| 90 |
+
# Fixed world asset inside Q OBB by construction.
|
| 91 |
+
excess=float(np.maximum(np.abs(qcenter_local)-qsize/2,0).max());assert excess<1e-7
|
| 92 |
+
# Two real smooth trajectories; choose the sign with better key-frame framing at 10 degrees.
|
| 93 |
+
pivot=(P+Q)/2
|
| 94 |
+
def camera(deg,i,sign):
|
| 95 |
+
u=i/48;s=u*u*(3-2*u);Rw=rodrigues(up,np.deg2rad(sign*deg)*s);ca=np.linalg.inv(A[i])[:3,3];cb=pivot+Rw@(ca-pivot);rb=A[i,:3,:3]@Rw.T;b=np.eye(4);b[:3,:3]=rb;b[:3,3]=-rb@cb;return b
|
| 96 |
+
def framing_cost(sign):
|
| 97 |
+
cost=0
|
| 98 |
+
for i in (0,24,48):
|
| 99 |
+
B=camera(10,i,sign);cam=qworld@B[:3,:3].T+B[:3,3];uv=(cam@K[i].T);uv=uv[:,:2]/uv[:,2,None]
|
| 100 |
+
cost+=float(np.maximum(-uv[:,0],0).sum()+np.maximum(uv[:,0]-(W-1),0).sum()+np.maximum(-uv[:,1],0).sum()+np.maximum(uv[:,1]-(H-1),0).sum()+np.maximum(.05-cam[:,2],0).sum()*1000)
|
| 101 |
+
return cost
|
| 102 |
+
sign=-1 if framing_cost(-1)<=framing_cost(1) else 1
|
| 103 |
+
versions={}
|
| 104 |
+
for name,deg in [('small_4deg',4.),('orbit_10deg',10.)]:
|
| 105 |
+
B=np.stack([camera(deg,i,sign) for i in range(49)]);angles=[];centers=[];jumps=[]
|
| 106 |
+
for i in range(49):
|
| 107 |
+
angles.append(angle(B[i,:3,:3]@A[i,:3,:3].T));centers.append(np.linalg.inv(B[i])[:3,3])
|
| 108 |
+
if i:jumps.append(angle(B[i,:3,:3]@B[i-1,:3,:3].T))
|
| 109 |
+
np.savez_compressed(out/f'cameras_and_boxes_{name}.npz',K=K,w2c_A=A,w2c_B=B,P=P,Q=Q,P_size=psize,Q_size=qsize,P_rotation=R,Q_rotation=qrot,asset_vertices_local=qcenter_local,asset_faces=faces)
|
| 110 |
+
versions[name]={'relative_angle_deg_min':min(angles),'relative_angle_deg_max':max(angles),'max_adjacent_rotation_deg':max(jumps),'camera_center_start':centers[0].tolist(),'camera_center_mid':centers[24].tolist(),'camera_center_end':centers[-1].tolist(),'A_B_identical':bool(np.array_equal(A,B))}
|
| 111 |
+
# Support evidence and A-view placement preview. B has no real RGB; the A overlay is geometry only.
|
| 112 |
+
frame=cv2.imread(str(cd/'frames/024.png'));vis=frame.copy()
|
| 113 |
+
for x,y in zip(gx2[inl],gy2[inl]):
|
| 114 |
+
u=int(round(x*W/gw));v=int(round(y*H/gh))
|
| 115 |
+
if 0<=u<W and 0<=v<H:cv2.circle(vis,(u,v),1,(0,255,255),-1)
|
| 116 |
+
cv2.rectangle(vis,(x0,y0),(x1,y1),(0,255,255),2);cv2.circle(vis,(tx,ty),7,(255,0,0),2);cv2.putText(vis,f'inliers={inl.sum()} ratio={inl_ratio:.3f} rms={plane_rms:.5g}',(12,28),cv2.FONT_HERSHEY_SIMPLEX,.6,(0,255,255),2)
|
| 117 |
+
cv2.imwrite(str(out/'support_inliers_000024.png'),vis)
|
| 118 |
+
# Render P/Q wires in A and actual replacement mesh silhouette in A for placement review.
|
| 119 |
+
overlay=frame.copy();target=np.zeros((H,W),np.uint8)
|
| 120 |
+
for center,size,rot,color in [(P,psize,R,(0,0,255)),(Q,qsize,qrot,(255,0,0))]:
|
| 121 |
+
box=OrientedBoundingBox('box',center,size,rot,np.array([255,255,255],np.uint8));lines,_,bm,_=render_bbox_conditions([box],K[24],A[24],H,W,edge_width=3,fill_alpha=.28);wire=(lines.max(-1)>100)&(bm>0);overlay[wire]=color
|
| 122 |
+
cam=qworld@A[24,:3,:3].T+A[24,:3,3];pr=cam@K[24].T;uv=pr[:,:2]/pr[:,2,None];pts2=np.rint(np.clip(uv,-32760,32760)).astype(np.int32)
|
| 123 |
+
good=np.isfinite(uv).all(1)&(cam[:,2]>0);tri=faces[good[faces].all(1)]
|
| 124 |
+
for t in tri:cv2.fillConvexPoly(target,pts2[t],255,lineType=cv2.LINE_8)
|
| 125 |
+
sel=target>0;overlay[sel]=np.rint(.45*overlay[sel]+.55*np.array([255,0,255])).astype(np.uint8)
|
| 126 |
+
srcsel=masks[24];overlay[srcsel]=np.rint(.7*overlay[srcsel]+.3*np.array([0,255,0])).astype(np.uint8)
|
| 127 |
+
cv2.imwrite(str(out/'placement_A_000024.png'),overlay);cv2.imwrite(str(out/'target_mesh_A_000024.png'),target)
|
| 128 |
+
meta={'case_id':case,'number':num,'operation':'move_replace: delete source P and insert a different GLB asset at Q','source_video_sha256':json.loads((cd/'case.json').read_text())['source_sha256'],'source_mask_version':mask_stage+'; visible only; keyframes reviewed','reviewed_fully_occluded_frames':occluded,'scene_type':cfg['scene_type'],'asset_number':cfg['asset_number'],'asset_sha256':sha(ASSETS/f"{cfg['asset_number']}.glb"),'asset_coordinate_conversion':'GLB [x,y,z] -> Blender [x,-z,y]','metric_scale_known':False,'world_unit':'relative monocular units','support':{'rect_xyxy_A24':cfg['support_rect_xyxy'],'normal_world':n.tolist(),'d':float(pd),'inliers':int(inl.sum()),'inlier_ratio':inl_ratio,'rms_world':plane_rms,'target_xy_A24':cfg['target_xy_A24'],'mount_world':mount.tolist(),'evidence_image':'support_inliers_000024.png'},'P':{'center':P.tolist(),'size':psize.tolist(),'rotation':R.tolist(),'visible_height':visible_height,'amodal_estimate':amodal},'Q':{'center':Q.tolist(),'size':qsize.tolist(),'rotation':qrot.tolist(),'relative_height_control':cfg['asset_height_scale'],'height_reference_kind':cfg.get('asset_height_reference','visible_height_along_support_normal'),'mesh_vertices_inside_obb_max_excess':excess},'camera_versions':versions,'camera_sign':sign,'uncertainty':['monocular absolute scale unknown','source depth and support plane are VGGT estimates','target mesh projection has no scene occlusion rendering','outdoor source base is amodal estimate' if cfg['scene_type']=='outdoor' else 'hidden source geometry not observed is not included in visible mask'],'status':'geometry_plan_visual_review_pending'}
|
| 129 |
+
(out/'geometry_plan.json').write_text(json.dumps(meta,indent=2))
|
| 130 |
+
print(json.dumps({'case':case,'support_inlier_ratio':inl_ratio,'plane_rms':plane_rms,'P_size':psize.tolist(),'Q_size':qsize.tolist(),'camera_versions':versions,'output':str(out)}),flush=True)
|
| 131 |
+
|
| 132 |
+
if __name__=='__main__':
|
| 133 |
+
configs=json.loads((ROOT/os.environ.get('PRODUCTION_CONFIG','production_config.json')).read_text());wanted=sys.argv[1:]
|
| 134 |
+
for cfg in configs:
|
| 135 |
+
if wanted and str(cfg['number']) not in wanted:continue
|
| 136 |
+
run(cfg)
|
realcase/109/move_replace_mesh_v1/code/prepare_selected.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json,cv2,numpy as np,hashlib,os
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
ROOT=Path('/root/autodl-tmp/kimi_realcase_20261109')
|
| 4 |
+
INV=json.loads((ROOT/'inventory_sources.json').read_text())
|
| 5 |
+
CONFIG=json.loads((ROOT/os.environ.get('BATCH_CONFIG','first_batch_config.json')).read_text())
|
| 6 |
+
W,H=1280,704
|
| 7 |
+
|
| 8 |
+
def cover(fr,nearest=False):
|
| 9 |
+
h,w=fr.shape[:2];scale=max(W/w,H/h);nw,nh=round(w*scale),round(h*scale)
|
| 10 |
+
interp=cv2.INTER_NEAREST if nearest else cv2.INTER_AREA
|
| 11 |
+
fr=cv2.resize(fr,(nw,nh),interpolation=interp);x=(nw-W)//2;y=(nh-H)//2
|
| 12 |
+
return fr[y:y+H,x:x+W],{'source_wh':[w,h],'scale':scale,'resized_wh':[nw,nh],'crop_xy':[x,y],'output_wh':[W,H]}
|
| 13 |
+
|
| 14 |
+
def mask_score(r):
|
| 15 |
+
best=None
|
| 16 |
+
for m in r['mask_videos']:
|
| 17 |
+
vals=[s['nonzero_px'] or 0 for s in m['samples']];score=float(np.median(vals))
|
| 18 |
+
if best is None or score>best[0]:best=(score,m['file'])
|
| 19 |
+
if not best:raise RuntimeError('no dataset mask prompt candidate')
|
| 20 |
+
return best[1]
|
| 21 |
+
|
| 22 |
+
manifest=[]
|
| 23 |
+
for cfg in CONFIG:
|
| 24 |
+
r=INV['records'][cfg['inventory_index']]
|
| 25 |
+
assert r['source_sha256'] and r['probe']['frames_metadata']>=49
|
| 26 |
+
case=cfg['case_id'];cd=ROOT/'cases'/case;sd=ROOT/'samples'/case
|
| 27 |
+
if cd.exists():
|
| 28 |
+
existing=json.loads((cd/'case.json').read_text());manifest.append(existing)
|
| 29 |
+
print(json.dumps({'case':case,'status':'already_preserved'}),flush=True)
|
| 30 |
+
continue
|
| 31 |
+
for sub in ['frames','segmentation/lamp0']:(cd/sub).mkdir(parents=True,exist_ok=False)
|
| 32 |
+
sd.mkdir(parents=True)
|
| 33 |
+
src=r['source_path'];mask_file=cfg.get('mask_prompt_video') or mask_score(r);mask_src=mask_file if Path(mask_file).is_absolute() else str(Path(r['raw_dir'])/mask_file)
|
| 34 |
+
static_mask=mask_src.lower().endswith(('.png','.jpg','.jpeg'))
|
| 35 |
+
cap=cv2.VideoCapture(src);mcap=None if static_mask else cv2.VideoCapture(mask_src)
|
| 36 |
+
fps=float(cap.get(5));n=int(cap.get(7));mfps=10.0 if static_mask else float(mcap.get(5));mn=1 if static_mask else int(mcap.get(7))
|
| 37 |
+
frame_map=[];transform=None
|
| 38 |
+
for i in range(49):
|
| 39 |
+
si=min(int(round(i*fps/10.0)),n-1);mi=min(int(round(i*mfps/10.0)),mn-1)
|
| 40 |
+
cap.set(cv2.CAP_PROP_POS_FRAMES,si);ok,fr=cap.read()
|
| 41 |
+
if static_mask:
|
| 42 |
+
mfr=cv2.imread(mask_src);mok=mfr is not None
|
| 43 |
+
else:
|
| 44 |
+
mcap.set(cv2.CAP_PROP_POS_FRAMES,mi);mok,mfr=mcap.read()
|
| 45 |
+
if not ok or not mok:raise RuntimeError(f'decode failed {case} frame {i} source {si} mask {mi}')
|
| 46 |
+
fr,transform=cover(fr);mfr,_=cover(mfr,nearest=True)
|
| 47 |
+
mask=(mfr.mean(axis=2)>127).astype(np.uint8)*255
|
| 48 |
+
cv2.imwrite(str(cd/'frames'/f'{i:03}.png'),fr)
|
| 49 |
+
cv2.imwrite(str(cd/'segmentation/lamp0'/f'{i:03}.png'),mask)
|
| 50 |
+
frame_map.append({'output_frame':i,'source_frame':si,'mask_source_frame':mi,'source_time_seconds':si/fps,'mask_time_seconds':mi/mfps})
|
| 51 |
+
cap.release()
|
| 52 |
+
if not static_mask:mcap.release()
|
| 53 |
+
cfg2=dict(cfg);cfg2.update({'source_path':src,'source_sha256':r['source_sha256'],'source_size':r['source_size'],'raw_dir':r['raw_dir'],'mask_prompt_video':mask_src,'mask_prompt_semantics':'dataset-derived candidate prompt only; completeness and identity require visual review','source_probe':r['probe'],'frame_map':frame_map,'cover_transform':transform,'status':'prepared'})
|
| 54 |
+
(cd/'case.json').write_text(json.dumps(cfg2,ensure_ascii=False,indent=2))
|
| 55 |
+
manifest.append(cfg2)
|
| 56 |
+
print(json.dumps({'case':case,'frames':49,'mask_prompt':mask_file,'source_sha256':r['source_sha256']}),flush=True)
|
| 57 |
+
(ROOT/os.environ.get('BATCH_OUTPUT','first_batch_prepared.json')).write_text(json.dumps(manifest,ensure_ascii=False,indent=2))
|
realcase/109/move_replace_mesh_v1/code/render_conditions.py
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os,sys,json,ast,hashlib,importlib.util,shutil
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
import numpy as np,cv2
|
| 4 |
+
from PIL import Image
|
| 5 |
+
ROOT=Path('/root/autodl-tmp/kimi_realcase_20261109')
|
| 6 |
+
PROD=Path('/root/autodl-tmp/real_video_condition_repro_20261105_v1')
|
| 7 |
+
CORE=PROD/'tools/old671';LOADER=Path('/root/autodl-tmp/codex_user8_20261108/bbox_dataset_original.py')
|
| 8 |
+
sys.path.insert(0,str(CORE))
|
| 9 |
+
from bbox import OrientedBoundingBox,render_bbox_conditions
|
| 10 |
+
W,H=1280,704
|
| 11 |
+
COLORS={'purple':[.72,.02,1.],'green':[.02,1.,.03],'blue':[.02,.08,1.],'warm':[1.,.75,.42]}
|
| 12 |
+
LEVELS={'low':1000,'medium':4000,'high':12000}
|
| 13 |
+
PALETTE=np.array([[0,0,0],[255,0,0],[0,0,255],[255,255,0]],np.uint8)
|
| 14 |
+
|
| 15 |
+
def sha(p):
|
| 16 |
+
h=hashlib.sha256()
|
| 17 |
+
with open(p,'rb') as f:
|
| 18 |
+
for b in iter(lambda:f.read(4*1024*1024),b''):h.update(b)
|
| 19 |
+
return h.hexdigest()
|
| 20 |
+
def srgb(lin):return np.where(lin<=.0031308,12.92*lin,1.055*np.power(np.maximum(lin,0),1/2.4)-.055)
|
| 21 |
+
def angle(R):return float(np.degrees(np.arccos(np.clip((np.trace(R)-1)/2,-1,1))))
|
| 22 |
+
def load_joint():
|
| 23 |
+
class Native704(ast.NodeTransformer):
|
| 24 |
+
def visit_Constant(self,node):
|
| 25 |
+
if type(node.value) is int and node.value in (352,640):return ast.copy_location(ast.Constant(value={352:704,640:1280}[node.value]),node)
|
| 26 |
+
return node
|
| 27 |
+
tree=Native704().visit(ast.parse(LOADER.read_text()));ast.fix_missing_locations(tree);ns={'__name__':'native704_loader'};exec(compile(tree,str(LOADER),'exec'),ns);return ns['joint_frames']
|
| 28 |
+
def project_mesh(vertices,faces,K,w2c):
|
| 29 |
+
cam=vertices@w2c[:3,:3].T+w2c[:3,3];pr=cam@K.T
|
| 30 |
+
with np.errstate(divide='ignore',invalid='ignore'):uv=pr[:,:2]/pr[:,2,None]
|
| 31 |
+
good=np.isfinite(uv).all(1)&(cam[:,2]>0);tri=faces[good[faces].all(1)];points=np.rint(np.clip(uv,-32760,32760)).astype(np.int32);mask=np.zeros((H,W),np.uint8)
|
| 32 |
+
for t in tri:
|
| 33 |
+
p=points[t]
|
| 34 |
+
if p[:,0].max()<0 or p[:,0].min()>=W or p[:,1].max()<0 or p[:,1].min()>=H:continue
|
| 35 |
+
cv2.fillConvexPoly(mask,p,255,lineType=cv2.LINE_8)
|
| 36 |
+
return mask
|
| 37 |
+
|
| 38 |
+
def run(cfg,only_version=None):
|
| 39 |
+
case=cfg['case_id'];num=cfg['number'];rev=os.environ.get('REVISION',cfg.get('revision','move_replace_mesh_v1'));cd=ROOT/'cases'/case;sd=ROOT/'samples'/case;base=ROOT/'outputs'/str(num)/rev;mask_stage=cfg.get('mask_stage',os.environ.get('MASK_STAGE','step8_sam2_candidate'))
|
| 40 |
+
joint_frames=load_joint();pcfpath=PROD/'tools/code_user_specified/render_pcf.py';spec=importlib.util.spec_from_file_location('prod_pcf',pcfpath);mod=importlib.util.module_from_spec(spec);spec.loader.exec_module(mod);renderer=mod.Renderer(W,H)
|
| 41 |
+
versions=only_version or ['small_4deg','orbit_10deg'];summary={}
|
| 42 |
+
for version in versions:
|
| 43 |
+
out=base/version
|
| 44 |
+
if out.exists():raise FileExistsError(out)
|
| 45 |
+
for sub in ['pcf','geometry/P/mask','geometry/P/wire','geometry/Q/mask','geometry/Q/wire','move_replace/labels','move_replace/joint','move_replace/target_lamp_mask','source_visible_mask_B_estimated','source_frames','source_visible_mask']:(out/sub).mkdir(parents=True,exist_ok=True)
|
| 46 |
+
for c in COLORS:(out/'move_replace/lighting'/c/'color').mkdir(parents=True)
|
| 47 |
+
for level in LEVELS:(out/'move_replace/intensity'/level).mkdir(parents=True)
|
| 48 |
+
data=np.load(base/f'cameras_and_boxes_{version}.npz');A=data['w2c_A'];B=data['w2c_B'];K=data['K'];P=data['P'];Q=data['Q'];psize=data['P_size'];qsize=data['Q_size'];prot=data['P_rotation'];qrot=data['Q_rotation'];local=data['asset_vertices_local'];faces=data['asset_faces'];world=local@qrot.T+Q
|
| 49 |
+
shutil.copy2(base/f'cameras_and_boxes_{version}.npz',out/'cameras_and_boxes.npz')
|
| 50 |
+
for i in range(49):
|
| 51 |
+
f=f'{i:06}.png';(out/'source_frames'/f).symlink_to(cd/'frames'/f'{i:03}.png');(out/'source_visible_mask'/f).symlink_to(sd/mask_stage/'mask49'/f)
|
| 52 |
+
plan=json.loads((base/'geometry_plan.json').read_text());(out/'source_amodal_estimate.json').write_text(json.dumps({'P_amodal':plan['P']['amodal_estimate'],'visibility':'visible mask contains observed pixels only; estimated hidden geometry is separate'},indent=2))
|
| 53 |
+
vggt=np.load(sd/'step3_worldpoints/vggt_raw.npz');wp=vggt['world_points'];gh,gw=wp.shape[1:3]
|
| 54 |
+
records=[];target_border_frames=[];source_outside_max=0;target_outside_max=0
|
| 55 |
+
for i in range(49):
|
| 56 |
+
f=f'{i:06}.png';Kp=K[i]
|
| 57 |
+
rgb,_=renderer.frame(np.linalg.inv(B[i]@np.linalg.inv(A[0])),Kp,.5);rgb=rgb.astype(np.uint8);cv2.imwrite(str(out/'pcf'/f),cv2.cvtColor(rgb,cv2.COLOR_RGB2BGR))
|
| 58 |
+
masks={};wires={}
|
| 59 |
+
for name,center,size,rot in [('P',P,psize,prot),('Q',Q,qsize,qrot)]:
|
| 60 |
+
obb=OrientedBoundingBox(name,center,size,rot,np.array([255,255,255],np.uint8));lines,_,mask,_=render_bbox_conditions([obb],Kp,B[i],H,W,edge_width=3,fill_alpha=.28);wire=((lines.max(-1)>100)&(mask>0)).astype(np.uint8)*255;masks[name]=mask>0;wires[name]=wire>0;cv2.imwrite(str(out/'geometry'/name/'mask'/f),mask);cv2.imwrite(str(out/'geometry'/name/'wire'/f),wire)
|
| 61 |
+
labels=masks['P'].astype(np.uint8)+2*masks['Q'].astype(np.uint8);cv2.imwrite(str(out/'move_replace/labels'/f),labels)
|
| 62 |
+
recipe={'schema':'pcf_bbox_factored.v003','background':'bbox_v3/pcf','labels':'bbox_v3/move_replace/labels','source_wire':'bbox_v3/geometry/P/wire','target_wire':'bbox_v3/geometry/Q/wire','palette_rgb':PALETTE.tolist(),'fill_alpha':.58,'background_alpha':.42}
|
| 63 |
+
(out/'move_replace/RENDER.json').write_text(json.dumps(recipe,indent=2))
|
| 64 |
+
# joint_frames is called below once all 49 label/PCF frames exist.
|
| 65 |
+
target=project_mesh(world,faces,Kp,B[i]);cv2.imwrite(str(out/'move_replace/target_lamp_mask'/f),target);sel=target>0
|
| 66 |
+
outside=int(np.count_nonzero(sel&~masks['Q']));target_outside_max=max(target_outside_max,outside)
|
| 67 |
+
border=bool(sel.any() and (sel[0].any() or sel[-1].any() or sel[:,0].any() or sel[:,-1].any()))
|
| 68 |
+
if border:target_border_frames.append(i)
|
| 69 |
+
# Approximate source visible mask in B solely for geometric self-consistency checking.
|
| 70 |
+
sm=cv2.imread(str(sd/mask_stage/'mask49'/f),0)
|
| 71 |
+
if i in cfg.get('allow_fully_occluded_frames',[]) and not np.any(sm>0):
|
| 72 |
+
sw=np.zeros((H,W),np.uint8);cv2.imwrite(str(out/'source_visible_mask_B_estimated'/f),sw);source_outside=0
|
| 73 |
+
else:
|
| 74 |
+
ys,xs=np.where(sm>0);yy=np.minimum((ys*gh/H).astype(int),gh-1);xx=np.minimum((xs*gw/W).astype(int),gw-1);pw=wp[i,yy,xx];cam=pw@A[i,:3,:3].T+A[i,:3,3];z=cam[:,2];z=z[np.isfinite(z)&(z>0)];depth=float(np.median(z));corners=np.array([[0,0],[W-1,0],[W-1,H-1],[0,H-1]],np.float32);zz=np.full(4,depth);cp=np.stack([(corners[:,0]-Kp[0,2])*zz/Kp[0,0],(corners[:,1]-Kp[1,2])*zz/Kp[1,1],zz],1);cw=(cp-A[i,:3,3])@A[i,:3,:3];bc=cw@B[i,:3,:3].T+B[i,:3,3];bp=bc@Kp.T;uv=bp[:,:2]/bp[:,2,None];M=cv2.getPerspectiveTransform(corners,uv.astype(np.float32));sw=cv2.warpPerspective(sm,M,(W,H),flags=cv2.INTER_NEAREST);cv2.imwrite(str(out/'source_visible_mask_B_estimated'/f),sw);source_outside=int(np.count_nonzero((sw>0)&~masks['P']));source_outside_max=max(source_outside_max,source_outside)
|
| 75 |
+
ys,xs=np.where(sel);left,right=(int(xs.min()),int(xs.max()+1)) if len(xs) else (0,1);top,bottom=(int(ys.min()),int(ys.max()+1)) if len(ys) else (0,1)
|
| 76 |
+
for typ,vals in [('color',COLORS),('intensity',{k:float(np.log1p(v/100)/np.log1p(100000/100)) for k,v in LEVELS.items()})]:
|
| 77 |
+
for name,value in vals.items():
|
| 78 |
+
rgbv=np.asarray(value if typ=='color' else [value]*3,np.float32);roi=np.zeros((bottom-top,right-left,3),np.float32);roi[sel[top:bottom,left:right]]=rgbv;folder=out/'move_replace'/(Path('lighting')/name/'color' if typ=='color' else Path('intensity')/name);np.savez_compressed(folder/f'{i:06}.npz',**{typ:roi},origin_xy=np.array([left,top]),full_shape_hwc=np.array([H,W,3]));full=np.zeros((H,W,3),np.uint8);show=srgb(roi) if typ=='color' else roi;full[top:bottom,left:right]=np.rint(np.clip(show,0,1)*255).astype(np.uint8);cv2.imwrite(str(folder/f),cv2.cvtColor(full,cv2.COLOR_RGB2BGR))
|
| 79 |
+
records.append({'frame':i,'target_pixels':int(sel.sum()),'target_outside_Q':outside,'source_estimated_outside_P':source_outside,'target_touches_border':border})
|
| 80 |
+
if i%12==0:print(num,version,i,flush=True)
|
| 81 |
+
frames=joint_frames(str(out/'move_replace'),str(out),str(out));assert frames.shape==(49,H,W,3)
|
| 82 |
+
for i,fr in enumerate(frames):Image.fromarray(fr).save(out/'move_replace/joint'/f'{i:06}.png',compress_level=1)
|
| 83 |
+
# Camera evidence measures the perturbation itself, separately from natural A motion.
|
| 84 |
+
angles=[];step=[];disp=[];centers=[]
|
| 85 |
+
for i in range(49):
|
| 86 |
+
angles.append(angle(B[i,:3,:3]@A[i,:3,:3].T));centers.append(np.linalg.inv(B[i])[:3,3]);disp.append(float(np.linalg.norm(centers[-1]-np.linalg.inv(A[i])[:3,3])))
|
| 87 |
+
if i:
|
| 88 |
+
d0=B[i-1]@np.linalg.inv(A[i-1]);d1=B[i]@np.linalg.inv(A[i]);step.append(angle(d1[:3,:3]@d0[:3,:3].T))
|
| 89 |
+
# Preview: A source+SAM | A geometry placement | B joint / target | color | intensity.
|
| 90 |
+
for i in (0,24,48):
|
| 91 |
+
f=f'{i:06}.png';src=cv2.imread(str(cd/'frames'/f'{i:03}.png'));sm=cv2.imread(str(sd/mask_stage/'mask49'/f),0)>0;src[sm]=np.rint(.55*src[sm]+.45*np.array([0,255,0])).astype(np.uint8)
|
| 92 |
+
place=cv2.imread(str(cd/'frames'/f'{i:03}.png'))
|
| 93 |
+
for center,size,rot,color in [(P,psize,prot,(0,0,255)),(Q,qsize,qrot,(255,0,0))]:
|
| 94 |
+
obb=OrientedBoundingBox('box',center,size,rot,np.array([255,255,255],np.uint8));lines,_,bm,_=render_bbox_conditions([obb],K[i],A[i],H,W,edge_width=3,fill_alpha=.28);wire=(lines.max(-1)>100)&(bm>0);place[wire]=color
|
| 95 |
+
am=project_mesh(world,faces,K[i],A[i])>0;place[am]=np.rint(.45*place[am]+.55*np.array([255,0,255])).astype(np.uint8)
|
| 96 |
+
imgs=[src,place,cv2.imread(str(out/'move_replace/joint'/f)),cv2.imread(str(out/'move_replace/target_lamp_mask'/f)),cv2.imread(str(out/'move_replace/lighting/purple/color'/f)),cv2.imread(str(out/'move_replace/intensity/medium'/f))]
|
| 97 |
+
labels_img=['A source + visible SAM','A P/Q + replacement geometry (not edited RGB)','B original PCF + 3D boxes','B actual GLB silhouette','B purple linear-control sRGB preview','B medium experimental intensity']
|
| 98 |
+
sheet=np.zeros((704,1920,3),np.uint8)
|
| 99 |
+
for j,(im,text) in enumerate(zip(imgs,labels_img)):
|
| 100 |
+
x=(j%3)*640;y=(j//3)*352;sheet[y:y+352,x:x+640]=cv2.resize(im,(640,352));cv2.rectangle(sheet,(x,y),(x+640,y+24),(0,0,0),-1);cv2.putText(sheet,f'{text} f{i}',(x+5,y+17),cv2.FONT_HERSHEY_SIMPLEX,.43,(255,255,255),1,cv2.LINE_AA)
|
| 101 |
+
cv2.imwrite(str(out/f'preview_{i:06}.jpg'),sheet,[cv2.IMWRITE_JPEG_QUALITY,91])
|
| 102 |
+
# Independent whole-frame file and support checks.
|
| 103 |
+
failures=[]
|
| 104 |
+
for sub in ['pcf','geometry/P/mask','geometry/P/wire','geometry/Q/mask','geometry/Q/wire','move_replace/labels','move_replace/joint','move_replace/target_lamp_mask','source_visible_mask_B_estimated']:
|
| 105 |
+
paths=sorted((out/sub).glob('*.png'))
|
| 106 |
+
if len(paths)!=49:failures.append(f'{sub}: {len(paths)} files')
|
| 107 |
+
for p in paths:
|
| 108 |
+
im=cv2.imread(str(p),cv2.IMREAD_UNCHANGED)
|
| 109 |
+
if im is None or im.shape[:2]!=(H,W):failures.append(f'{p.name} unreadable/wrong size in {sub}')
|
| 110 |
+
support_mismatches=0
|
| 111 |
+
for i in range(49):
|
| 112 |
+
f=f'{i:06}.png';sel=cv2.imread(str(out/'move_replace/target_lamp_mask'/f),0)>0
|
| 113 |
+
for typ,names in [('color',COLORS),('intensity',LEVELS)]:
|
| 114 |
+
for name in names:
|
| 115 |
+
folder=out/'move_replace'/(Path('lighting')/name/'color' if typ=='color' else Path('intensity')/name);z=np.load(folder/f'{i:06}.npz');a=z[typ];x,y=map(int,z['origin_xy']);full=np.zeros((H,W),bool);full[y:y+a.shape[0],x:x+a.shape[1]]=np.any(a!=0,axis=2)
|
| 116 |
+
if not np.array_equal(full,sel):support_mismatches+=1
|
| 117 |
+
if support_mismatches:failures.append(f'{support_mismatches} color/intensity support mismatches')
|
| 118 |
+
if target_outside_max:failures.append(f'target outside Q max {target_outside_max}')
|
| 119 |
+
if source_outside_max:failures.append(f'estimated source warp outside P max {source_outside_max}')
|
| 120 |
+
if target_border_frames:failures.append(f'target touches border frames {target_border_frames}')
|
| 121 |
+
validation={'frames':49,'resolution':[W,H],'records':records,'max_target_outside_Q':target_outside_max,'max_source_estimated_outside_P':source_outside_max,'target_border_frames':target_border_frames,'color_intensity_support_mismatches':support_mismatches,'camera':{'relative_angle_min':min(angles),'relative_angle_max':max(angles),'max_relative_perturbation_step_deg':max(step),'displacement_min':min(disp),'displacement_max':max(disp),'A_B_identical':bool(np.array_equal(A,B))},'failures':failures,'numeric_state':'pass' if not failures else 'fail','visual_state':'pending','loader_state':'original joint_frames executed; full legacy load_row conflicts with silhouette support because it asserts support == target bbox; not called as acceptance','model_inference':'not_run','target_mesh_occlusion':'all GLB triangles projected; scene occlusion and dynamic foreground not resolved'}
|
| 122 |
+
(out/'validation.json').write_text(json.dumps(validation,indent=2))
|
| 123 |
+
manifest={'case_id':case,'number':num,'revision':rev,'camera_version':version,'operation':'move_replace','source_sha256':json.loads((cd/'case.json').read_text())['source_sha256'],'asset_sha256':sha(Path('/root/autodl-tmp/codex_user8_move_replace_20261109/realcase_new_models')/f"{cfg['asset_number']}.glb"),'pcf_sha256':sha(pcfpath),'bbox_sha256':sha(CORE/'bbox.py'),'joint_loader_sha256':sha(LOADER),'frames':49,'resolution':[W,H],'color_linear_controls':COLORS,'intensity_legacy_log_controls_not_measured':LEVELS,'intensity_encoding':'log1p(L/100)/log1p(100000/100), experimental legacy adapter; not HF v2 raw gamma and not measured lumens','status':'experimental_not_quality_accepted','geometry_plan':'../geometry_plan.json','validation':'validation.json','target_B_RGB':'not_observed_not_supplied','uncertainty':plan['uncertainty']}
|
| 124 |
+
(out/'manifest.json').write_text(json.dumps(manifest,indent=2));summary[version]={'numeric_state':validation['numeric_state'],'failures':failures,'camera':validation['camera']}
|
| 125 |
+
(base/'batch_summary.json').write_text(json.dumps({'case_id':case,'versions':summary,'status':'experimental_not_quality_accepted'},indent=2))
|
| 126 |
+
print(json.dumps({'case':case,'versions':summary}),flush=True)
|
| 127 |
+
|
| 128 |
+
if __name__=='__main__':
|
| 129 |
+
configs=json.loads((ROOT/os.environ.get('PRODUCTION_CONFIG','production_config.json')).read_text());wanted=sys.argv[1:]
|
| 130 |
+
for cfg in configs:
|
| 131 |
+
if wanted and str(cfg['number']) not in wanted:continue
|
| 132 |
+
run(cfg)
|
realcase/109/move_replace_mesh_v1/code/render_pcf.py
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
import argparse
|
| 3 |
+
import json
|
| 4 |
+
import shutil
|
| 5 |
+
import subprocess
|
| 6 |
+
import time
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
|
| 9 |
+
import cv2
|
| 10 |
+
import numpy as np
|
| 11 |
+
import torch
|
| 12 |
+
import triton as tr
|
| 13 |
+
import triton.language as tl
|
| 14 |
+
import triton.language.extra.cuda.libdevice as lib
|
| 15 |
+
from scipy.spatial.transform import Rotation, Slerp
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
@tr.jit
|
| 19 |
+
def field(x, y, z, ball, rod):
|
| 20 |
+
# Nodes at integer grid coordinates; no finite array or moving window.
|
| 21 |
+
qx = x - tl.floor(x + 0.5)
|
| 22 |
+
qy = y - tl.floor(y + 0.5)
|
| 23 |
+
qz = z - tl.floor(z + 0.5)
|
| 24 |
+
sx, sy, sz = qx*qx, qy*qy, qz*qz
|
| 25 |
+
ds = tl.sqrt(sx + sy + sz) - ball
|
| 26 |
+
dxy = tl.sqrt(sx + sy) - rod
|
| 27 |
+
dxz = tl.sqrt(sx + sz) - rod
|
| 28 |
+
dyz = tl.sqrt(sy + sz) - rod
|
| 29 |
+
return tl.minimum(ds, tl.minimum(dxy, tl.minimum(dxz, dyz)))
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
@tr.jit
|
| 33 |
+
def render_kernel(CAM, OUT, DEPTH, W: tl.constexpr, H: tl.constexpr,
|
| 34 |
+
BALL: tl.constexpr, ROD: tl.constexpr, FAR: tl.constexpr,
|
| 35 |
+
STEPS: tl.constexpr, BLOCK: tl.constexpr,
|
| 36 |
+
DIRECTION_RGB: tl.constexpr, BACKGROUND_ONLY: tl.constexpr):
|
| 37 |
+
i = tl.program_id(0)*BLOCK + tl.arange(0, BLOCK)
|
| 38 |
+
valid = i < W*H
|
| 39 |
+
px = (i % W - tl.load(CAM+2)) / tl.load(CAM)
|
| 40 |
+
py = (i // W - tl.load(CAM+3)) / tl.load(CAM+1)
|
| 41 |
+
inv = tl.rsqrt(px*px + py*py + 1.)
|
| 42 |
+
px, py, pz = px*inv, py*inv, inv
|
| 43 |
+
dx = tl.load(CAM+4)*px + tl.load(CAM+5)*py + tl.load(CAM+6)*pz
|
| 44 |
+
dy = tl.load(CAM+7)*px + tl.load(CAM+8)*py + tl.load(CAM+9)*pz
|
| 45 |
+
dz = tl.load(CAM+10)*px + tl.load(CAM+11)*py + tl.load(CAM+12)*pz
|
| 46 |
+
ox, oy, oz = tl.load(CAM+13), tl.load(CAM+14), tl.load(CAM+15)
|
| 47 |
+
t = tl.full((BLOCK,), .002, tl.float32)
|
| 48 |
+
hit = tl.full((BLOCK,), False, tl.int1)
|
| 49 |
+
active = valid & (not BACKGROUND_ONLY)
|
| 50 |
+
step = 0
|
| 51 |
+
while (tl.sum(active.to(tl.int32), 0) > 0) & (step < STEPS):
|
| 52 |
+
dist = field(ox+t*dx, oy+t*dy, oz+t*dz, BALL, ROD)
|
| 53 |
+
# abs also handles an origin inside a scaffold solid: find the exit.
|
| 54 |
+
new_hit = active & (tl.abs(dist) < .00015)
|
| 55 |
+
hit = hit | new_hit
|
| 56 |
+
active = active & ~new_hit
|
| 57 |
+
t = tl.where(active, t + tl.maximum(tl.abs(dist)*.95, .000075), t)
|
| 58 |
+
active = active & (t < FAR)
|
| 59 |
+
step += 1
|
| 60 |
+
x, y, z = ox+t*dx, oy+t*dy, oz+t*dz
|
| 61 |
+
e = .0003
|
| 62 |
+
nx = field(x+e,y,z,BALL,ROD)-field(x-e,y,z,BALL,ROD)
|
| 63 |
+
ny = field(x,y+e,z,BALL,ROD)-field(x,y-e,z,BALL,ROD)
|
| 64 |
+
nz = field(x,y,z+e,BALL,ROD)-field(x,y,z-e,BALL,ROD)
|
| 65 |
+
nn = tl.rsqrt(nx*nx+ny*ny+nz*nz+1.e-12)
|
| 66 |
+
diffuse = .55 + .45*tl.maximum(0., (nx*.36-ny*.80-nz*.48)*nn)
|
| 67 |
+
qx, qy, qz = x-tl.floor(x+.5), y-tl.floor(y+.5), z-tl.floor(z+.5)
|
| 68 |
+
sphere = tl.sqrt(qx*qx+qy*qy+qz*qz)-BALL < .0005
|
| 69 |
+
# Directional hue map: independent of translation and scaffold spacing.
|
| 70 |
+
lon = lib.atan2(dx, dz)
|
| 71 |
+
lat = lib.asin(tl.minimum(1., tl.maximum(-1., -dy)))
|
| 72 |
+
hue = lon/6.283185307179586+.5
|
| 73 |
+
rr = tl.minimum(1., tl.maximum(0., tl.abs(hue*6.-3.)-1.))
|
| 74 |
+
gg = tl.minimum(1., tl.maximum(0., 2.-tl.abs(hue*6.-2.)))
|
| 75 |
+
bb = tl.minimum(1., tl.maximum(0., 2.-tl.abs(hue*6.-4.)))
|
| 76 |
+
sat = .68 * (1.-.35*tl.abs(lat)/1.5707963267948966)
|
| 77 |
+
val = .86 + .10*tl.cos(lat*2.)
|
| 78 |
+
er, eg, eb = val*(1.-sat+sat*rr), val*(1.-sat+sat*gg), val*(1.-sat+sat*bb)
|
| 79 |
+
if DIRECTION_RGB:
|
| 80 |
+
# Continuous world-direction map, including at the poles. The base
|
| 81 |
+
# RGB map distinguishes signed latitude; graticule is decorative.
|
| 82 |
+
er, eg, eb = (dx+1.)*.5, (dy+1.)*.5, (dz+1.)*.5
|
| 83 |
+
# Fine white angular grid matches the visual motif of Wonder Fig. 4.
|
| 84 |
+
angle = 0.2617993877991494
|
| 85 |
+
glon = tl.abs(lon/angle-tl.floor(lon/angle+.5))*angle*tl.cos(lat)
|
| 86 |
+
glat = tl.abs(lat/angle-tl.floor(lat/angle+.5))*angle
|
| 87 |
+
aa = .75/tl.load(CAM)
|
| 88 |
+
grid = 1.-tl.minimum(1., tl.maximum(0., (tl.minimum(glon,glat)-aa)/(aa+1.e-7)))
|
| 89 |
+
if DIRECTION_RGB:
|
| 90 |
+
# Longitude is undefined at the poles: fade the angular overlay there.
|
| 91 |
+
grid *= tl.minimum(1., tl.sqrt(dx*dx+dz*dz)/.1)
|
| 92 |
+
er, eg, eb = er+(1.-er)*grid*.55, eg+(1.-eg)*grid*.55, eb+(1.-eb)*grid*.55
|
| 93 |
+
cr = tl.where(sphere, .92, .26)*diffuse
|
| 94 |
+
cg = tl.where(sphere, .28, .29)*diffuse
|
| 95 |
+
cb = tl.where(sphere, .16, .31)*diffuse
|
| 96 |
+
# Far attenuation reduces subpixel aliasing; world geometry remains fixed.
|
| 97 |
+
alpha = tl.where(hit, tl.exp(-tl.maximum(t-2.,0.)/8.), 0.)
|
| 98 |
+
cr, cg, cb = er*(1.-alpha)+cr*alpha, eg*(1.-alpha)+cg*alpha, eb*(1.-alpha)+cb*alpha
|
| 99 |
+
tl.store(OUT+3*i, (255.*cr).to(tl.uint8), valid)
|
| 100 |
+
tl.store(OUT+3*i+1, (255.*cg).to(tl.uint8), valid)
|
| 101 |
+
tl.store(OUT+3*i+2, (255.*cb).to(tl.uint8), valid)
|
| 102 |
+
tl.store(DEPTH+i, tl.where(hit,t,tl.where(active,-2.,-1.)),valid)
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
class Renderer:
|
| 106 |
+
def __init__(self, width=832, height=480, aa=2, far=64., steps=4096, environment='direction_rgb'):
|
| 107 |
+
self.width,self.height,self.aa,self.far,self.steps=width,height,aa,far,steps
|
| 108 |
+
self.environment=environment
|
| 109 |
+
self.rgb=torch.empty((height*aa,width*aa,3),device='cuda',dtype=torch.uint8)
|
| 110 |
+
self.depth=torch.empty((height*aa,width*aa),device='cuda')
|
| 111 |
+
|
| 112 |
+
def frame(self, c2w, K, spacing, radius=.05, rod=.008, background_only=False):
|
| 113 |
+
# The initial camera lies at a cell center, for every spacing variant.
|
| 114 |
+
# This phase is fixed for the whole trajectory, never recentered.
|
| 115 |
+
# Reduce only the evaluation coordinate of the periodic renderer.
|
| 116 |
+
# This is algebraically identical to the fixed infinite lattice, and
|
| 117 |
+
# avoids losing precision in X-round(X). Keep actual memory addresses
|
| 118 |
+
# unwrapped; this modulo is not a camera-following grid translation.
|
| 119 |
+
center=np.remainder(c2w[:3,3].astype(np.float64)/spacing + .5, 1.)
|
| 120 |
+
k=K.copy();k[:2,:]*=self.aa
|
| 121 |
+
k[0,2]+=(self.aa-1)*.5;k[1,2]+=(self.aa-1)*.5
|
| 122 |
+
packed=np.r_[k[0,0],k[1,1],k[0,2],k[1,2],c2w[:3,:3].ravel(),center].astype('float32')
|
| 123 |
+
cam=torch.tensor(packed,device='cuda')
|
| 124 |
+
w,h=self.width*self.aa,self.height*self.aa
|
| 125 |
+
render_kernel[(tr.cdiv(w*h,128),)](cam,self.rgb,self.depth,w,h,radius,rod,self.far,self.steps,128,
|
| 126 |
+
self.environment=='direction_rgb',background_only)
|
| 127 |
+
rgb=self.rgb.cpu().numpy()
|
| 128 |
+
if self.aa>1: rgb=cv2.resize(rgb,(self.width,self.height),interpolation=cv2.INTER_AREA)
|
| 129 |
+
dep=self.depth[::self.aa,::self.aa].cpu().numpy()
|
| 130 |
+
return rgb,dep
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
def make_trajectories(root, out, items=(4,10,15)):
|
| 134 |
+
out.mkdir(parents=True,exist_ok=True)
|
| 135 |
+
rows=[json.loads(x) for x in (root/'test/000000/index.jsonl').read_text().splitlines()]
|
| 136 |
+
paths=[]
|
| 137 |
+
for item in items:
|
| 138 |
+
row=next(x for x in rows if x['source_item_index']==item)
|
| 139 |
+
d=np.load(root/row['cameras']); t=d['timestamps_us'].astype(float)/1e6;t-=t[0]
|
| 140 |
+
assert t[-1]>=5., (item,t[-1])
|
| 141 |
+
target=np.arange(81)/16.;poses=d['c2w'].astype(float)
|
| 142 |
+
result=np.repeat(np.eye(4)[None],81,axis=0)
|
| 143 |
+
result[:,:3,:3]=Slerp(t,Rotation.from_matrix(poses[:,:3,:3]))(target).as_matrix()
|
| 144 |
+
for j in range(3):result[:,j,3]=np.interp(target,t,poses[:,j,3])
|
| 145 |
+
# One rigid gauge transform only; preserve metric scale.
|
| 146 |
+
result=np.linalg.inv(result[0])[None]@result
|
| 147 |
+
K=np.stack([np.interp(target,t,d['intrinsics'][:,i,j]) for i in range(3) for j in range(3)],axis=-1).reshape(81,3,3)
|
| 148 |
+
h,w=d['image_size_hw'];scale=max(832/w,480/h)
|
| 149 |
+
cropx=(w*scale-832)/2; cropy=(h*scale-480)/2
|
| 150 |
+
K[:,:2,:]*=scale
|
| 151 |
+
K[:,0,2]+=(scale-1)*.5-cropx;K[:,1,2]+=(scale-1)*.5-cropy
|
| 152 |
+
name=f're10k_{item:02d}_{row["source_key"]}'
|
| 153 |
+
path=out/(name+'.npz')
|
| 154 |
+
np.savez(path,c2w=result.astype('float32'),K=K.astype('float32'),times_s=target)
|
| 155 |
+
meta={'source_camera_file':str(root/row['cameras']),'source_metadata':str(root/row['metadata']),
|
| 156 |
+
'source_image_hw':d['image_size_hw'].tolist(),'resize_scale':scale,'crop_xy':[cropx,cropy],
|
| 157 |
+
'units':'official ViPE metric estimate, no translation scale fitting','sampling':'first 5 seconds, rotation Slerp, translation/K linear interpolation at 16fps',
|
| 158 |
+
'translation_path_m':float(np.linalg.norm(np.diff(result[:,:3,3],axis=0),axis=1).sum())}
|
| 159 |
+
path.with_suffix('.json').write_text(json.dumps(meta,indent=2));paths.append(path)
|
| 160 |
+
K=np.repeat(np.array([[600,0,415.5],[0,600,239.5],[0,0,1]],dtype='float32')[None],81,axis=0)
|
| 161 |
+
u=np.linspace(0,1,81)
|
| 162 |
+
for name in ('translate_1m','rotate_60deg','closed_loop'):
|
| 163 |
+
C=np.repeat(np.eye(4)[None],81,axis=0)
|
| 164 |
+
if name=='translate_1m':C[:,0,3]=u
|
| 165 |
+
elif name=='rotate_60deg':C[:,:3,:3]=Rotation.from_euler('y',60*u,degrees=True).as_matrix()
|
| 166 |
+
else:
|
| 167 |
+
C[:,0,3]=.4*np.sin(2*np.pi*u);C[:,2,3]=.3*(1-np.cos(2*np.pi*u))
|
| 168 |
+
C[:,:3,:3]=Rotation.from_euler('y',20*np.sin(2*np.pi*u),degrees=True).as_matrix()
|
| 169 |
+
path=out/(name+'.npz');np.savez(path,c2w=C.astype('float32'),K=K,times_s=u*5);paths.append(path)
|
| 170 |
+
return paths
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
def writer(path,w=832,h=480):
|
| 174 |
+
ffmpeg=shutil.which('ffmpeg') or '/opt/tiger/ss_bin/ffmpeg'
|
| 175 |
+
return subprocess.Popen([ffmpeg,'-v','error','-y','-f','rawvideo','-pix_fmt','rgb24','-s',f'{w}x{h}',
|
| 176 |
+
'-r','16','-i','-','-an','-c:v','libx264','-crf','17','-preset','fast',
|
| 177 |
+
'-threads','4','-pix_fmt','yuv420p','-movflags','+faststart',str(path)],stdin=subprocess.PIPE)
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
def run(args):
|
| 181 |
+
out=Path(args.output);out.mkdir(parents=True,exist_ok=True)
|
| 182 |
+
paths=make_trajectories(Path(args.annotations),out/'trajectories',args.scene_items)
|
| 183 |
+
renderer=Renderer(aa=args.aa,far=args.far,steps=args.steps,environment=args.environment)
|
| 184 |
+
tasks=[]
|
| 185 |
+
if args.mode=='preview':
|
| 186 |
+
for spacing in (.25,.5,1.,2.):
|
| 187 |
+
rgb,dep=renderer.frame(np.eye(4),np.array([[600,0,415.5],[0,600,239.5],[0,0,1.]]),spacing,args.radius)
|
| 188 |
+
cv2.imwrite(str(out/f'preview_{spacing}.png'),cv2.cvtColor(rgb,cv2.COLOR_RGB2BGR))
|
| 189 |
+
print(spacing,{'hit':float((dep>0).mean()),'unresolved':float((dep==-2).mean())},flush=True)
|
| 190 |
+
return
|
| 191 |
+
for path in paths[:len(args.scene_items)]:
|
| 192 |
+
for spacing in (.25,.5,1.,2.):tasks.append((path,spacing,args.radius))
|
| 193 |
+
for radius in args.radius_extras:tasks.append((paths[0],.5,radius))
|
| 194 |
+
if not args.no_synthetic_videos:
|
| 195 |
+
for path in paths[len(args.scene_items):]:tasks.append((path,.5,args.radius))
|
| 196 |
+
(out/'videos').mkdir(exist_ok=True);(out/'stills').mkdir(exist_ok=True)
|
| 197 |
+
summaries=[]
|
| 198 |
+
for path,spacing,radius in tasks:
|
| 199 |
+
name=f'{path.stem}_d{spacing:g}_r{radius:g}';video=out/'videos'/(name+'.mp4')
|
| 200 |
+
d=np.load(path);stats=[];start=time.perf_counter();proc=writer(video)
|
| 201 |
+
try:
|
| 202 |
+
for t in range(81):
|
| 203 |
+
rgb,dep=renderer.frame(d['c2w'][t],d['K'][t],spacing,radius)
|
| 204 |
+
proc.stdin.write(rgb.tobytes())
|
| 205 |
+
if t in (0,20,40,60,80):cv2.imwrite(str(out/'stills'/f'{name}_{t:03d}.png'),cv2.cvtColor(rgb,cv2.COLOR_RGB2BGR))
|
| 206 |
+
stats.append({'hit':float((dep>0).mean()),'unresolved':float((dep==-2).mean()),
|
| 207 |
+
'beyond_4_cells':float((dep>4).mean()),'beyond_8_cells':float((dep>8).mean()),
|
| 208 |
+
'near_half_cell':float(((dep>0)&(dep<.5)).mean())})
|
| 209 |
+
finally:proc.stdin.close()
|
| 210 |
+
if proc.wait()!=0:raise RuntimeError('ffmpeg failed')
|
| 211 |
+
summary={'name':name,'video':str(video),'trajectory':str(path),'spacing_m':spacing,'sphere_radius_over_spacing':radius,
|
| 212 |
+
'rod_radius_over_spacing':.008,'seconds':time.perf_counter()-start,
|
| 213 |
+
'mean_hit':float(np.mean([s['hit'] for s in stats])),
|
| 214 |
+
'max_unresolved':max(s['unresolved'] for s in stats),
|
| 215 |
+
'max_near_half_cell':max(s['near_half_cell'] for s in stats),
|
| 216 |
+
'mean_beyond_4_cells':float(np.mean([s['beyond_4_cells'] for s in stats])),
|
| 217 |
+
'mean_beyond_8_cells':float(np.mean([s['beyond_8_cells'] for s in stats]))}
|
| 218 |
+
summaries.append(summary)
|
| 219 |
+
(out/'metrics.json').write_text(json.dumps(summaries,indent=2))
|
| 220 |
+
print(json.dumps(summary),flush=True)
|
| 221 |
+
manifest={'worker':'1094200','shape':[81,480,832],'fps':16,'aa':args.aa,'far_cells':args.far,'max_steps':args.steps,
|
| 222 |
+
'geometry':'infinite periodic sphere/cylinder union, finite ray distance','origin':'(-Delta/2,-Delta/2,-Delta/2), fixed per trajectory',
|
| 223 |
+
'renderer':'custom CUDA Triton sphere tracing; not official Wonder OpenGL code','device':torch.cuda.get_device_name(),
|
| 224 |
+
'environment_mode':args.environment,'base_radius_ratio':args.radius,
|
| 225 |
+
'environment':('E(d)=(d+1)/2; 15 degree white graticule with polar fade' if args.environment=='direction_rgb'
|
| 226 |
+
else 'world longitude hue + latitude modulation + 15 degree white graticule'),
|
| 227 |
+
'distance_fog':'exp(-max(ray_distance_cells-2,0)/8), blends into directional environment','variants':summaries}
|
| 228 |
+
(out/'manifest.json').write_text(json.dumps(manifest,indent=2))
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
if __name__=='__main__':
|
| 232 |
+
p=argparse.ArgumentParser(description=__doc__)
|
| 233 |
+
p.add_argument('--output',required=True)
|
| 234 |
+
p.add_argument('--annotations',default='/mnt/hdfs/data_ssd/tianqi/re10k_annotations/vipe_dav3_v1')
|
| 235 |
+
p.add_argument('--scene-items',type=int,nargs='+',default=[4,10,15])
|
| 236 |
+
p.add_argument('--radius',type=float,default=.05)
|
| 237 |
+
p.add_argument('--radius-extras',type=float,nargs='*',default=[])
|
| 238 |
+
p.add_argument('--environment',choices=['direction_rgb','legacy_hsv'],default='direction_rgb')
|
| 239 |
+
p.add_argument('--no-synthetic-videos',action='store_true')
|
| 240 |
+
p.add_argument('--aa',type=int,default=2);p.add_argument('--far',type=float,default=64.)
|
| 241 |
+
p.add_argument('--steps',type=int,default=4096);p.add_argument('--mode',choices=['preview','sweep'],default='sweep')
|
| 242 |
+
run(p.parse_args())
|
realcase/109/move_replace_mesh_v1/code/sam2_candidate.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os,sys,json,shutil,tempfile,gc
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
import numpy as np,cv2,torch
|
| 4 |
+
ROOT=Path('/root/autodl-tmp/kimi_realcase_20261109')
|
| 5 |
+
SAM2=Path('/root/autodl-tmp/real_video_condition_repro_20261105_v1/tools/sam2')
|
| 6 |
+
sys.path.insert(0,str(SAM2))
|
| 7 |
+
from sam2.build_sam import build_sam2_video_predictor
|
| 8 |
+
case=sys.argv[1];cd=ROOT/'cases'/case;out=ROOT/'samples'/case/'step8_sam2_candidate';out.mkdir(parents=True,exist_ok=False)
|
| 9 |
+
frames=[cd/'frames'/f'{i:03}.png' for i in range(49)]
|
| 10 |
+
tmp=Path(tempfile.mkdtemp(prefix='kimi_sam2_',dir='/root/autodl-tmp'))
|
| 11 |
+
for i,f in enumerate(frames):
|
| 12 |
+
im=cv2.imread(str(f));assert im is not None and im.shape[:2]==(704,1280)
|
| 13 |
+
cv2.imwrite(str(tmp/f'{i:05}.jpg'),im,[cv2.IMWRITE_JPEG_QUALITY,98])
|
| 14 |
+
pframe=24;m=cv2.imread(str(cd/'segmentation/lamp0'/f'{pframe:03}.png'),0);assert m is not None
|
| 15 |
+
num,lab,stats,cents=cv2.connectedComponentsWithStats((m>0).astype(np.uint8),8)
|
| 16 |
+
areas=stats[1:,cv2.CC_STAT_AREA];keep=[]
|
| 17 |
+
for j,a in enumerate(areas,1):
|
| 18 |
+
if a>=4 and a>=max(4,float(areas.max())*.002):keep.append(j)
|
| 19 |
+
if not keep:raise RuntimeError('empty prompt mask')
|
| 20 |
+
points=[]
|
| 21 |
+
for j in keep:
|
| 22 |
+
ys,xs=np.where(lab==j);idx=np.argmin((xs-cents[j][0])**2+(ys-cents[j][1])**2);points.append([float(xs[idx]),float(ys[idx])])
|
| 23 |
+
ys,xs=np.where(m>0);box=np.array([xs.min(),ys.min(),xs.max(),ys.max()],np.float32)
|
| 24 |
+
# Limit very noisy prompt sets without discarding the principal fixture components.
|
| 25 |
+
if len(points)>24:points=sorted(points,key=lambda p:(p[0]-cents[keep[0]][0])**2+(p[1]-cents[keep[0]][1])**2)[:24]
|
| 26 |
+
pred=build_sam2_video_predictor('configs/sam2.1/sam2.1_hiera_l.yaml',str(SAM2/'checkpoints/sam2.1_hiera_large.pt'),device='cuda',vos_optimized=False)
|
| 27 |
+
state=pred.init_state(video_path=str(tmp))
|
| 28 |
+
with torch.inference_mode(),torch.autocast('cuda',dtype=torch.bfloat16):
|
| 29 |
+
pred.add_new_points_or_box(state,frame_idx=pframe,obj_id=1,box=box,points=np.asarray(points,np.float32),labels=np.ones(len(points),np.int32))
|
| 30 |
+
masks={}
|
| 31 |
+
for rev in (True,False):
|
| 32 |
+
for i,ids,logits in pred.propagate_in_video(state,start_frame_idx=pframe,reverse=rev):
|
| 33 |
+
t=(logits[:,0]>0).any(dim=0).cpu().numpy().astype(np.uint8)
|
| 34 |
+
masks[i]=cv2.resize(t,(1280,704),interpolation=cv2.INTER_NEAREST)>0
|
| 35 |
+
assert len(masks)==49,sorted(masks)
|
| 36 |
+
md=out/'mask49';md.mkdir();rows=[]
|
| 37 |
+
for i in range(49):
|
| 38 |
+
mm=masks[i].astype(np.uint8)*255;cv2.imwrite(str(md/f'{i:06}.png'),mm)
|
| 39 |
+
ref=cv2.imread(str(cd/'segmentation/lamp0'/f'{i:03}.png'),0)>0;a=mm>0;inter=np.count_nonzero(a&ref);union=np.count_nonzero(a|ref)
|
| 40 |
+
rows.append({'frame':i,'sam_area':int(a.sum()),'dataset_area':int(ref.sum()),'iou_vs_prompt_mask':float(inter/max(1,union)),'empty':not a.any()})
|
| 41 |
+
for i in (0,24,48):
|
| 42 |
+
im=cv2.imread(str(frames[i]));sel=masks[i];im[sel]=np.rint(.55*im[sel]+.45*np.array([0,255,0])).astype(np.uint8);cv2.imwrite(str(out/f'overlay_{i:06}.png'),im)
|
| 43 |
+
rec={'case':case,'model':'sam2.1_hiera_large','prompt_frame':pframe,'prompt_box_xyxy':box.tolist(),'positive_points':points,'negative_points':[],'prompt_source':'dataset mask multi-component positive points; candidate, not user confirmation','components_prompted':len(keep),'per_frame':rows,'review_state':'visual_review_pending','visible_only':True,'occluded_geometry':'not included in visible mask'}
|
| 44 |
+
(out/'SAM2.json').write_text(json.dumps(rec,indent=2))
|
| 45 |
+
del pred,state;torch.cuda.empty_cache();gc.collect();shutil.rmtree(tmp,ignore_errors=True)
|
| 46 |
+
print(json.dumps({'case':case,'empty_frames':[r['frame'] for r in rows if r['empty']],'median_iou':float(np.median([r['iou_vs_prompt_mask'] for r in rows])),'output':str(out)}),flush=True)
|
realcase/109/move_replace_mesh_v1/code/verify_and_package.py
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os,sys,json,ast,tarfile,hashlib,subprocess,shutil
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
import numpy as np,cv2
|
| 4 |
+
from PIL import Image
|
| 5 |
+
import imageio_ffmpeg
|
| 6 |
+
ROOT=Path('/root/autodl-tmp/kimi_realcase_20261109');PROD=Path('/root/autodl-tmp/real_video_condition_repro_20261105_v1');LOADER=Path('/root/autodl-tmp/codex_user8_20261108/bbox_dataset_original.py')
|
| 7 |
+
W,H=1280,704;COLORS={'purple':[.72,.02,1.],'green':[.02,1.,.03],'blue':[.02,.08,1.],'warm':[1.,.75,.42]};LEVELS={'low':1000,'medium':4000,'high':12000};GAMMAS={'low':.25,'medium':.55,'high':.9}
|
| 8 |
+
FF=imageio_ffmpeg.get_ffmpeg_exe()
|
| 9 |
+
|
| 10 |
+
def sha(p):
|
| 11 |
+
h=hashlib.sha256()
|
| 12 |
+
with open(p,'rb') as f:
|
| 13 |
+
for b in iter(lambda:f.read(8*1024*1024),b''):h.update(b)
|
| 14 |
+
return h.hexdigest()
|
| 15 |
+
def ns_loader():
|
| 16 |
+
class Native704(ast.NodeTransformer):
|
| 17 |
+
def visit_Constant(self,node):
|
| 18 |
+
if type(node.value) is int and node.value in (352,640):return ast.copy_location(ast.Constant(value={352:704,640:1280}[node.value]),node)
|
| 19 |
+
return node
|
| 20 |
+
tree=Native704().visit(ast.parse(LOADER.read_text()));ast.fix_missing_locations(tree);ns={'__name__':'native704_read_verify'};exec(compile(tree,str(LOADER),'exec'),ns);return ns
|
| 21 |
+
|
| 22 |
+
def encode_frames(paths,out,codec='ffv1',preview=False):
|
| 23 |
+
cmd=[FF,'-hide_banner','-loglevel','error','-y','-f','rawvideo','-vcodec','rawvideo','-pix_fmt','bgr24','-s',f'{W}x{H}','-r','10','-i','-','-an']
|
| 24 |
+
if codec=='ffv1':cmd+=['-c:v','ffv1','-level','3','-g','1']
|
| 25 |
+
else:cmd+=['-c:v','libx264','-preset','veryfast','-crf','20','-pix_fmt','yuv420p','-movflags','+faststart']
|
| 26 |
+
cmd.append(str(out));proc=subprocess.Popen(cmd,stdin=subprocess.PIPE)
|
| 27 |
+
for p in paths:
|
| 28 |
+
im=cv2.imread(str(p))
|
| 29 |
+
if im is None or im.shape[:2]!=(H,W):raise RuntimeError(f'bad media frame {p}')
|
| 30 |
+
proc.stdin.write(im.tobytes())
|
| 31 |
+
proc.stdin.close();rc=proc.wait()
|
| 32 |
+
if rc:raise RuntimeError(f'ffmpeg {rc} {out}')
|
| 33 |
+
|
| 34 |
+
def encode_preview(outdir,out):
|
| 35 |
+
cmd=[FF,'-hide_banner','-loglevel','error','-y','-f','rawvideo','-vcodec','rawvideo','-pix_fmt','bgr24','-s',f'{W}x{H}','-r','10','-i','-','-an','-c:v','libx264','-preset','veryfast','-crf','20','-pix_fmt','yuv420p','-movflags','+faststart',str(out)]
|
| 36 |
+
proc=subprocess.Popen(cmd,stdin=subprocess.PIPE)
|
| 37 |
+
for i in range(49):
|
| 38 |
+
f=f'{i:06}.png';src=cv2.imread(str(outdir/'source_frames'/f));mask=cv2.imread(str(outdir/'source_visible_mask'/f),0)>0;src[mask]=np.rint(.6*src[mask]+.4*np.array([0,255,0])).astype(np.uint8);joint=cv2.imread(str(outdir/'move_replace/joint'/f));color=cv2.imread(str(outdir/'move_replace/lighting/purple/color'/f));inten=cv2.imread(str(outdir/'move_replace/intensity/medium'/f));canvas=np.zeros((H,W,3),np.uint8)
|
| 39 |
+
for im,x,y in [(src,0,0),(joint,640,0),(color,0,352),(inten,640,352)]:canvas[y:y+352,x:x+640]=cv2.resize(im,(640,352))
|
| 40 |
+
proc.stdin.write(canvas.tobytes())
|
| 41 |
+
proc.stdin.close();rc=proc.wait()
|
| 42 |
+
if rc:raise RuntimeError(f'preview ffmpeg {rc}')
|
| 43 |
+
|
| 44 |
+
def video_check(path):
|
| 45 |
+
cap=cv2.VideoCapture(str(path));n=int(cap.get(7));w=int(cap.get(3));h=int(cap.get(4));count=0;shapes=set()
|
| 46 |
+
while True:
|
| 47 |
+
ok,fr=cap.read()
|
| 48 |
+
if not ok:break
|
| 49 |
+
count+=1;shapes.add(tuple(fr.shape))
|
| 50 |
+
cap.release();return {'frames_metadata':n,'frames_decoded':count,'width':w,'height':h,'decoded_shapes':list(shapes),'ok':count==49 and w==W and h==H}
|
| 51 |
+
|
| 52 |
+
def run(cfg):
|
| 53 |
+
n=cfg['number'];rev=os.environ.get('REVISION',cfg.get('revision','move_replace_mesh_v1'));case=cfg['case_id'];base=ROOT/'outputs'/str(n)/rev;pub=ROOT/'publish'/str(n)/rev
|
| 54 |
+
if pub.exists():raise FileExistsError(pub)
|
| 55 |
+
(pub/'media').mkdir(parents=True);(pub/'code').mkdir()
|
| 56 |
+
ns=ns_loader();checks={'original_reader_module_sha256':sha(LOADER),'versions':{},'current_hf_v2_reference':{'path':'v2/groups/G006_33/.../G006_33_training_only_native1280x704_v3.tar','manifest_rows_actually_read':256,'fields':['input','joint_pcf_bbox','relit_mask','reference_images','alpha','gamma','source_color','target_color'],'adapter_note':'raw gamma/color adapter supplied separately; log-lumens NPZ is experimental legacy only'},'model_inference':'not_run'}
|
| 57 |
+
manifest={'case_id':case,'number':n,'revision':rev,'operation':'move_replace: delete P and insert different asset at Q','source_sha256':json.loads((ROOT/'cases'/case/'case.json').read_text())['source_sha256'],'asset_number':cfg['asset_number'],'asset_sha256':sha(Path('/root/autodl-tmp/codex_user8_move_replace_20261109/realcase_new_models')/f"{cfg['asset_number']}.glb"),'frames':49,'resolution':[W,H],'status':'experimental_keyframes_reviewed_not_quality_accepted','visual_review':{'frames':[0,24,48],'additional_border_frames_reviewed':True,'result':'no remaining clipping, bbox-as-lamp-mask or obvious prompt-object error in reviewed final frames','limitations':'not a claim of frame-by-frame human acceptance, calibrated scale, resolved occlusion or physical support truth'},'versions':{},'hf_target':f'realcase/{n}/{rev}','target_B_RGB':'not observed; video field is null in inference adapter','legacy_loader':'actual joint_frames and media readers executed; full legacy load_row not compatible because it asserts color/intensity support == target bbox, conflicting with required lamp silhouette'}
|
| 58 |
+
# Shared real source video, never a synthesized B target.
|
| 59 |
+
encode_frames(sorted((base/'small_4deg/source_frames').glob('*.png')),pub/'media/source_A.mkv')
|
| 60 |
+
source_check=video_check(pub/'media/source_A.mkv');assert source_check['ok']
|
| 61 |
+
# Reference image on opaque RGB canvas for the current field layout.
|
| 62 |
+
candidates=list(Path('/root/autodl-tmp/codex_user8_move_replace_20261109/replacement_candidates').glob(f"{cfg['asset_number']}_asset_*.png"));assert candidates
|
| 63 |
+
im=Image.open(candidates[0]).convert('RGBA');im.thumbnail((1920,1080),Image.Resampling.LANCZOS);canvas=Image.new('RGBA',(1920,1080),(0,0,0,255));canvas.paste(im,((1920-im.width)//2,(1080-im.height)//2),im);canvas.convert('RGB').save(pub/'media/replacement_reference.png')
|
| 64 |
+
shutil.copy2(Path('/root/autodl-tmp/codex_user8_move_replace_20261109/realcase_new_models')/f"{cfg['asset_number']}.glb",pub/'replacement_asset.glb')
|
| 65 |
+
shutil.copy2(base/'geometry_plan.json',pub/'geometry_plan.json');shutil.copy2(base/'support_inliers_000024.png',pub/'support_inliers_000024.png');shutil.copy2(base/'placement_A_000024.png',pub/'placement_A_000024.png')
|
| 66 |
+
adapter=[]
|
| 67 |
+
for version in ['small_4deg','orbit_10deg']:
|
| 68 |
+
out=base/version;val=json.loads((out/'validation.json').read_text());assert val['numeric_state']=='pass',(case,version,val['failures'])
|
| 69 |
+
shutil.copytree(out,pub/version,symlinks=True)
|
| 70 |
+
encode_frames(sorted((out/'move_replace/joint').glob('*.png')),pub/'media'/f'joint_B_{version}.mkv')
|
| 71 |
+
joint_check=video_check(pub/'media'/f'joint_B_{version}.mkv');assert joint_check['ok']
|
| 72 |
+
encode_preview(out,pub/f'preview_{version}.mp4')
|
| 73 |
+
preview_check=video_check(pub/f'preview_{version}.mp4');assert preview_check['ok']
|
| 74 |
+
vc={'joint_frames':'executed during production and re-read below','media_readers':{},'legacy_support_conflict':{}}
|
| 75 |
+
# Execute the original production media readers on actual output, without fabricating target RGB.
|
| 76 |
+
for kind,path in [('source',out/'source_frames'),('joint',out/'move_replace/joint'),('P_bbox',out/'geometry/P/mask'),('Q_bbox',out/'geometry/Q/mask')]:
|
| 77 |
+
if kind in ('P_bbox','Q_bbox'):
|
| 78 |
+
paths=sorted(path.glob('*.png'));arr=np.stack([np.asarray(Image.open(p).convert('L')) for p in paths]);vc['media_readers'][kind]={'shape':list(arr.shape),'dtype':str(arr.dtype),'frames':len(paths)}
|
| 79 |
+
else:
|
| 80 |
+
arr=ns['frames'](str(path));vc['media_readers'][kind]={'shape':list(arr.shape),'dtype':str(arr.dtype),'frames':len(arr)}
|
| 81 |
+
qbox=ns['frames'](str(out/'geometry/Q/mask'),True)[...,0]>0
|
| 82 |
+
for c in COLORS:
|
| 83 |
+
encode_frames(sorted((out/'move_replace/lighting'/c/'color').glob('*.png')),pub/'media'/f'relit_B_{version}_{c}.mkv')
|
| 84 |
+
color=ns['field_frames'](str(out/'move_replace/lighting'/c/'color'),'color');support=np.any(color>0,axis=-1);mismatch=int(np.count_nonzero(support!=qbox));vc['legacy_support_conflict'][c]={'shape':list(color.shape),'dtype':str(color.dtype),'bbox_vs_silhouette_mismatch_pixels':mismatch,'expected':'nonzero because current requirement is silhouette, legacy load_row asserts support == bbox'}
|
| 85 |
+
for level in LEVELS:
|
| 86 |
+
gamma=GAMMAS[level]
|
| 87 |
+
adapter.append({'sample_id':f'realcase_{n}_{version}_{c}_{level}','group':f'realcase_{n}','operation':'move_replace','edit_subtype':'different_fixture_new_position','prompt':f'Remove the original {cfg["scene_type"]} lamp at P and insert the different reference fixture at Q on the estimated {cfg["scene_type"]} support.','alpha':0.0,'gamma':gamma,'source_alpha':0.0,'target_alpha':0.0,'source_gamma':0.0,'target_gamma':gamma,'source_color':None,'target_color':COLORS[c],'source_variant':'original_video_fixture','target_variant':f'GLB_asset_{cfg["asset_number"]}','pairing_protocol':'inference_only_no_target_RGB','input':'media/source_A.mkv','video':None,'joint_pcf_bbox':f'media/joint_B_{version}.mkv','relit_mask':f'media/relit_B_{version}_{c}.mkv','source':{'view':'A','state':'E1P','kind':'on','variant':'original','alpha':0.0,'gamma':0.0,'color':None},'target':{'view':'B','state':'E1Q','kind':'on','variant':f'GLB_asset_{cfg["asset_number"]}','alpha':0.0,'gamma':gamma,'color':COLORS[c]},'reference_image':'media/replacement_reference.png','reference_images':['media/replacement_reference.png'],'relit_video':'media/source_A.mkv','concat_video':'media/source_A.mkv','lattice_rgb':f'media/joint_B_{version}.mkv','target_fixture_present':True,'target_light_active':True,'camera_version':version,'intensity_control_level':level,'legacy_intensity_npz':f'{version}/move_replace/intensity/{level}','control_provenance':'all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value','target_B_RGB_not_observed':True})
|
| 88 |
+
for level in LEVELS:
|
| 89 |
+
intensity=ns['field_frames'](str(out/'move_replace/intensity'/level),'intensity');vc['media_readers'][f'intensity_{level}']={'shape':list(intensity.shape),'dtype':str(intensity.dtype),'frames':len(intensity)}
|
| 90 |
+
checks['versions'][version]=vc;manifest['versions'][version]={'numeric_state':val['numeric_state'],'visual_state':'keyframe_reviewed_with_limitations','camera':val['camera'],'joint_video_check':joint_check,'preview_video_check':preview_check}
|
| 91 |
+
(pub/'hf_v2_inference_adapter.json').write_text(json.dumps(adapter,ensure_ascii=False,indent=2))
|
| 92 |
+
(pub/'loader_checks.json').write_text(json.dumps(checks,indent=2))
|
| 93 |
+
(pub/'manifest.json').write_text(json.dumps(manifest,ensure_ascii=False,indent=2))
|
| 94 |
+
readme=f'''# 真实视频案例 {n}:移动+替换实验条件\n\n源案例:`{case}`。操作:删除原位置 P 的灯,在 Q 插入另一件适配 {cfg['scene_type']} 场景的 GLB 灯具。\n\n包含 `small_4deg` 和 `orbit_10deg` 两套真实逐帧相机矩阵及全部 49 帧、1280×704 条件。PCF 使用用户指定原 `render_pcf.py`;三维框使用原 `bbox.py`;joint 使用原生产 `joint_frames`,红 P、蓝 Q、重叠黄,框内半透明。\n\n`conditions.tar` 保留源 A 帧、可见 SAM2 mask、独立 amodal 估计、A/B 相机、P/Q OBB、PCF、三维框、实际 GLB 投影 mask、紫/绿/蓝/暖四色和低/中/高三档强度。`hf_v2_inference_adapter.json` 使用当前 HF 样本的原始 alpha/gamma/color 字段;`video=null`,因为 B 视角真实 RGB 未观测。旧 log-lumens NPZ 只是实验适配,不是实测流明,也不是现行 HF v2 的强度定义。\n\n已完成:全帧文件/尺寸/支持域/相机/框自洽检查;首中末及出边关键帧视觉复核;原生产 joint_frames 与媒体读取函数实跑。旧完整 loader 要求色强支持域等于 bbox,与灯形要求冲突,未篡改为实心框。未运行真实模型推理。\n\n限制:单目尺度和 VGGT 深度/支撑面是估计;GLB 投影未解决场景遮挡和动态前景;隐藏结构不写入可见 mask。{('户外源灯底座为画外估计。' if cfg['scene_type']=='outdoor' else '')}本包是关键帧已审核的实验草稿,不是质量验收通过或训练真值。\n'''
|
| 95 |
+
(pub/'README.md').write_text(readme,encoding='utf8')
|
| 96 |
+
for p in ['geometry_plan.py','render_conditions.py','prepare_selected.py','sam2_candidate.py','vggt_candidate.py','verify_and_package.py']:shutil.copy2(ROOT/p,pub/'code'/p)
|
| 97 |
+
for p in [PROD/'tools/code_user_specified/render_pcf.py',PROD/'tools/old671/bbox.py',LOADER]:shutil.copy2(p,pub/'code'/p.name)
|
| 98 |
+
(pub/'code/SHA256.json').write_text(json.dumps({p.name:sha(p) for p in sorted((pub/'code').iterdir()) if p.is_file() and p.suffix=='.py'},indent=2))
|
| 99 |
+
# Archive the exact publish inputs except media duplicates and public previews; all symlinks are dereferenced.
|
| 100 |
+
archive=pub/'conditions.tar'
|
| 101 |
+
with tarfile.open(archive,'w',dereference=True) as tf:
|
| 102 |
+
for p in [base/'geometry_plan.json',base/'support_inliers_000024.png',base/'placement_A_000024.png',base/'small_4deg',base/'orbit_10deg',pub/'replacement_asset.glb',pub/'media',pub/'hf_v2_inference_adapter.json',pub/'loader_checks.json',pub/'manifest.json',pub/'README.md',pub/'code']:
|
| 103 |
+
tf.add(p,arcname=str(p.relative_to(pub)) if p.is_relative_to(pub) else p.name)
|
| 104 |
+
with tarfile.open(archive,'r') as tf:
|
| 105 |
+
members=tf.getmembers();bad=[m.name for m in members if m.issym() or m.islnk()]
|
| 106 |
+
if bad:raise RuntimeError(f'archive links {bad[:3]}')
|
| 107 |
+
for m in members:
|
| 108 |
+
if m.isfile():
|
| 109 |
+
f=tf.extractfile(m)
|
| 110 |
+
while f.read(8*1024*1024):pass
|
| 111 |
+
(pub/'archive_validation.json').write_text(json.dumps({'members':len(members),'symlink_members':0,'hardlink_members':0,'all_file_members_read':True,'bytes':archive.stat().st_size,'sha256':sha(archive)},indent=2))
|
| 112 |
+
# Public file hashes, excluding upload receipts and this index itself.
|
| 113 |
+
files={}
|
| 114 |
+
for p in sorted(pub.rglob('*')):
|
| 115 |
+
if p.is_file() and p.name not in ('sha256.json','UPLOAD_RECEIPT.json'):files[str(p.relative_to(pub))]={'bytes':p.stat().st_size,'sha256':sha(p)}
|
| 116 |
+
(pub/'sha256.json').write_text(json.dumps(files,indent=2))
|
| 117 |
+
print(json.dumps({'case':case,'publish':str(pub),'hf_target':manifest['hf_target'],'archive_bytes':archive.stat().st_size,'files':len(files),'adapter_rows':len(adapter),'reader_versions':list(checks['versions']),'status':manifest['status']}),flush=True)
|
| 118 |
+
|
| 119 |
+
if __name__=='__main__':
|
| 120 |
+
configs=json.loads((ROOT/os.environ.get('PRODUCTION_CONFIG','production_config.json')).read_text());wanted=sys.argv[1:]
|
| 121 |
+
for cfg in configs:
|
| 122 |
+
if wanted and str(cfg['number']) not in wanted:continue
|
| 123 |
+
run(cfg)
|
realcase/109/move_replace_mesh_v1/code/vggt_candidate.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os,sys,json,torch,numpy as np,cv2
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
ROOT=Path('/root/autodl-tmp/kimi_realcase_20261109')
|
| 4 |
+
VG=Path('/root/autodl-tmp/real_video_condition_repro_20261105_v1/tools/vggt')
|
| 5 |
+
sys.path.insert(0,str(VG))
|
| 6 |
+
from vggt.models.vggt import VGGT
|
| 7 |
+
from vggt.utils.load_fn import load_and_preprocess_images
|
| 8 |
+
from vggt.utils.pose_enc import pose_encoding_to_extri_intri
|
| 9 |
+
case=sys.argv[1];cd=ROOT/'cases'/case;out=ROOT/'samples'/case/'step3_worldpoints';out.mkdir(parents=True,exist_ok=False)
|
| 10 |
+
frames=[str(cd/'frames'/f'{i:03}.png') for i in range(49)]
|
| 11 |
+
imgs=load_and_preprocess_images(frames).to('cuda');print('input',tuple(imgs.shape),flush=True)
|
| 12 |
+
model=VGGT();sd=torch.load('/root/autodl-tmp/real_video_condition_repro_20261105_v1/tools/weights/VGGT-1B/model.pt',map_location='cpu');missing,unexpected=model.load_state_dict(sd,strict=False);model=model.to('cuda').eval()
|
| 13 |
+
with torch.no_grad():pred=model(imgs)
|
| 14 |
+
H,W=pred['world_points'].shape[2:4];wp=pred['world_points'][0].float().cpu().numpy();wpc=pred['world_points_conf'][0].float().cpu().numpy();dep=pred['depth'][0].float().cpu().numpy()[...,0]
|
| 15 |
+
ext,K=pose_encoding_to_extri_intri(pred['pose_enc'],(H,W));ext=ext[0].float().cpu().numpy();K=K[0].float().cpu().numpy()
|
| 16 |
+
assert wp.shape==(49,H,W,3) and ext.shape==(49,3,4) and K.shape==(49,3,3)
|
| 17 |
+
assert np.isfinite(wp).all() and np.isfinite(ext).all() and np.isfinite(K).all() and (dep>0).any()
|
| 18 |
+
# Cross-frame ORB check against the same VGGT world points; this is self-consistency, not calibration truth.
|
| 19 |
+
fa,fb=0,48;ga=cv2.imread(frames[fa],0);gb=cv2.imread(frames[fb],0);orb=cv2.ORB_create(5000);ka,da=orb.detectAndCompute(ga,None);kb,db=orb.detectAndCompute(gb,None)
|
| 20 |
+
err=[];used=0
|
| 21 |
+
if da is not None and db is not None:
|
| 22 |
+
ms=sorted(cv2.BFMatcher(cv2.NORM_HAMMING,crossCheck=True).match(da,db),key=lambda m:m.distance)[:2000]
|
| 23 |
+
pa=np.array([ka[m.queryIdx].pt for m in ms],np.float64);pb=np.array([kb[m.trainIdx].pt for m in ms],np.float64)
|
| 24 |
+
H0,W0=ga.shape;ua=pa[:,0]*W/W0;va=pa[:,1]*H/H0;ub=pb[:,0]*W/W0;vb=pb[:,1]*H/H0
|
| 25 |
+
xi=np.clip(ua.astype(int),0,W-1);yi=np.clip(va.astype(int),0,H-1);Xw=wp[fa,yi,xi];conf=wpc[fa,yi,xi]
|
| 26 |
+
Xc=Xw@ext[fb][:3,:3].T+ext[fb][:3,3];z=Xc[:,2];good=(z>1e-6)&(conf>1e-3)&np.isfinite(Xw).all(1)
|
| 27 |
+
u=K[fb][0,0]*Xc[:,0]/np.where(good,z,1)+K[fb][0,2];v=K[fb][1,1]*Xc[:,1]/np.where(good,z,1)+K[fb][1,2]
|
| 28 |
+
err=(np.sqrt((u[good]-ub[good])**2+(v[good]-vb[good])**2)*(W0/W)).tolist();used=int(good.sum())
|
| 29 |
+
rec={'case':case,'vggt_grid_hw':[int(H),int(W)],'extri':'OpenCV world-to-camera','world_scale':'relative monocular units; metric scale unknown','n_matches_used':used,'median_reproj_px_in_frame_space':float(np.median(err)) if err else None,'p90_reproj_px':float(np.percentile(err,90)) if err else None,'weights_sha256':__import__('hashlib').sha256(Path('/root/autodl-tmp/real_video_condition_repro_20261105_v1/tools/weights/VGGT-1B/model.pt').read_bytes()).hexdigest(),'validation':'VGGT self-consistency only; not calibrated ground truth'}
|
| 30 |
+
(out/'WORLDPOINTS.json').write_text(json.dumps(rec,indent=2))
|
| 31 |
+
np.savez_compressed(out/'vggt_raw.npz',world_points=wp.astype(np.float32),world_points_conf=wpc.astype(np.float32),depth=dep.astype(np.float32),extrinsic_3x4=ext.astype(np.float32),K=K.astype(np.float32))
|
| 32 |
+
print(json.dumps(rec,indent=2),flush=True)
|
realcase/109/move_replace_mesh_v1/conditions.tar
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef6cde3936bb62cf389bd81ccfb1249bbd73e68ff6d5fce7834b3271a4023a35
|
| 3 |
+
size 434944000
|
realcase/109/move_replace_mesh_v1/geometry_plan.json
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"case_id": "rv_extra_case02_6374204",
|
| 3 |
+
"number": 109,
|
| 4 |
+
"operation": "move_replace: delete source P and insert a different GLB asset at Q",
|
| 5 |
+
"source_video_sha256": "3d24718894d47fd6fa944219a97f1f18b34f5c5ce243b02da66fd1a5e0080a27",
|
| 6 |
+
"source_mask_version": "step8_sam2_candidate; visible only; keyframes reviewed",
|
| 7 |
+
"reviewed_fully_occluded_frames": [],
|
| 8 |
+
"scene_type": "floor",
|
| 9 |
+
"asset_number": 5,
|
| 10 |
+
"asset_sha256": "2d8c96cb5f041755536f68b8499af2fae40e07331e253d1e4e7b1aa4220847a8",
|
| 11 |
+
"asset_coordinate_conversion": "GLB [x,y,z] -> Blender [x,-z,y]",
|
| 12 |
+
"metric_scale_known": false,
|
| 13 |
+
"world_unit": "relative monocular units",
|
| 14 |
+
"support": {
|
| 15 |
+
"rect_xyxy_A24": [
|
| 16 |
+
290,
|
| 17 |
+
595,
|
| 18 |
+
510,
|
| 19 |
+
685
|
| 20 |
+
],
|
| 21 |
+
"normal_world": [
|
| 22 |
+
-0.053086284548044205,
|
| 23 |
+
-0.9876449704170227,
|
| 24 |
+
-0.1474425047636032
|
| 25 |
+
],
|
| 26 |
+
"d": 0.28805601596832275,
|
| 27 |
+
"inliers": 2220,
|
| 28 |
+
"inlier_ratio": 1.0,
|
| 29 |
+
"rms_world": 0.003927059005945921,
|
| 30 |
+
"target_xy_A24": [
|
| 31 |
+
400,
|
| 32 |
+
640
|
| 33 |
+
],
|
| 34 |
+
"mount_world": [
|
| 35 |
+
-0.13694011907667086,
|
| 36 |
+
0.16170082632316096,
|
| 37 |
+
0.9198341447248835
|
| 38 |
+
],
|
| 39 |
+
"evidence_image": "support_inliers_000024.png"
|
| 40 |
+
},
|
| 41 |
+
"P": {
|
| 42 |
+
"center": [
|
| 43 |
+
-0.05628174173164459,
|
| 44 |
+
-0.004359524606808406,
|
| 45 |
+
0.9382140021831842
|
| 46 |
+
],
|
| 47 |
+
"size": [
|
| 48 |
+
0.1626201562506311,
|
| 49 |
+
0.05864302124198428,
|
| 50 |
+
0.36672522757393655
|
| 51 |
+
],
|
| 52 |
+
"rotation": [
|
| 53 |
+
[
|
| 54 |
+
0.9985899146764996,
|
| 55 |
+
0.00016912994942436862,
|
| 56 |
+
-0.053086284548044205
|
| 57 |
+
],
|
| 58 |
+
[
|
| 59 |
+
-0.052479428742255974,
|
| 60 |
+
-0.14765959321777092,
|
| 61 |
+
-0.9876449704170227
|
| 62 |
+
],
|
| 63 |
+
[
|
| 64 |
+
-0.008005739520353194,
|
| 65 |
+
0.9890382446265389,
|
| 66 |
+
-0.1474425047636032
|
| 67 |
+
]
|
| 68 |
+
],
|
| 69 |
+
"visible_height": 0.34926212149898717,
|
| 70 |
+
"amodal_estimate": null
|
| 71 |
+
},
|
| 72 |
+
"Q": {
|
| 73 |
+
"center": [
|
| 74 |
+
-0.1425024275857955,
|
| 75 |
+
0.05821673302646484,
|
| 76 |
+
0.9043853201210252
|
| 77 |
+
],
|
| 78 |
+
"size": [
|
| 79 |
+
0.0722912720570184,
|
| 80 |
+
0.07673637216014181,
|
| 81 |
+
0.2095572728993923
|
| 82 |
+
],
|
| 83 |
+
"rotation": [
|
| 84 |
+
[
|
| 85 |
+
0.9985899146764996,
|
| 86 |
+
0.00016912994942436862,
|
| 87 |
+
-0.053086284548044205
|
| 88 |
+
],
|
| 89 |
+
[
|
| 90 |
+
-0.052479428742255974,
|
| 91 |
+
-0.14765959321777092,
|
| 92 |
+
-0.9876449704170227
|
| 93 |
+
],
|
| 94 |
+
[
|
| 95 |
+
-0.008005739520353194,
|
| 96 |
+
0.9890382446265389,
|
| 97 |
+
-0.1474425047636032
|
| 98 |
+
]
|
| 99 |
+
],
|
| 100 |
+
"relative_height_control": 0.6,
|
| 101 |
+
"height_reference_kind": "visible_height_along_support_normal",
|
| 102 |
+
"mesh_vertices_inside_obb_max_excess": 0.0
|
| 103 |
+
},
|
| 104 |
+
"camera_versions": {
|
| 105 |
+
"small_4deg": {
|
| 106 |
+
"relative_angle_deg_min": 0.0,
|
| 107 |
+
"relative_angle_deg_max": 4.000040061865018,
|
| 108 |
+
"max_adjacent_rotation_deg": 0.14354786070188444,
|
| 109 |
+
"camera_center_start": [
|
| 110 |
+
5.006744846575151e-05,
|
| 111 |
+
-1.6905856828820787e-05,
|
| 112 |
+
-0.00015041075849742128
|
| 113 |
+
],
|
| 114 |
+
"camera_center_mid": [
|
| 115 |
+
-0.031657020247341856,
|
| 116 |
+
0.0021428397806531677,
|
| 117 |
+
-0.0028026033041409493
|
| 118 |
+
],
|
| 119 |
+
"camera_center_end": [
|
| 120 |
+
-0.06349807615523667,
|
| 121 |
+
0.004114807000129585,
|
| 122 |
+
-0.004708322347738324
|
| 123 |
+
],
|
| 124 |
+
"A_B_identical": false
|
| 125 |
+
},
|
| 126 |
+
"orbit_10deg": {
|
| 127 |
+
"relative_angle_deg_min": 0.0,
|
| 128 |
+
"relative_angle_deg_max": 10.000016013305583,
|
| 129 |
+
"max_adjacent_rotation_deg": 0.3286748615570307,
|
| 130 |
+
"camera_center_start": [
|
| 131 |
+
5.006744846575151e-05,
|
| 132 |
+
-1.6905856828820787e-05,
|
| 133 |
+
-0.00015041075849742128
|
| 134 |
+
],
|
| 135 |
+
"camera_center_mid": [
|
| 136 |
+
-0.07933626022630515,
|
| 137 |
+
0.00505425325312031,
|
| 138 |
+
-0.005137948684232562
|
| 139 |
+
],
|
| 140 |
+
"camera_center_end": [
|
| 141 |
+
-0.15898710273763741,
|
| 142 |
+
0.009081124922778487,
|
| 143 |
+
-0.0035946765992737025
|
| 144 |
+
],
|
| 145 |
+
"A_B_identical": false
|
| 146 |
+
}
|
| 147 |
+
},
|
| 148 |
+
"camera_sign": -1,
|
| 149 |
+
"uncertainty": [
|
| 150 |
+
"monocular absolute scale unknown",
|
| 151 |
+
"source depth and support plane are VGGT estimates",
|
| 152 |
+
"target mesh projection has no scene occlusion rendering",
|
| 153 |
+
"hidden source geometry not observed is not included in visible mask"
|
| 154 |
+
],
|
| 155 |
+
"status": "geometry_plan_visual_review_pending"
|
| 156 |
+
}
|
realcase/109/move_replace_mesh_v1/hf_v2_inference_adapter.json
ADDED
|
@@ -0,0 +1,1490 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"sample_id": "realcase_109_small_4deg_purple_low",
|
| 4 |
+
"group": "realcase_109",
|
| 5 |
+
"operation": "move_replace",
|
| 6 |
+
"edit_subtype": "different_fixture_new_position",
|
| 7 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 8 |
+
"alpha": 0.0,
|
| 9 |
+
"gamma": 0.25,
|
| 10 |
+
"source_alpha": 0.0,
|
| 11 |
+
"target_alpha": 0.0,
|
| 12 |
+
"source_gamma": 0.0,
|
| 13 |
+
"target_gamma": 0.25,
|
| 14 |
+
"source_color": null,
|
| 15 |
+
"target_color": [
|
| 16 |
+
0.72,
|
| 17 |
+
0.02,
|
| 18 |
+
1.0
|
| 19 |
+
],
|
| 20 |
+
"source_variant": "original_video_fixture",
|
| 21 |
+
"target_variant": "GLB_asset_5",
|
| 22 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 23 |
+
"input": "media/source_A.mkv",
|
| 24 |
+
"video": null,
|
| 25 |
+
"joint_pcf_bbox": "media/joint_B_small_4deg.mkv",
|
| 26 |
+
"relit_mask": "media/relit_B_small_4deg_purple.mkv",
|
| 27 |
+
"source": {
|
| 28 |
+
"view": "A",
|
| 29 |
+
"state": "E1P",
|
| 30 |
+
"kind": "on",
|
| 31 |
+
"variant": "original",
|
| 32 |
+
"alpha": 0.0,
|
| 33 |
+
"gamma": 0.0,
|
| 34 |
+
"color": null
|
| 35 |
+
},
|
| 36 |
+
"target": {
|
| 37 |
+
"view": "B",
|
| 38 |
+
"state": "E1Q",
|
| 39 |
+
"kind": "on",
|
| 40 |
+
"variant": "GLB_asset_5",
|
| 41 |
+
"alpha": 0.0,
|
| 42 |
+
"gamma": 0.25,
|
| 43 |
+
"color": [
|
| 44 |
+
0.72,
|
| 45 |
+
0.02,
|
| 46 |
+
1.0
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
"reference_image": "media/replacement_reference.png",
|
| 50 |
+
"reference_images": [
|
| 51 |
+
"media/replacement_reference.png"
|
| 52 |
+
],
|
| 53 |
+
"relit_video": "media/source_A.mkv",
|
| 54 |
+
"concat_video": "media/source_A.mkv",
|
| 55 |
+
"lattice_rgb": "media/joint_B_small_4deg.mkv",
|
| 56 |
+
"target_fixture_present": true,
|
| 57 |
+
"target_light_active": true,
|
| 58 |
+
"camera_version": "small_4deg",
|
| 59 |
+
"intensity_control_level": "low",
|
| 60 |
+
"legacy_intensity_npz": "small_4deg/move_replace/intensity/low",
|
| 61 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 62 |
+
"target_B_RGB_not_observed": true
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"sample_id": "realcase_109_small_4deg_purple_medium",
|
| 66 |
+
"group": "realcase_109",
|
| 67 |
+
"operation": "move_replace",
|
| 68 |
+
"edit_subtype": "different_fixture_new_position",
|
| 69 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 70 |
+
"alpha": 0.0,
|
| 71 |
+
"gamma": 0.55,
|
| 72 |
+
"source_alpha": 0.0,
|
| 73 |
+
"target_alpha": 0.0,
|
| 74 |
+
"source_gamma": 0.0,
|
| 75 |
+
"target_gamma": 0.55,
|
| 76 |
+
"source_color": null,
|
| 77 |
+
"target_color": [
|
| 78 |
+
0.72,
|
| 79 |
+
0.02,
|
| 80 |
+
1.0
|
| 81 |
+
],
|
| 82 |
+
"source_variant": "original_video_fixture",
|
| 83 |
+
"target_variant": "GLB_asset_5",
|
| 84 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 85 |
+
"input": "media/source_A.mkv",
|
| 86 |
+
"video": null,
|
| 87 |
+
"joint_pcf_bbox": "media/joint_B_small_4deg.mkv",
|
| 88 |
+
"relit_mask": "media/relit_B_small_4deg_purple.mkv",
|
| 89 |
+
"source": {
|
| 90 |
+
"view": "A",
|
| 91 |
+
"state": "E1P",
|
| 92 |
+
"kind": "on",
|
| 93 |
+
"variant": "original",
|
| 94 |
+
"alpha": 0.0,
|
| 95 |
+
"gamma": 0.0,
|
| 96 |
+
"color": null
|
| 97 |
+
},
|
| 98 |
+
"target": {
|
| 99 |
+
"view": "B",
|
| 100 |
+
"state": "E1Q",
|
| 101 |
+
"kind": "on",
|
| 102 |
+
"variant": "GLB_asset_5",
|
| 103 |
+
"alpha": 0.0,
|
| 104 |
+
"gamma": 0.55,
|
| 105 |
+
"color": [
|
| 106 |
+
0.72,
|
| 107 |
+
0.02,
|
| 108 |
+
1.0
|
| 109 |
+
]
|
| 110 |
+
},
|
| 111 |
+
"reference_image": "media/replacement_reference.png",
|
| 112 |
+
"reference_images": [
|
| 113 |
+
"media/replacement_reference.png"
|
| 114 |
+
],
|
| 115 |
+
"relit_video": "media/source_A.mkv",
|
| 116 |
+
"concat_video": "media/source_A.mkv",
|
| 117 |
+
"lattice_rgb": "media/joint_B_small_4deg.mkv",
|
| 118 |
+
"target_fixture_present": true,
|
| 119 |
+
"target_light_active": true,
|
| 120 |
+
"camera_version": "small_4deg",
|
| 121 |
+
"intensity_control_level": "medium",
|
| 122 |
+
"legacy_intensity_npz": "small_4deg/move_replace/intensity/medium",
|
| 123 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 124 |
+
"target_B_RGB_not_observed": true
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"sample_id": "realcase_109_small_4deg_purple_high",
|
| 128 |
+
"group": "realcase_109",
|
| 129 |
+
"operation": "move_replace",
|
| 130 |
+
"edit_subtype": "different_fixture_new_position",
|
| 131 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 132 |
+
"alpha": 0.0,
|
| 133 |
+
"gamma": 0.9,
|
| 134 |
+
"source_alpha": 0.0,
|
| 135 |
+
"target_alpha": 0.0,
|
| 136 |
+
"source_gamma": 0.0,
|
| 137 |
+
"target_gamma": 0.9,
|
| 138 |
+
"source_color": null,
|
| 139 |
+
"target_color": [
|
| 140 |
+
0.72,
|
| 141 |
+
0.02,
|
| 142 |
+
1.0
|
| 143 |
+
],
|
| 144 |
+
"source_variant": "original_video_fixture",
|
| 145 |
+
"target_variant": "GLB_asset_5",
|
| 146 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 147 |
+
"input": "media/source_A.mkv",
|
| 148 |
+
"video": null,
|
| 149 |
+
"joint_pcf_bbox": "media/joint_B_small_4deg.mkv",
|
| 150 |
+
"relit_mask": "media/relit_B_small_4deg_purple.mkv",
|
| 151 |
+
"source": {
|
| 152 |
+
"view": "A",
|
| 153 |
+
"state": "E1P",
|
| 154 |
+
"kind": "on",
|
| 155 |
+
"variant": "original",
|
| 156 |
+
"alpha": 0.0,
|
| 157 |
+
"gamma": 0.0,
|
| 158 |
+
"color": null
|
| 159 |
+
},
|
| 160 |
+
"target": {
|
| 161 |
+
"view": "B",
|
| 162 |
+
"state": "E1Q",
|
| 163 |
+
"kind": "on",
|
| 164 |
+
"variant": "GLB_asset_5",
|
| 165 |
+
"alpha": 0.0,
|
| 166 |
+
"gamma": 0.9,
|
| 167 |
+
"color": [
|
| 168 |
+
0.72,
|
| 169 |
+
0.02,
|
| 170 |
+
1.0
|
| 171 |
+
]
|
| 172 |
+
},
|
| 173 |
+
"reference_image": "media/replacement_reference.png",
|
| 174 |
+
"reference_images": [
|
| 175 |
+
"media/replacement_reference.png"
|
| 176 |
+
],
|
| 177 |
+
"relit_video": "media/source_A.mkv",
|
| 178 |
+
"concat_video": "media/source_A.mkv",
|
| 179 |
+
"lattice_rgb": "media/joint_B_small_4deg.mkv",
|
| 180 |
+
"target_fixture_present": true,
|
| 181 |
+
"target_light_active": true,
|
| 182 |
+
"camera_version": "small_4deg",
|
| 183 |
+
"intensity_control_level": "high",
|
| 184 |
+
"legacy_intensity_npz": "small_4deg/move_replace/intensity/high",
|
| 185 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 186 |
+
"target_B_RGB_not_observed": true
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"sample_id": "realcase_109_small_4deg_green_low",
|
| 190 |
+
"group": "realcase_109",
|
| 191 |
+
"operation": "move_replace",
|
| 192 |
+
"edit_subtype": "different_fixture_new_position",
|
| 193 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 194 |
+
"alpha": 0.0,
|
| 195 |
+
"gamma": 0.25,
|
| 196 |
+
"source_alpha": 0.0,
|
| 197 |
+
"target_alpha": 0.0,
|
| 198 |
+
"source_gamma": 0.0,
|
| 199 |
+
"target_gamma": 0.25,
|
| 200 |
+
"source_color": null,
|
| 201 |
+
"target_color": [
|
| 202 |
+
0.02,
|
| 203 |
+
1.0,
|
| 204 |
+
0.03
|
| 205 |
+
],
|
| 206 |
+
"source_variant": "original_video_fixture",
|
| 207 |
+
"target_variant": "GLB_asset_5",
|
| 208 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 209 |
+
"input": "media/source_A.mkv",
|
| 210 |
+
"video": null,
|
| 211 |
+
"joint_pcf_bbox": "media/joint_B_small_4deg.mkv",
|
| 212 |
+
"relit_mask": "media/relit_B_small_4deg_green.mkv",
|
| 213 |
+
"source": {
|
| 214 |
+
"view": "A",
|
| 215 |
+
"state": "E1P",
|
| 216 |
+
"kind": "on",
|
| 217 |
+
"variant": "original",
|
| 218 |
+
"alpha": 0.0,
|
| 219 |
+
"gamma": 0.0,
|
| 220 |
+
"color": null
|
| 221 |
+
},
|
| 222 |
+
"target": {
|
| 223 |
+
"view": "B",
|
| 224 |
+
"state": "E1Q",
|
| 225 |
+
"kind": "on",
|
| 226 |
+
"variant": "GLB_asset_5",
|
| 227 |
+
"alpha": 0.0,
|
| 228 |
+
"gamma": 0.25,
|
| 229 |
+
"color": [
|
| 230 |
+
0.02,
|
| 231 |
+
1.0,
|
| 232 |
+
0.03
|
| 233 |
+
]
|
| 234 |
+
},
|
| 235 |
+
"reference_image": "media/replacement_reference.png",
|
| 236 |
+
"reference_images": [
|
| 237 |
+
"media/replacement_reference.png"
|
| 238 |
+
],
|
| 239 |
+
"relit_video": "media/source_A.mkv",
|
| 240 |
+
"concat_video": "media/source_A.mkv",
|
| 241 |
+
"lattice_rgb": "media/joint_B_small_4deg.mkv",
|
| 242 |
+
"target_fixture_present": true,
|
| 243 |
+
"target_light_active": true,
|
| 244 |
+
"camera_version": "small_4deg",
|
| 245 |
+
"intensity_control_level": "low",
|
| 246 |
+
"legacy_intensity_npz": "small_4deg/move_replace/intensity/low",
|
| 247 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 248 |
+
"target_B_RGB_not_observed": true
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"sample_id": "realcase_109_small_4deg_green_medium",
|
| 252 |
+
"group": "realcase_109",
|
| 253 |
+
"operation": "move_replace",
|
| 254 |
+
"edit_subtype": "different_fixture_new_position",
|
| 255 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 256 |
+
"alpha": 0.0,
|
| 257 |
+
"gamma": 0.55,
|
| 258 |
+
"source_alpha": 0.0,
|
| 259 |
+
"target_alpha": 0.0,
|
| 260 |
+
"source_gamma": 0.0,
|
| 261 |
+
"target_gamma": 0.55,
|
| 262 |
+
"source_color": null,
|
| 263 |
+
"target_color": [
|
| 264 |
+
0.02,
|
| 265 |
+
1.0,
|
| 266 |
+
0.03
|
| 267 |
+
],
|
| 268 |
+
"source_variant": "original_video_fixture",
|
| 269 |
+
"target_variant": "GLB_asset_5",
|
| 270 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 271 |
+
"input": "media/source_A.mkv",
|
| 272 |
+
"video": null,
|
| 273 |
+
"joint_pcf_bbox": "media/joint_B_small_4deg.mkv",
|
| 274 |
+
"relit_mask": "media/relit_B_small_4deg_green.mkv",
|
| 275 |
+
"source": {
|
| 276 |
+
"view": "A",
|
| 277 |
+
"state": "E1P",
|
| 278 |
+
"kind": "on",
|
| 279 |
+
"variant": "original",
|
| 280 |
+
"alpha": 0.0,
|
| 281 |
+
"gamma": 0.0,
|
| 282 |
+
"color": null
|
| 283 |
+
},
|
| 284 |
+
"target": {
|
| 285 |
+
"view": "B",
|
| 286 |
+
"state": "E1Q",
|
| 287 |
+
"kind": "on",
|
| 288 |
+
"variant": "GLB_asset_5",
|
| 289 |
+
"alpha": 0.0,
|
| 290 |
+
"gamma": 0.55,
|
| 291 |
+
"color": [
|
| 292 |
+
0.02,
|
| 293 |
+
1.0,
|
| 294 |
+
0.03
|
| 295 |
+
]
|
| 296 |
+
},
|
| 297 |
+
"reference_image": "media/replacement_reference.png",
|
| 298 |
+
"reference_images": [
|
| 299 |
+
"media/replacement_reference.png"
|
| 300 |
+
],
|
| 301 |
+
"relit_video": "media/source_A.mkv",
|
| 302 |
+
"concat_video": "media/source_A.mkv",
|
| 303 |
+
"lattice_rgb": "media/joint_B_small_4deg.mkv",
|
| 304 |
+
"target_fixture_present": true,
|
| 305 |
+
"target_light_active": true,
|
| 306 |
+
"camera_version": "small_4deg",
|
| 307 |
+
"intensity_control_level": "medium",
|
| 308 |
+
"legacy_intensity_npz": "small_4deg/move_replace/intensity/medium",
|
| 309 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 310 |
+
"target_B_RGB_not_observed": true
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"sample_id": "realcase_109_small_4deg_green_high",
|
| 314 |
+
"group": "realcase_109",
|
| 315 |
+
"operation": "move_replace",
|
| 316 |
+
"edit_subtype": "different_fixture_new_position",
|
| 317 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 318 |
+
"alpha": 0.0,
|
| 319 |
+
"gamma": 0.9,
|
| 320 |
+
"source_alpha": 0.0,
|
| 321 |
+
"target_alpha": 0.0,
|
| 322 |
+
"source_gamma": 0.0,
|
| 323 |
+
"target_gamma": 0.9,
|
| 324 |
+
"source_color": null,
|
| 325 |
+
"target_color": [
|
| 326 |
+
0.02,
|
| 327 |
+
1.0,
|
| 328 |
+
0.03
|
| 329 |
+
],
|
| 330 |
+
"source_variant": "original_video_fixture",
|
| 331 |
+
"target_variant": "GLB_asset_5",
|
| 332 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 333 |
+
"input": "media/source_A.mkv",
|
| 334 |
+
"video": null,
|
| 335 |
+
"joint_pcf_bbox": "media/joint_B_small_4deg.mkv",
|
| 336 |
+
"relit_mask": "media/relit_B_small_4deg_green.mkv",
|
| 337 |
+
"source": {
|
| 338 |
+
"view": "A",
|
| 339 |
+
"state": "E1P",
|
| 340 |
+
"kind": "on",
|
| 341 |
+
"variant": "original",
|
| 342 |
+
"alpha": 0.0,
|
| 343 |
+
"gamma": 0.0,
|
| 344 |
+
"color": null
|
| 345 |
+
},
|
| 346 |
+
"target": {
|
| 347 |
+
"view": "B",
|
| 348 |
+
"state": "E1Q",
|
| 349 |
+
"kind": "on",
|
| 350 |
+
"variant": "GLB_asset_5",
|
| 351 |
+
"alpha": 0.0,
|
| 352 |
+
"gamma": 0.9,
|
| 353 |
+
"color": [
|
| 354 |
+
0.02,
|
| 355 |
+
1.0,
|
| 356 |
+
0.03
|
| 357 |
+
]
|
| 358 |
+
},
|
| 359 |
+
"reference_image": "media/replacement_reference.png",
|
| 360 |
+
"reference_images": [
|
| 361 |
+
"media/replacement_reference.png"
|
| 362 |
+
],
|
| 363 |
+
"relit_video": "media/source_A.mkv",
|
| 364 |
+
"concat_video": "media/source_A.mkv",
|
| 365 |
+
"lattice_rgb": "media/joint_B_small_4deg.mkv",
|
| 366 |
+
"target_fixture_present": true,
|
| 367 |
+
"target_light_active": true,
|
| 368 |
+
"camera_version": "small_4deg",
|
| 369 |
+
"intensity_control_level": "high",
|
| 370 |
+
"legacy_intensity_npz": "small_4deg/move_replace/intensity/high",
|
| 371 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 372 |
+
"target_B_RGB_not_observed": true
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"sample_id": "realcase_109_small_4deg_blue_low",
|
| 376 |
+
"group": "realcase_109",
|
| 377 |
+
"operation": "move_replace",
|
| 378 |
+
"edit_subtype": "different_fixture_new_position",
|
| 379 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 380 |
+
"alpha": 0.0,
|
| 381 |
+
"gamma": 0.25,
|
| 382 |
+
"source_alpha": 0.0,
|
| 383 |
+
"target_alpha": 0.0,
|
| 384 |
+
"source_gamma": 0.0,
|
| 385 |
+
"target_gamma": 0.25,
|
| 386 |
+
"source_color": null,
|
| 387 |
+
"target_color": [
|
| 388 |
+
0.02,
|
| 389 |
+
0.08,
|
| 390 |
+
1.0
|
| 391 |
+
],
|
| 392 |
+
"source_variant": "original_video_fixture",
|
| 393 |
+
"target_variant": "GLB_asset_5",
|
| 394 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 395 |
+
"input": "media/source_A.mkv",
|
| 396 |
+
"video": null,
|
| 397 |
+
"joint_pcf_bbox": "media/joint_B_small_4deg.mkv",
|
| 398 |
+
"relit_mask": "media/relit_B_small_4deg_blue.mkv",
|
| 399 |
+
"source": {
|
| 400 |
+
"view": "A",
|
| 401 |
+
"state": "E1P",
|
| 402 |
+
"kind": "on",
|
| 403 |
+
"variant": "original",
|
| 404 |
+
"alpha": 0.0,
|
| 405 |
+
"gamma": 0.0,
|
| 406 |
+
"color": null
|
| 407 |
+
},
|
| 408 |
+
"target": {
|
| 409 |
+
"view": "B",
|
| 410 |
+
"state": "E1Q",
|
| 411 |
+
"kind": "on",
|
| 412 |
+
"variant": "GLB_asset_5",
|
| 413 |
+
"alpha": 0.0,
|
| 414 |
+
"gamma": 0.25,
|
| 415 |
+
"color": [
|
| 416 |
+
0.02,
|
| 417 |
+
0.08,
|
| 418 |
+
1.0
|
| 419 |
+
]
|
| 420 |
+
},
|
| 421 |
+
"reference_image": "media/replacement_reference.png",
|
| 422 |
+
"reference_images": [
|
| 423 |
+
"media/replacement_reference.png"
|
| 424 |
+
],
|
| 425 |
+
"relit_video": "media/source_A.mkv",
|
| 426 |
+
"concat_video": "media/source_A.mkv",
|
| 427 |
+
"lattice_rgb": "media/joint_B_small_4deg.mkv",
|
| 428 |
+
"target_fixture_present": true,
|
| 429 |
+
"target_light_active": true,
|
| 430 |
+
"camera_version": "small_4deg",
|
| 431 |
+
"intensity_control_level": "low",
|
| 432 |
+
"legacy_intensity_npz": "small_4deg/move_replace/intensity/low",
|
| 433 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 434 |
+
"target_B_RGB_not_observed": true
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"sample_id": "realcase_109_small_4deg_blue_medium",
|
| 438 |
+
"group": "realcase_109",
|
| 439 |
+
"operation": "move_replace",
|
| 440 |
+
"edit_subtype": "different_fixture_new_position",
|
| 441 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 442 |
+
"alpha": 0.0,
|
| 443 |
+
"gamma": 0.55,
|
| 444 |
+
"source_alpha": 0.0,
|
| 445 |
+
"target_alpha": 0.0,
|
| 446 |
+
"source_gamma": 0.0,
|
| 447 |
+
"target_gamma": 0.55,
|
| 448 |
+
"source_color": null,
|
| 449 |
+
"target_color": [
|
| 450 |
+
0.02,
|
| 451 |
+
0.08,
|
| 452 |
+
1.0
|
| 453 |
+
],
|
| 454 |
+
"source_variant": "original_video_fixture",
|
| 455 |
+
"target_variant": "GLB_asset_5",
|
| 456 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 457 |
+
"input": "media/source_A.mkv",
|
| 458 |
+
"video": null,
|
| 459 |
+
"joint_pcf_bbox": "media/joint_B_small_4deg.mkv",
|
| 460 |
+
"relit_mask": "media/relit_B_small_4deg_blue.mkv",
|
| 461 |
+
"source": {
|
| 462 |
+
"view": "A",
|
| 463 |
+
"state": "E1P",
|
| 464 |
+
"kind": "on",
|
| 465 |
+
"variant": "original",
|
| 466 |
+
"alpha": 0.0,
|
| 467 |
+
"gamma": 0.0,
|
| 468 |
+
"color": null
|
| 469 |
+
},
|
| 470 |
+
"target": {
|
| 471 |
+
"view": "B",
|
| 472 |
+
"state": "E1Q",
|
| 473 |
+
"kind": "on",
|
| 474 |
+
"variant": "GLB_asset_5",
|
| 475 |
+
"alpha": 0.0,
|
| 476 |
+
"gamma": 0.55,
|
| 477 |
+
"color": [
|
| 478 |
+
0.02,
|
| 479 |
+
0.08,
|
| 480 |
+
1.0
|
| 481 |
+
]
|
| 482 |
+
},
|
| 483 |
+
"reference_image": "media/replacement_reference.png",
|
| 484 |
+
"reference_images": [
|
| 485 |
+
"media/replacement_reference.png"
|
| 486 |
+
],
|
| 487 |
+
"relit_video": "media/source_A.mkv",
|
| 488 |
+
"concat_video": "media/source_A.mkv",
|
| 489 |
+
"lattice_rgb": "media/joint_B_small_4deg.mkv",
|
| 490 |
+
"target_fixture_present": true,
|
| 491 |
+
"target_light_active": true,
|
| 492 |
+
"camera_version": "small_4deg",
|
| 493 |
+
"intensity_control_level": "medium",
|
| 494 |
+
"legacy_intensity_npz": "small_4deg/move_replace/intensity/medium",
|
| 495 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 496 |
+
"target_B_RGB_not_observed": true
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"sample_id": "realcase_109_small_4deg_blue_high",
|
| 500 |
+
"group": "realcase_109",
|
| 501 |
+
"operation": "move_replace",
|
| 502 |
+
"edit_subtype": "different_fixture_new_position",
|
| 503 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 504 |
+
"alpha": 0.0,
|
| 505 |
+
"gamma": 0.9,
|
| 506 |
+
"source_alpha": 0.0,
|
| 507 |
+
"target_alpha": 0.0,
|
| 508 |
+
"source_gamma": 0.0,
|
| 509 |
+
"target_gamma": 0.9,
|
| 510 |
+
"source_color": null,
|
| 511 |
+
"target_color": [
|
| 512 |
+
0.02,
|
| 513 |
+
0.08,
|
| 514 |
+
1.0
|
| 515 |
+
],
|
| 516 |
+
"source_variant": "original_video_fixture",
|
| 517 |
+
"target_variant": "GLB_asset_5",
|
| 518 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 519 |
+
"input": "media/source_A.mkv",
|
| 520 |
+
"video": null,
|
| 521 |
+
"joint_pcf_bbox": "media/joint_B_small_4deg.mkv",
|
| 522 |
+
"relit_mask": "media/relit_B_small_4deg_blue.mkv",
|
| 523 |
+
"source": {
|
| 524 |
+
"view": "A",
|
| 525 |
+
"state": "E1P",
|
| 526 |
+
"kind": "on",
|
| 527 |
+
"variant": "original",
|
| 528 |
+
"alpha": 0.0,
|
| 529 |
+
"gamma": 0.0,
|
| 530 |
+
"color": null
|
| 531 |
+
},
|
| 532 |
+
"target": {
|
| 533 |
+
"view": "B",
|
| 534 |
+
"state": "E1Q",
|
| 535 |
+
"kind": "on",
|
| 536 |
+
"variant": "GLB_asset_5",
|
| 537 |
+
"alpha": 0.0,
|
| 538 |
+
"gamma": 0.9,
|
| 539 |
+
"color": [
|
| 540 |
+
0.02,
|
| 541 |
+
0.08,
|
| 542 |
+
1.0
|
| 543 |
+
]
|
| 544 |
+
},
|
| 545 |
+
"reference_image": "media/replacement_reference.png",
|
| 546 |
+
"reference_images": [
|
| 547 |
+
"media/replacement_reference.png"
|
| 548 |
+
],
|
| 549 |
+
"relit_video": "media/source_A.mkv",
|
| 550 |
+
"concat_video": "media/source_A.mkv",
|
| 551 |
+
"lattice_rgb": "media/joint_B_small_4deg.mkv",
|
| 552 |
+
"target_fixture_present": true,
|
| 553 |
+
"target_light_active": true,
|
| 554 |
+
"camera_version": "small_4deg",
|
| 555 |
+
"intensity_control_level": "high",
|
| 556 |
+
"legacy_intensity_npz": "small_4deg/move_replace/intensity/high",
|
| 557 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 558 |
+
"target_B_RGB_not_observed": true
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"sample_id": "realcase_109_small_4deg_warm_low",
|
| 562 |
+
"group": "realcase_109",
|
| 563 |
+
"operation": "move_replace",
|
| 564 |
+
"edit_subtype": "different_fixture_new_position",
|
| 565 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 566 |
+
"alpha": 0.0,
|
| 567 |
+
"gamma": 0.25,
|
| 568 |
+
"source_alpha": 0.0,
|
| 569 |
+
"target_alpha": 0.0,
|
| 570 |
+
"source_gamma": 0.0,
|
| 571 |
+
"target_gamma": 0.25,
|
| 572 |
+
"source_color": null,
|
| 573 |
+
"target_color": [
|
| 574 |
+
1.0,
|
| 575 |
+
0.75,
|
| 576 |
+
0.42
|
| 577 |
+
],
|
| 578 |
+
"source_variant": "original_video_fixture",
|
| 579 |
+
"target_variant": "GLB_asset_5",
|
| 580 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 581 |
+
"input": "media/source_A.mkv",
|
| 582 |
+
"video": null,
|
| 583 |
+
"joint_pcf_bbox": "media/joint_B_small_4deg.mkv",
|
| 584 |
+
"relit_mask": "media/relit_B_small_4deg_warm.mkv",
|
| 585 |
+
"source": {
|
| 586 |
+
"view": "A",
|
| 587 |
+
"state": "E1P",
|
| 588 |
+
"kind": "on",
|
| 589 |
+
"variant": "original",
|
| 590 |
+
"alpha": 0.0,
|
| 591 |
+
"gamma": 0.0,
|
| 592 |
+
"color": null
|
| 593 |
+
},
|
| 594 |
+
"target": {
|
| 595 |
+
"view": "B",
|
| 596 |
+
"state": "E1Q",
|
| 597 |
+
"kind": "on",
|
| 598 |
+
"variant": "GLB_asset_5",
|
| 599 |
+
"alpha": 0.0,
|
| 600 |
+
"gamma": 0.25,
|
| 601 |
+
"color": [
|
| 602 |
+
1.0,
|
| 603 |
+
0.75,
|
| 604 |
+
0.42
|
| 605 |
+
]
|
| 606 |
+
},
|
| 607 |
+
"reference_image": "media/replacement_reference.png",
|
| 608 |
+
"reference_images": [
|
| 609 |
+
"media/replacement_reference.png"
|
| 610 |
+
],
|
| 611 |
+
"relit_video": "media/source_A.mkv",
|
| 612 |
+
"concat_video": "media/source_A.mkv",
|
| 613 |
+
"lattice_rgb": "media/joint_B_small_4deg.mkv",
|
| 614 |
+
"target_fixture_present": true,
|
| 615 |
+
"target_light_active": true,
|
| 616 |
+
"camera_version": "small_4deg",
|
| 617 |
+
"intensity_control_level": "low",
|
| 618 |
+
"legacy_intensity_npz": "small_4deg/move_replace/intensity/low",
|
| 619 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 620 |
+
"target_B_RGB_not_observed": true
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"sample_id": "realcase_109_small_4deg_warm_medium",
|
| 624 |
+
"group": "realcase_109",
|
| 625 |
+
"operation": "move_replace",
|
| 626 |
+
"edit_subtype": "different_fixture_new_position",
|
| 627 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 628 |
+
"alpha": 0.0,
|
| 629 |
+
"gamma": 0.55,
|
| 630 |
+
"source_alpha": 0.0,
|
| 631 |
+
"target_alpha": 0.0,
|
| 632 |
+
"source_gamma": 0.0,
|
| 633 |
+
"target_gamma": 0.55,
|
| 634 |
+
"source_color": null,
|
| 635 |
+
"target_color": [
|
| 636 |
+
1.0,
|
| 637 |
+
0.75,
|
| 638 |
+
0.42
|
| 639 |
+
],
|
| 640 |
+
"source_variant": "original_video_fixture",
|
| 641 |
+
"target_variant": "GLB_asset_5",
|
| 642 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 643 |
+
"input": "media/source_A.mkv",
|
| 644 |
+
"video": null,
|
| 645 |
+
"joint_pcf_bbox": "media/joint_B_small_4deg.mkv",
|
| 646 |
+
"relit_mask": "media/relit_B_small_4deg_warm.mkv",
|
| 647 |
+
"source": {
|
| 648 |
+
"view": "A",
|
| 649 |
+
"state": "E1P",
|
| 650 |
+
"kind": "on",
|
| 651 |
+
"variant": "original",
|
| 652 |
+
"alpha": 0.0,
|
| 653 |
+
"gamma": 0.0,
|
| 654 |
+
"color": null
|
| 655 |
+
},
|
| 656 |
+
"target": {
|
| 657 |
+
"view": "B",
|
| 658 |
+
"state": "E1Q",
|
| 659 |
+
"kind": "on",
|
| 660 |
+
"variant": "GLB_asset_5",
|
| 661 |
+
"alpha": 0.0,
|
| 662 |
+
"gamma": 0.55,
|
| 663 |
+
"color": [
|
| 664 |
+
1.0,
|
| 665 |
+
0.75,
|
| 666 |
+
0.42
|
| 667 |
+
]
|
| 668 |
+
},
|
| 669 |
+
"reference_image": "media/replacement_reference.png",
|
| 670 |
+
"reference_images": [
|
| 671 |
+
"media/replacement_reference.png"
|
| 672 |
+
],
|
| 673 |
+
"relit_video": "media/source_A.mkv",
|
| 674 |
+
"concat_video": "media/source_A.mkv",
|
| 675 |
+
"lattice_rgb": "media/joint_B_small_4deg.mkv",
|
| 676 |
+
"target_fixture_present": true,
|
| 677 |
+
"target_light_active": true,
|
| 678 |
+
"camera_version": "small_4deg",
|
| 679 |
+
"intensity_control_level": "medium",
|
| 680 |
+
"legacy_intensity_npz": "small_4deg/move_replace/intensity/medium",
|
| 681 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 682 |
+
"target_B_RGB_not_observed": true
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"sample_id": "realcase_109_small_4deg_warm_high",
|
| 686 |
+
"group": "realcase_109",
|
| 687 |
+
"operation": "move_replace",
|
| 688 |
+
"edit_subtype": "different_fixture_new_position",
|
| 689 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 690 |
+
"alpha": 0.0,
|
| 691 |
+
"gamma": 0.9,
|
| 692 |
+
"source_alpha": 0.0,
|
| 693 |
+
"target_alpha": 0.0,
|
| 694 |
+
"source_gamma": 0.0,
|
| 695 |
+
"target_gamma": 0.9,
|
| 696 |
+
"source_color": null,
|
| 697 |
+
"target_color": [
|
| 698 |
+
1.0,
|
| 699 |
+
0.75,
|
| 700 |
+
0.42
|
| 701 |
+
],
|
| 702 |
+
"source_variant": "original_video_fixture",
|
| 703 |
+
"target_variant": "GLB_asset_5",
|
| 704 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 705 |
+
"input": "media/source_A.mkv",
|
| 706 |
+
"video": null,
|
| 707 |
+
"joint_pcf_bbox": "media/joint_B_small_4deg.mkv",
|
| 708 |
+
"relit_mask": "media/relit_B_small_4deg_warm.mkv",
|
| 709 |
+
"source": {
|
| 710 |
+
"view": "A",
|
| 711 |
+
"state": "E1P",
|
| 712 |
+
"kind": "on",
|
| 713 |
+
"variant": "original",
|
| 714 |
+
"alpha": 0.0,
|
| 715 |
+
"gamma": 0.0,
|
| 716 |
+
"color": null
|
| 717 |
+
},
|
| 718 |
+
"target": {
|
| 719 |
+
"view": "B",
|
| 720 |
+
"state": "E1Q",
|
| 721 |
+
"kind": "on",
|
| 722 |
+
"variant": "GLB_asset_5",
|
| 723 |
+
"alpha": 0.0,
|
| 724 |
+
"gamma": 0.9,
|
| 725 |
+
"color": [
|
| 726 |
+
1.0,
|
| 727 |
+
0.75,
|
| 728 |
+
0.42
|
| 729 |
+
]
|
| 730 |
+
},
|
| 731 |
+
"reference_image": "media/replacement_reference.png",
|
| 732 |
+
"reference_images": [
|
| 733 |
+
"media/replacement_reference.png"
|
| 734 |
+
],
|
| 735 |
+
"relit_video": "media/source_A.mkv",
|
| 736 |
+
"concat_video": "media/source_A.mkv",
|
| 737 |
+
"lattice_rgb": "media/joint_B_small_4deg.mkv",
|
| 738 |
+
"target_fixture_present": true,
|
| 739 |
+
"target_light_active": true,
|
| 740 |
+
"camera_version": "small_4deg",
|
| 741 |
+
"intensity_control_level": "high",
|
| 742 |
+
"legacy_intensity_npz": "small_4deg/move_replace/intensity/high",
|
| 743 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 744 |
+
"target_B_RGB_not_observed": true
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"sample_id": "realcase_109_orbit_10deg_purple_low",
|
| 748 |
+
"group": "realcase_109",
|
| 749 |
+
"operation": "move_replace",
|
| 750 |
+
"edit_subtype": "different_fixture_new_position",
|
| 751 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 752 |
+
"alpha": 0.0,
|
| 753 |
+
"gamma": 0.25,
|
| 754 |
+
"source_alpha": 0.0,
|
| 755 |
+
"target_alpha": 0.0,
|
| 756 |
+
"source_gamma": 0.0,
|
| 757 |
+
"target_gamma": 0.25,
|
| 758 |
+
"source_color": null,
|
| 759 |
+
"target_color": [
|
| 760 |
+
0.72,
|
| 761 |
+
0.02,
|
| 762 |
+
1.0
|
| 763 |
+
],
|
| 764 |
+
"source_variant": "original_video_fixture",
|
| 765 |
+
"target_variant": "GLB_asset_5",
|
| 766 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 767 |
+
"input": "media/source_A.mkv",
|
| 768 |
+
"video": null,
|
| 769 |
+
"joint_pcf_bbox": "media/joint_B_orbit_10deg.mkv",
|
| 770 |
+
"relit_mask": "media/relit_B_orbit_10deg_purple.mkv",
|
| 771 |
+
"source": {
|
| 772 |
+
"view": "A",
|
| 773 |
+
"state": "E1P",
|
| 774 |
+
"kind": "on",
|
| 775 |
+
"variant": "original",
|
| 776 |
+
"alpha": 0.0,
|
| 777 |
+
"gamma": 0.0,
|
| 778 |
+
"color": null
|
| 779 |
+
},
|
| 780 |
+
"target": {
|
| 781 |
+
"view": "B",
|
| 782 |
+
"state": "E1Q",
|
| 783 |
+
"kind": "on",
|
| 784 |
+
"variant": "GLB_asset_5",
|
| 785 |
+
"alpha": 0.0,
|
| 786 |
+
"gamma": 0.25,
|
| 787 |
+
"color": [
|
| 788 |
+
0.72,
|
| 789 |
+
0.02,
|
| 790 |
+
1.0
|
| 791 |
+
]
|
| 792 |
+
},
|
| 793 |
+
"reference_image": "media/replacement_reference.png",
|
| 794 |
+
"reference_images": [
|
| 795 |
+
"media/replacement_reference.png"
|
| 796 |
+
],
|
| 797 |
+
"relit_video": "media/source_A.mkv",
|
| 798 |
+
"concat_video": "media/source_A.mkv",
|
| 799 |
+
"lattice_rgb": "media/joint_B_orbit_10deg.mkv",
|
| 800 |
+
"target_fixture_present": true,
|
| 801 |
+
"target_light_active": true,
|
| 802 |
+
"camera_version": "orbit_10deg",
|
| 803 |
+
"intensity_control_level": "low",
|
| 804 |
+
"legacy_intensity_npz": "orbit_10deg/move_replace/intensity/low",
|
| 805 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 806 |
+
"target_B_RGB_not_observed": true
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"sample_id": "realcase_109_orbit_10deg_purple_medium",
|
| 810 |
+
"group": "realcase_109",
|
| 811 |
+
"operation": "move_replace",
|
| 812 |
+
"edit_subtype": "different_fixture_new_position",
|
| 813 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 814 |
+
"alpha": 0.0,
|
| 815 |
+
"gamma": 0.55,
|
| 816 |
+
"source_alpha": 0.0,
|
| 817 |
+
"target_alpha": 0.0,
|
| 818 |
+
"source_gamma": 0.0,
|
| 819 |
+
"target_gamma": 0.55,
|
| 820 |
+
"source_color": null,
|
| 821 |
+
"target_color": [
|
| 822 |
+
0.72,
|
| 823 |
+
0.02,
|
| 824 |
+
1.0
|
| 825 |
+
],
|
| 826 |
+
"source_variant": "original_video_fixture",
|
| 827 |
+
"target_variant": "GLB_asset_5",
|
| 828 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 829 |
+
"input": "media/source_A.mkv",
|
| 830 |
+
"video": null,
|
| 831 |
+
"joint_pcf_bbox": "media/joint_B_orbit_10deg.mkv",
|
| 832 |
+
"relit_mask": "media/relit_B_orbit_10deg_purple.mkv",
|
| 833 |
+
"source": {
|
| 834 |
+
"view": "A",
|
| 835 |
+
"state": "E1P",
|
| 836 |
+
"kind": "on",
|
| 837 |
+
"variant": "original",
|
| 838 |
+
"alpha": 0.0,
|
| 839 |
+
"gamma": 0.0,
|
| 840 |
+
"color": null
|
| 841 |
+
},
|
| 842 |
+
"target": {
|
| 843 |
+
"view": "B",
|
| 844 |
+
"state": "E1Q",
|
| 845 |
+
"kind": "on",
|
| 846 |
+
"variant": "GLB_asset_5",
|
| 847 |
+
"alpha": 0.0,
|
| 848 |
+
"gamma": 0.55,
|
| 849 |
+
"color": [
|
| 850 |
+
0.72,
|
| 851 |
+
0.02,
|
| 852 |
+
1.0
|
| 853 |
+
]
|
| 854 |
+
},
|
| 855 |
+
"reference_image": "media/replacement_reference.png",
|
| 856 |
+
"reference_images": [
|
| 857 |
+
"media/replacement_reference.png"
|
| 858 |
+
],
|
| 859 |
+
"relit_video": "media/source_A.mkv",
|
| 860 |
+
"concat_video": "media/source_A.mkv",
|
| 861 |
+
"lattice_rgb": "media/joint_B_orbit_10deg.mkv",
|
| 862 |
+
"target_fixture_present": true,
|
| 863 |
+
"target_light_active": true,
|
| 864 |
+
"camera_version": "orbit_10deg",
|
| 865 |
+
"intensity_control_level": "medium",
|
| 866 |
+
"legacy_intensity_npz": "orbit_10deg/move_replace/intensity/medium",
|
| 867 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 868 |
+
"target_B_RGB_not_observed": true
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"sample_id": "realcase_109_orbit_10deg_purple_high",
|
| 872 |
+
"group": "realcase_109",
|
| 873 |
+
"operation": "move_replace",
|
| 874 |
+
"edit_subtype": "different_fixture_new_position",
|
| 875 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 876 |
+
"alpha": 0.0,
|
| 877 |
+
"gamma": 0.9,
|
| 878 |
+
"source_alpha": 0.0,
|
| 879 |
+
"target_alpha": 0.0,
|
| 880 |
+
"source_gamma": 0.0,
|
| 881 |
+
"target_gamma": 0.9,
|
| 882 |
+
"source_color": null,
|
| 883 |
+
"target_color": [
|
| 884 |
+
0.72,
|
| 885 |
+
0.02,
|
| 886 |
+
1.0
|
| 887 |
+
],
|
| 888 |
+
"source_variant": "original_video_fixture",
|
| 889 |
+
"target_variant": "GLB_asset_5",
|
| 890 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 891 |
+
"input": "media/source_A.mkv",
|
| 892 |
+
"video": null,
|
| 893 |
+
"joint_pcf_bbox": "media/joint_B_orbit_10deg.mkv",
|
| 894 |
+
"relit_mask": "media/relit_B_orbit_10deg_purple.mkv",
|
| 895 |
+
"source": {
|
| 896 |
+
"view": "A",
|
| 897 |
+
"state": "E1P",
|
| 898 |
+
"kind": "on",
|
| 899 |
+
"variant": "original",
|
| 900 |
+
"alpha": 0.0,
|
| 901 |
+
"gamma": 0.0,
|
| 902 |
+
"color": null
|
| 903 |
+
},
|
| 904 |
+
"target": {
|
| 905 |
+
"view": "B",
|
| 906 |
+
"state": "E1Q",
|
| 907 |
+
"kind": "on",
|
| 908 |
+
"variant": "GLB_asset_5",
|
| 909 |
+
"alpha": 0.0,
|
| 910 |
+
"gamma": 0.9,
|
| 911 |
+
"color": [
|
| 912 |
+
0.72,
|
| 913 |
+
0.02,
|
| 914 |
+
1.0
|
| 915 |
+
]
|
| 916 |
+
},
|
| 917 |
+
"reference_image": "media/replacement_reference.png",
|
| 918 |
+
"reference_images": [
|
| 919 |
+
"media/replacement_reference.png"
|
| 920 |
+
],
|
| 921 |
+
"relit_video": "media/source_A.mkv",
|
| 922 |
+
"concat_video": "media/source_A.mkv",
|
| 923 |
+
"lattice_rgb": "media/joint_B_orbit_10deg.mkv",
|
| 924 |
+
"target_fixture_present": true,
|
| 925 |
+
"target_light_active": true,
|
| 926 |
+
"camera_version": "orbit_10deg",
|
| 927 |
+
"intensity_control_level": "high",
|
| 928 |
+
"legacy_intensity_npz": "orbit_10deg/move_replace/intensity/high",
|
| 929 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 930 |
+
"target_B_RGB_not_observed": true
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"sample_id": "realcase_109_orbit_10deg_green_low",
|
| 934 |
+
"group": "realcase_109",
|
| 935 |
+
"operation": "move_replace",
|
| 936 |
+
"edit_subtype": "different_fixture_new_position",
|
| 937 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 938 |
+
"alpha": 0.0,
|
| 939 |
+
"gamma": 0.25,
|
| 940 |
+
"source_alpha": 0.0,
|
| 941 |
+
"target_alpha": 0.0,
|
| 942 |
+
"source_gamma": 0.0,
|
| 943 |
+
"target_gamma": 0.25,
|
| 944 |
+
"source_color": null,
|
| 945 |
+
"target_color": [
|
| 946 |
+
0.02,
|
| 947 |
+
1.0,
|
| 948 |
+
0.03
|
| 949 |
+
],
|
| 950 |
+
"source_variant": "original_video_fixture",
|
| 951 |
+
"target_variant": "GLB_asset_5",
|
| 952 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 953 |
+
"input": "media/source_A.mkv",
|
| 954 |
+
"video": null,
|
| 955 |
+
"joint_pcf_bbox": "media/joint_B_orbit_10deg.mkv",
|
| 956 |
+
"relit_mask": "media/relit_B_orbit_10deg_green.mkv",
|
| 957 |
+
"source": {
|
| 958 |
+
"view": "A",
|
| 959 |
+
"state": "E1P",
|
| 960 |
+
"kind": "on",
|
| 961 |
+
"variant": "original",
|
| 962 |
+
"alpha": 0.0,
|
| 963 |
+
"gamma": 0.0,
|
| 964 |
+
"color": null
|
| 965 |
+
},
|
| 966 |
+
"target": {
|
| 967 |
+
"view": "B",
|
| 968 |
+
"state": "E1Q",
|
| 969 |
+
"kind": "on",
|
| 970 |
+
"variant": "GLB_asset_5",
|
| 971 |
+
"alpha": 0.0,
|
| 972 |
+
"gamma": 0.25,
|
| 973 |
+
"color": [
|
| 974 |
+
0.02,
|
| 975 |
+
1.0,
|
| 976 |
+
0.03
|
| 977 |
+
]
|
| 978 |
+
},
|
| 979 |
+
"reference_image": "media/replacement_reference.png",
|
| 980 |
+
"reference_images": [
|
| 981 |
+
"media/replacement_reference.png"
|
| 982 |
+
],
|
| 983 |
+
"relit_video": "media/source_A.mkv",
|
| 984 |
+
"concat_video": "media/source_A.mkv",
|
| 985 |
+
"lattice_rgb": "media/joint_B_orbit_10deg.mkv",
|
| 986 |
+
"target_fixture_present": true,
|
| 987 |
+
"target_light_active": true,
|
| 988 |
+
"camera_version": "orbit_10deg",
|
| 989 |
+
"intensity_control_level": "low",
|
| 990 |
+
"legacy_intensity_npz": "orbit_10deg/move_replace/intensity/low",
|
| 991 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 992 |
+
"target_B_RGB_not_observed": true
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"sample_id": "realcase_109_orbit_10deg_green_medium",
|
| 996 |
+
"group": "realcase_109",
|
| 997 |
+
"operation": "move_replace",
|
| 998 |
+
"edit_subtype": "different_fixture_new_position",
|
| 999 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 1000 |
+
"alpha": 0.0,
|
| 1001 |
+
"gamma": 0.55,
|
| 1002 |
+
"source_alpha": 0.0,
|
| 1003 |
+
"target_alpha": 0.0,
|
| 1004 |
+
"source_gamma": 0.0,
|
| 1005 |
+
"target_gamma": 0.55,
|
| 1006 |
+
"source_color": null,
|
| 1007 |
+
"target_color": [
|
| 1008 |
+
0.02,
|
| 1009 |
+
1.0,
|
| 1010 |
+
0.03
|
| 1011 |
+
],
|
| 1012 |
+
"source_variant": "original_video_fixture",
|
| 1013 |
+
"target_variant": "GLB_asset_5",
|
| 1014 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 1015 |
+
"input": "media/source_A.mkv",
|
| 1016 |
+
"video": null,
|
| 1017 |
+
"joint_pcf_bbox": "media/joint_B_orbit_10deg.mkv",
|
| 1018 |
+
"relit_mask": "media/relit_B_orbit_10deg_green.mkv",
|
| 1019 |
+
"source": {
|
| 1020 |
+
"view": "A",
|
| 1021 |
+
"state": "E1P",
|
| 1022 |
+
"kind": "on",
|
| 1023 |
+
"variant": "original",
|
| 1024 |
+
"alpha": 0.0,
|
| 1025 |
+
"gamma": 0.0,
|
| 1026 |
+
"color": null
|
| 1027 |
+
},
|
| 1028 |
+
"target": {
|
| 1029 |
+
"view": "B",
|
| 1030 |
+
"state": "E1Q",
|
| 1031 |
+
"kind": "on",
|
| 1032 |
+
"variant": "GLB_asset_5",
|
| 1033 |
+
"alpha": 0.0,
|
| 1034 |
+
"gamma": 0.55,
|
| 1035 |
+
"color": [
|
| 1036 |
+
0.02,
|
| 1037 |
+
1.0,
|
| 1038 |
+
0.03
|
| 1039 |
+
]
|
| 1040 |
+
},
|
| 1041 |
+
"reference_image": "media/replacement_reference.png",
|
| 1042 |
+
"reference_images": [
|
| 1043 |
+
"media/replacement_reference.png"
|
| 1044 |
+
],
|
| 1045 |
+
"relit_video": "media/source_A.mkv",
|
| 1046 |
+
"concat_video": "media/source_A.mkv",
|
| 1047 |
+
"lattice_rgb": "media/joint_B_orbit_10deg.mkv",
|
| 1048 |
+
"target_fixture_present": true,
|
| 1049 |
+
"target_light_active": true,
|
| 1050 |
+
"camera_version": "orbit_10deg",
|
| 1051 |
+
"intensity_control_level": "medium",
|
| 1052 |
+
"legacy_intensity_npz": "orbit_10deg/move_replace/intensity/medium",
|
| 1053 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 1054 |
+
"target_B_RGB_not_observed": true
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"sample_id": "realcase_109_orbit_10deg_green_high",
|
| 1058 |
+
"group": "realcase_109",
|
| 1059 |
+
"operation": "move_replace",
|
| 1060 |
+
"edit_subtype": "different_fixture_new_position",
|
| 1061 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 1062 |
+
"alpha": 0.0,
|
| 1063 |
+
"gamma": 0.9,
|
| 1064 |
+
"source_alpha": 0.0,
|
| 1065 |
+
"target_alpha": 0.0,
|
| 1066 |
+
"source_gamma": 0.0,
|
| 1067 |
+
"target_gamma": 0.9,
|
| 1068 |
+
"source_color": null,
|
| 1069 |
+
"target_color": [
|
| 1070 |
+
0.02,
|
| 1071 |
+
1.0,
|
| 1072 |
+
0.03
|
| 1073 |
+
],
|
| 1074 |
+
"source_variant": "original_video_fixture",
|
| 1075 |
+
"target_variant": "GLB_asset_5",
|
| 1076 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 1077 |
+
"input": "media/source_A.mkv",
|
| 1078 |
+
"video": null,
|
| 1079 |
+
"joint_pcf_bbox": "media/joint_B_orbit_10deg.mkv",
|
| 1080 |
+
"relit_mask": "media/relit_B_orbit_10deg_green.mkv",
|
| 1081 |
+
"source": {
|
| 1082 |
+
"view": "A",
|
| 1083 |
+
"state": "E1P",
|
| 1084 |
+
"kind": "on",
|
| 1085 |
+
"variant": "original",
|
| 1086 |
+
"alpha": 0.0,
|
| 1087 |
+
"gamma": 0.0,
|
| 1088 |
+
"color": null
|
| 1089 |
+
},
|
| 1090 |
+
"target": {
|
| 1091 |
+
"view": "B",
|
| 1092 |
+
"state": "E1Q",
|
| 1093 |
+
"kind": "on",
|
| 1094 |
+
"variant": "GLB_asset_5",
|
| 1095 |
+
"alpha": 0.0,
|
| 1096 |
+
"gamma": 0.9,
|
| 1097 |
+
"color": [
|
| 1098 |
+
0.02,
|
| 1099 |
+
1.0,
|
| 1100 |
+
0.03
|
| 1101 |
+
]
|
| 1102 |
+
},
|
| 1103 |
+
"reference_image": "media/replacement_reference.png",
|
| 1104 |
+
"reference_images": [
|
| 1105 |
+
"media/replacement_reference.png"
|
| 1106 |
+
],
|
| 1107 |
+
"relit_video": "media/source_A.mkv",
|
| 1108 |
+
"concat_video": "media/source_A.mkv",
|
| 1109 |
+
"lattice_rgb": "media/joint_B_orbit_10deg.mkv",
|
| 1110 |
+
"target_fixture_present": true,
|
| 1111 |
+
"target_light_active": true,
|
| 1112 |
+
"camera_version": "orbit_10deg",
|
| 1113 |
+
"intensity_control_level": "high",
|
| 1114 |
+
"legacy_intensity_npz": "orbit_10deg/move_replace/intensity/high",
|
| 1115 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 1116 |
+
"target_B_RGB_not_observed": true
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"sample_id": "realcase_109_orbit_10deg_blue_low",
|
| 1120 |
+
"group": "realcase_109",
|
| 1121 |
+
"operation": "move_replace",
|
| 1122 |
+
"edit_subtype": "different_fixture_new_position",
|
| 1123 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 1124 |
+
"alpha": 0.0,
|
| 1125 |
+
"gamma": 0.25,
|
| 1126 |
+
"source_alpha": 0.0,
|
| 1127 |
+
"target_alpha": 0.0,
|
| 1128 |
+
"source_gamma": 0.0,
|
| 1129 |
+
"target_gamma": 0.25,
|
| 1130 |
+
"source_color": null,
|
| 1131 |
+
"target_color": [
|
| 1132 |
+
0.02,
|
| 1133 |
+
0.08,
|
| 1134 |
+
1.0
|
| 1135 |
+
],
|
| 1136 |
+
"source_variant": "original_video_fixture",
|
| 1137 |
+
"target_variant": "GLB_asset_5",
|
| 1138 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 1139 |
+
"input": "media/source_A.mkv",
|
| 1140 |
+
"video": null,
|
| 1141 |
+
"joint_pcf_bbox": "media/joint_B_orbit_10deg.mkv",
|
| 1142 |
+
"relit_mask": "media/relit_B_orbit_10deg_blue.mkv",
|
| 1143 |
+
"source": {
|
| 1144 |
+
"view": "A",
|
| 1145 |
+
"state": "E1P",
|
| 1146 |
+
"kind": "on",
|
| 1147 |
+
"variant": "original",
|
| 1148 |
+
"alpha": 0.0,
|
| 1149 |
+
"gamma": 0.0,
|
| 1150 |
+
"color": null
|
| 1151 |
+
},
|
| 1152 |
+
"target": {
|
| 1153 |
+
"view": "B",
|
| 1154 |
+
"state": "E1Q",
|
| 1155 |
+
"kind": "on",
|
| 1156 |
+
"variant": "GLB_asset_5",
|
| 1157 |
+
"alpha": 0.0,
|
| 1158 |
+
"gamma": 0.25,
|
| 1159 |
+
"color": [
|
| 1160 |
+
0.02,
|
| 1161 |
+
0.08,
|
| 1162 |
+
1.0
|
| 1163 |
+
]
|
| 1164 |
+
},
|
| 1165 |
+
"reference_image": "media/replacement_reference.png",
|
| 1166 |
+
"reference_images": [
|
| 1167 |
+
"media/replacement_reference.png"
|
| 1168 |
+
],
|
| 1169 |
+
"relit_video": "media/source_A.mkv",
|
| 1170 |
+
"concat_video": "media/source_A.mkv",
|
| 1171 |
+
"lattice_rgb": "media/joint_B_orbit_10deg.mkv",
|
| 1172 |
+
"target_fixture_present": true,
|
| 1173 |
+
"target_light_active": true,
|
| 1174 |
+
"camera_version": "orbit_10deg",
|
| 1175 |
+
"intensity_control_level": "low",
|
| 1176 |
+
"legacy_intensity_npz": "orbit_10deg/move_replace/intensity/low",
|
| 1177 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 1178 |
+
"target_B_RGB_not_observed": true
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"sample_id": "realcase_109_orbit_10deg_blue_medium",
|
| 1182 |
+
"group": "realcase_109",
|
| 1183 |
+
"operation": "move_replace",
|
| 1184 |
+
"edit_subtype": "different_fixture_new_position",
|
| 1185 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 1186 |
+
"alpha": 0.0,
|
| 1187 |
+
"gamma": 0.55,
|
| 1188 |
+
"source_alpha": 0.0,
|
| 1189 |
+
"target_alpha": 0.0,
|
| 1190 |
+
"source_gamma": 0.0,
|
| 1191 |
+
"target_gamma": 0.55,
|
| 1192 |
+
"source_color": null,
|
| 1193 |
+
"target_color": [
|
| 1194 |
+
0.02,
|
| 1195 |
+
0.08,
|
| 1196 |
+
1.0
|
| 1197 |
+
],
|
| 1198 |
+
"source_variant": "original_video_fixture",
|
| 1199 |
+
"target_variant": "GLB_asset_5",
|
| 1200 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 1201 |
+
"input": "media/source_A.mkv",
|
| 1202 |
+
"video": null,
|
| 1203 |
+
"joint_pcf_bbox": "media/joint_B_orbit_10deg.mkv",
|
| 1204 |
+
"relit_mask": "media/relit_B_orbit_10deg_blue.mkv",
|
| 1205 |
+
"source": {
|
| 1206 |
+
"view": "A",
|
| 1207 |
+
"state": "E1P",
|
| 1208 |
+
"kind": "on",
|
| 1209 |
+
"variant": "original",
|
| 1210 |
+
"alpha": 0.0,
|
| 1211 |
+
"gamma": 0.0,
|
| 1212 |
+
"color": null
|
| 1213 |
+
},
|
| 1214 |
+
"target": {
|
| 1215 |
+
"view": "B",
|
| 1216 |
+
"state": "E1Q",
|
| 1217 |
+
"kind": "on",
|
| 1218 |
+
"variant": "GLB_asset_5",
|
| 1219 |
+
"alpha": 0.0,
|
| 1220 |
+
"gamma": 0.55,
|
| 1221 |
+
"color": [
|
| 1222 |
+
0.02,
|
| 1223 |
+
0.08,
|
| 1224 |
+
1.0
|
| 1225 |
+
]
|
| 1226 |
+
},
|
| 1227 |
+
"reference_image": "media/replacement_reference.png",
|
| 1228 |
+
"reference_images": [
|
| 1229 |
+
"media/replacement_reference.png"
|
| 1230 |
+
],
|
| 1231 |
+
"relit_video": "media/source_A.mkv",
|
| 1232 |
+
"concat_video": "media/source_A.mkv",
|
| 1233 |
+
"lattice_rgb": "media/joint_B_orbit_10deg.mkv",
|
| 1234 |
+
"target_fixture_present": true,
|
| 1235 |
+
"target_light_active": true,
|
| 1236 |
+
"camera_version": "orbit_10deg",
|
| 1237 |
+
"intensity_control_level": "medium",
|
| 1238 |
+
"legacy_intensity_npz": "orbit_10deg/move_replace/intensity/medium",
|
| 1239 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 1240 |
+
"target_B_RGB_not_observed": true
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"sample_id": "realcase_109_orbit_10deg_blue_high",
|
| 1244 |
+
"group": "realcase_109",
|
| 1245 |
+
"operation": "move_replace",
|
| 1246 |
+
"edit_subtype": "different_fixture_new_position",
|
| 1247 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 1248 |
+
"alpha": 0.0,
|
| 1249 |
+
"gamma": 0.9,
|
| 1250 |
+
"source_alpha": 0.0,
|
| 1251 |
+
"target_alpha": 0.0,
|
| 1252 |
+
"source_gamma": 0.0,
|
| 1253 |
+
"target_gamma": 0.9,
|
| 1254 |
+
"source_color": null,
|
| 1255 |
+
"target_color": [
|
| 1256 |
+
0.02,
|
| 1257 |
+
0.08,
|
| 1258 |
+
1.0
|
| 1259 |
+
],
|
| 1260 |
+
"source_variant": "original_video_fixture",
|
| 1261 |
+
"target_variant": "GLB_asset_5",
|
| 1262 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 1263 |
+
"input": "media/source_A.mkv",
|
| 1264 |
+
"video": null,
|
| 1265 |
+
"joint_pcf_bbox": "media/joint_B_orbit_10deg.mkv",
|
| 1266 |
+
"relit_mask": "media/relit_B_orbit_10deg_blue.mkv",
|
| 1267 |
+
"source": {
|
| 1268 |
+
"view": "A",
|
| 1269 |
+
"state": "E1P",
|
| 1270 |
+
"kind": "on",
|
| 1271 |
+
"variant": "original",
|
| 1272 |
+
"alpha": 0.0,
|
| 1273 |
+
"gamma": 0.0,
|
| 1274 |
+
"color": null
|
| 1275 |
+
},
|
| 1276 |
+
"target": {
|
| 1277 |
+
"view": "B",
|
| 1278 |
+
"state": "E1Q",
|
| 1279 |
+
"kind": "on",
|
| 1280 |
+
"variant": "GLB_asset_5",
|
| 1281 |
+
"alpha": 0.0,
|
| 1282 |
+
"gamma": 0.9,
|
| 1283 |
+
"color": [
|
| 1284 |
+
0.02,
|
| 1285 |
+
0.08,
|
| 1286 |
+
1.0
|
| 1287 |
+
]
|
| 1288 |
+
},
|
| 1289 |
+
"reference_image": "media/replacement_reference.png",
|
| 1290 |
+
"reference_images": [
|
| 1291 |
+
"media/replacement_reference.png"
|
| 1292 |
+
],
|
| 1293 |
+
"relit_video": "media/source_A.mkv",
|
| 1294 |
+
"concat_video": "media/source_A.mkv",
|
| 1295 |
+
"lattice_rgb": "media/joint_B_orbit_10deg.mkv",
|
| 1296 |
+
"target_fixture_present": true,
|
| 1297 |
+
"target_light_active": true,
|
| 1298 |
+
"camera_version": "orbit_10deg",
|
| 1299 |
+
"intensity_control_level": "high",
|
| 1300 |
+
"legacy_intensity_npz": "orbit_10deg/move_replace/intensity/high",
|
| 1301 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 1302 |
+
"target_B_RGB_not_observed": true
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"sample_id": "realcase_109_orbit_10deg_warm_low",
|
| 1306 |
+
"group": "realcase_109",
|
| 1307 |
+
"operation": "move_replace",
|
| 1308 |
+
"edit_subtype": "different_fixture_new_position",
|
| 1309 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 1310 |
+
"alpha": 0.0,
|
| 1311 |
+
"gamma": 0.25,
|
| 1312 |
+
"source_alpha": 0.0,
|
| 1313 |
+
"target_alpha": 0.0,
|
| 1314 |
+
"source_gamma": 0.0,
|
| 1315 |
+
"target_gamma": 0.25,
|
| 1316 |
+
"source_color": null,
|
| 1317 |
+
"target_color": [
|
| 1318 |
+
1.0,
|
| 1319 |
+
0.75,
|
| 1320 |
+
0.42
|
| 1321 |
+
],
|
| 1322 |
+
"source_variant": "original_video_fixture",
|
| 1323 |
+
"target_variant": "GLB_asset_5",
|
| 1324 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 1325 |
+
"input": "media/source_A.mkv",
|
| 1326 |
+
"video": null,
|
| 1327 |
+
"joint_pcf_bbox": "media/joint_B_orbit_10deg.mkv",
|
| 1328 |
+
"relit_mask": "media/relit_B_orbit_10deg_warm.mkv",
|
| 1329 |
+
"source": {
|
| 1330 |
+
"view": "A",
|
| 1331 |
+
"state": "E1P",
|
| 1332 |
+
"kind": "on",
|
| 1333 |
+
"variant": "original",
|
| 1334 |
+
"alpha": 0.0,
|
| 1335 |
+
"gamma": 0.0,
|
| 1336 |
+
"color": null
|
| 1337 |
+
},
|
| 1338 |
+
"target": {
|
| 1339 |
+
"view": "B",
|
| 1340 |
+
"state": "E1Q",
|
| 1341 |
+
"kind": "on",
|
| 1342 |
+
"variant": "GLB_asset_5",
|
| 1343 |
+
"alpha": 0.0,
|
| 1344 |
+
"gamma": 0.25,
|
| 1345 |
+
"color": [
|
| 1346 |
+
1.0,
|
| 1347 |
+
0.75,
|
| 1348 |
+
0.42
|
| 1349 |
+
]
|
| 1350 |
+
},
|
| 1351 |
+
"reference_image": "media/replacement_reference.png",
|
| 1352 |
+
"reference_images": [
|
| 1353 |
+
"media/replacement_reference.png"
|
| 1354 |
+
],
|
| 1355 |
+
"relit_video": "media/source_A.mkv",
|
| 1356 |
+
"concat_video": "media/source_A.mkv",
|
| 1357 |
+
"lattice_rgb": "media/joint_B_orbit_10deg.mkv",
|
| 1358 |
+
"target_fixture_present": true,
|
| 1359 |
+
"target_light_active": true,
|
| 1360 |
+
"camera_version": "orbit_10deg",
|
| 1361 |
+
"intensity_control_level": "low",
|
| 1362 |
+
"legacy_intensity_npz": "orbit_10deg/move_replace/intensity/low",
|
| 1363 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 1364 |
+
"target_B_RGB_not_observed": true
|
| 1365 |
+
},
|
| 1366 |
+
{
|
| 1367 |
+
"sample_id": "realcase_109_orbit_10deg_warm_medium",
|
| 1368 |
+
"group": "realcase_109",
|
| 1369 |
+
"operation": "move_replace",
|
| 1370 |
+
"edit_subtype": "different_fixture_new_position",
|
| 1371 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 1372 |
+
"alpha": 0.0,
|
| 1373 |
+
"gamma": 0.55,
|
| 1374 |
+
"source_alpha": 0.0,
|
| 1375 |
+
"target_alpha": 0.0,
|
| 1376 |
+
"source_gamma": 0.0,
|
| 1377 |
+
"target_gamma": 0.55,
|
| 1378 |
+
"source_color": null,
|
| 1379 |
+
"target_color": [
|
| 1380 |
+
1.0,
|
| 1381 |
+
0.75,
|
| 1382 |
+
0.42
|
| 1383 |
+
],
|
| 1384 |
+
"source_variant": "original_video_fixture",
|
| 1385 |
+
"target_variant": "GLB_asset_5",
|
| 1386 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 1387 |
+
"input": "media/source_A.mkv",
|
| 1388 |
+
"video": null,
|
| 1389 |
+
"joint_pcf_bbox": "media/joint_B_orbit_10deg.mkv",
|
| 1390 |
+
"relit_mask": "media/relit_B_orbit_10deg_warm.mkv",
|
| 1391 |
+
"source": {
|
| 1392 |
+
"view": "A",
|
| 1393 |
+
"state": "E1P",
|
| 1394 |
+
"kind": "on",
|
| 1395 |
+
"variant": "original",
|
| 1396 |
+
"alpha": 0.0,
|
| 1397 |
+
"gamma": 0.0,
|
| 1398 |
+
"color": null
|
| 1399 |
+
},
|
| 1400 |
+
"target": {
|
| 1401 |
+
"view": "B",
|
| 1402 |
+
"state": "E1Q",
|
| 1403 |
+
"kind": "on",
|
| 1404 |
+
"variant": "GLB_asset_5",
|
| 1405 |
+
"alpha": 0.0,
|
| 1406 |
+
"gamma": 0.55,
|
| 1407 |
+
"color": [
|
| 1408 |
+
1.0,
|
| 1409 |
+
0.75,
|
| 1410 |
+
0.42
|
| 1411 |
+
]
|
| 1412 |
+
},
|
| 1413 |
+
"reference_image": "media/replacement_reference.png",
|
| 1414 |
+
"reference_images": [
|
| 1415 |
+
"media/replacement_reference.png"
|
| 1416 |
+
],
|
| 1417 |
+
"relit_video": "media/source_A.mkv",
|
| 1418 |
+
"concat_video": "media/source_A.mkv",
|
| 1419 |
+
"lattice_rgb": "media/joint_B_orbit_10deg.mkv",
|
| 1420 |
+
"target_fixture_present": true,
|
| 1421 |
+
"target_light_active": true,
|
| 1422 |
+
"camera_version": "orbit_10deg",
|
| 1423 |
+
"intensity_control_level": "medium",
|
| 1424 |
+
"legacy_intensity_npz": "orbit_10deg/move_replace/intensity/medium",
|
| 1425 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 1426 |
+
"target_B_RGB_not_observed": true
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"sample_id": "realcase_109_orbit_10deg_warm_high",
|
| 1430 |
+
"group": "realcase_109",
|
| 1431 |
+
"operation": "move_replace",
|
| 1432 |
+
"edit_subtype": "different_fixture_new_position",
|
| 1433 |
+
"prompt": "Remove the original floor lamp at P and insert the different reference fixture at Q on the estimated floor support.",
|
| 1434 |
+
"alpha": 0.0,
|
| 1435 |
+
"gamma": 0.9,
|
| 1436 |
+
"source_alpha": 0.0,
|
| 1437 |
+
"target_alpha": 0.0,
|
| 1438 |
+
"source_gamma": 0.0,
|
| 1439 |
+
"target_gamma": 0.9,
|
| 1440 |
+
"source_color": null,
|
| 1441 |
+
"target_color": [
|
| 1442 |
+
1.0,
|
| 1443 |
+
0.75,
|
| 1444 |
+
0.42
|
| 1445 |
+
],
|
| 1446 |
+
"source_variant": "original_video_fixture",
|
| 1447 |
+
"target_variant": "GLB_asset_5",
|
| 1448 |
+
"pairing_protocol": "inference_only_no_target_RGB",
|
| 1449 |
+
"input": "media/source_A.mkv",
|
| 1450 |
+
"video": null,
|
| 1451 |
+
"joint_pcf_bbox": "media/joint_B_orbit_10deg.mkv",
|
| 1452 |
+
"relit_mask": "media/relit_B_orbit_10deg_warm.mkv",
|
| 1453 |
+
"source": {
|
| 1454 |
+
"view": "A",
|
| 1455 |
+
"state": "E1P",
|
| 1456 |
+
"kind": "on",
|
| 1457 |
+
"variant": "original",
|
| 1458 |
+
"alpha": 0.0,
|
| 1459 |
+
"gamma": 0.0,
|
| 1460 |
+
"color": null
|
| 1461 |
+
},
|
| 1462 |
+
"target": {
|
| 1463 |
+
"view": "B",
|
| 1464 |
+
"state": "E1Q",
|
| 1465 |
+
"kind": "on",
|
| 1466 |
+
"variant": "GLB_asset_5",
|
| 1467 |
+
"alpha": 0.0,
|
| 1468 |
+
"gamma": 0.9,
|
| 1469 |
+
"color": [
|
| 1470 |
+
1.0,
|
| 1471 |
+
0.75,
|
| 1472 |
+
0.42
|
| 1473 |
+
]
|
| 1474 |
+
},
|
| 1475 |
+
"reference_image": "media/replacement_reference.png",
|
| 1476 |
+
"reference_images": [
|
| 1477 |
+
"media/replacement_reference.png"
|
| 1478 |
+
],
|
| 1479 |
+
"relit_video": "media/source_A.mkv",
|
| 1480 |
+
"concat_video": "media/source_A.mkv",
|
| 1481 |
+
"lattice_rgb": "media/joint_B_orbit_10deg.mkv",
|
| 1482 |
+
"target_fixture_present": true,
|
| 1483 |
+
"target_light_active": true,
|
| 1484 |
+
"camera_version": "orbit_10deg",
|
| 1485 |
+
"intensity_control_level": "high",
|
| 1486 |
+
"legacy_intensity_npz": "orbit_10deg/move_replace/intensity/high",
|
| 1487 |
+
"control_provenance": "all alpha/gamma/color values are user-selected experimental controls, not measurements; source baseline zero is a control, not an inferred physical value",
|
| 1488 |
+
"target_B_RGB_not_observed": true
|
| 1489 |
+
}
|
| 1490 |
+
]
|
realcase/109/move_replace_mesh_v1/loader_checks.json
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"original_reader_module_sha256": "ae76b9588a94dd5a9db511ff89182a36d48947193b6ad04e0bbf3fae48a68fca",
|
| 3 |
+
"versions": {
|
| 4 |
+
"small_4deg": {
|
| 5 |
+
"joint_frames": "executed during production and re-read below",
|
| 6 |
+
"media_readers": {
|
| 7 |
+
"source": {
|
| 8 |
+
"shape": [
|
| 9 |
+
49,
|
| 10 |
+
704,
|
| 11 |
+
1280,
|
| 12 |
+
3
|
| 13 |
+
],
|
| 14 |
+
"dtype": "uint8",
|
| 15 |
+
"frames": 49
|
| 16 |
+
},
|
| 17 |
+
"joint": {
|
| 18 |
+
"shape": [
|
| 19 |
+
49,
|
| 20 |
+
704,
|
| 21 |
+
1280,
|
| 22 |
+
3
|
| 23 |
+
],
|
| 24 |
+
"dtype": "uint8",
|
| 25 |
+
"frames": 49
|
| 26 |
+
},
|
| 27 |
+
"P_bbox": {
|
| 28 |
+
"shape": [
|
| 29 |
+
49,
|
| 30 |
+
704,
|
| 31 |
+
1280
|
| 32 |
+
],
|
| 33 |
+
"dtype": "uint8",
|
| 34 |
+
"frames": 49
|
| 35 |
+
},
|
| 36 |
+
"Q_bbox": {
|
| 37 |
+
"shape": [
|
| 38 |
+
49,
|
| 39 |
+
704,
|
| 40 |
+
1280
|
| 41 |
+
],
|
| 42 |
+
"dtype": "uint8",
|
| 43 |
+
"frames": 49
|
| 44 |
+
},
|
| 45 |
+
"intensity_low": {
|
| 46 |
+
"shape": [
|
| 47 |
+
49,
|
| 48 |
+
704,
|
| 49 |
+
1280,
|
| 50 |
+
3
|
| 51 |
+
],
|
| 52 |
+
"dtype": "float32",
|
| 53 |
+
"frames": 49
|
| 54 |
+
},
|
| 55 |
+
"intensity_medium": {
|
| 56 |
+
"shape": [
|
| 57 |
+
49,
|
| 58 |
+
704,
|
| 59 |
+
1280,
|
| 60 |
+
3
|
| 61 |
+
],
|
| 62 |
+
"dtype": "float32",
|
| 63 |
+
"frames": 49
|
| 64 |
+
},
|
| 65 |
+
"intensity_high": {
|
| 66 |
+
"shape": [
|
| 67 |
+
49,
|
| 68 |
+
704,
|
| 69 |
+
1280,
|
| 70 |
+
3
|
| 71 |
+
],
|
| 72 |
+
"dtype": "float32",
|
| 73 |
+
"frames": 49
|
| 74 |
+
}
|
| 75 |
+
},
|
| 76 |
+
"legacy_support_conflict": {
|
| 77 |
+
"purple": {
|
| 78 |
+
"shape": [
|
| 79 |
+
49,
|
| 80 |
+
704,
|
| 81 |
+
1280,
|
| 82 |
+
3
|
| 83 |
+
],
|
| 84 |
+
"dtype": "float32",
|
| 85 |
+
"bbox_vs_silhouette_mismatch_pixels": 2822944,
|
| 86 |
+
"expected": "nonzero because current requirement is silhouette, legacy load_row asserts support == bbox"
|
| 87 |
+
},
|
| 88 |
+
"green": {
|
| 89 |
+
"shape": [
|
| 90 |
+
49,
|
| 91 |
+
704,
|
| 92 |
+
1280,
|
| 93 |
+
3
|
| 94 |
+
],
|
| 95 |
+
"dtype": "float32",
|
| 96 |
+
"bbox_vs_silhouette_mismatch_pixels": 2822944,
|
| 97 |
+
"expected": "nonzero because current requirement is silhouette, legacy load_row asserts support == bbox"
|
| 98 |
+
},
|
| 99 |
+
"blue": {
|
| 100 |
+
"shape": [
|
| 101 |
+
49,
|
| 102 |
+
704,
|
| 103 |
+
1280,
|
| 104 |
+
3
|
| 105 |
+
],
|
| 106 |
+
"dtype": "float32",
|
| 107 |
+
"bbox_vs_silhouette_mismatch_pixels": 2822944,
|
| 108 |
+
"expected": "nonzero because current requirement is silhouette, legacy load_row asserts support == bbox"
|
| 109 |
+
},
|
| 110 |
+
"warm": {
|
| 111 |
+
"shape": [
|
| 112 |
+
49,
|
| 113 |
+
704,
|
| 114 |
+
1280,
|
| 115 |
+
3
|
| 116 |
+
],
|
| 117 |
+
"dtype": "float32",
|
| 118 |
+
"bbox_vs_silhouette_mismatch_pixels": 2822944,
|
| 119 |
+
"expected": "nonzero because current requirement is silhouette, legacy load_row asserts support == bbox"
|
| 120 |
+
}
|
| 121 |
+
}
|
| 122 |
+
},
|
| 123 |
+
"orbit_10deg": {
|
| 124 |
+
"joint_frames": "executed during production and re-read below",
|
| 125 |
+
"media_readers": {
|
| 126 |
+
"source": {
|
| 127 |
+
"shape": [
|
| 128 |
+
49,
|
| 129 |
+
704,
|
| 130 |
+
1280,
|
| 131 |
+
3
|
| 132 |
+
],
|
| 133 |
+
"dtype": "uint8",
|
| 134 |
+
"frames": 49
|
| 135 |
+
},
|
| 136 |
+
"joint": {
|
| 137 |
+
"shape": [
|
| 138 |
+
49,
|
| 139 |
+
704,
|
| 140 |
+
1280,
|
| 141 |
+
3
|
| 142 |
+
],
|
| 143 |
+
"dtype": "uint8",
|
| 144 |
+
"frames": 49
|
| 145 |
+
},
|
| 146 |
+
"P_bbox": {
|
| 147 |
+
"shape": [
|
| 148 |
+
49,
|
| 149 |
+
704,
|
| 150 |
+
1280
|
| 151 |
+
],
|
| 152 |
+
"dtype": "uint8",
|
| 153 |
+
"frames": 49
|
| 154 |
+
},
|
| 155 |
+
"Q_bbox": {
|
| 156 |
+
"shape": [
|
| 157 |
+
49,
|
| 158 |
+
704,
|
| 159 |
+
1280
|
| 160 |
+
],
|
| 161 |
+
"dtype": "uint8",
|
| 162 |
+
"frames": 49
|
| 163 |
+
},
|
| 164 |
+
"intensity_low": {
|
| 165 |
+
"shape": [
|
| 166 |
+
49,
|
| 167 |
+
704,
|
| 168 |
+
1280,
|
| 169 |
+
3
|
| 170 |
+
],
|
| 171 |
+
"dtype": "float32",
|
| 172 |
+
"frames": 49
|
| 173 |
+
},
|
| 174 |
+
"intensity_medium": {
|
| 175 |
+
"shape": [
|
| 176 |
+
49,
|
| 177 |
+
704,
|
| 178 |
+
1280,
|
| 179 |
+
3
|
| 180 |
+
],
|
| 181 |
+
"dtype": "float32",
|
| 182 |
+
"frames": 49
|
| 183 |
+
},
|
| 184 |
+
"intensity_high": {
|
| 185 |
+
"shape": [
|
| 186 |
+
49,
|
| 187 |
+
704,
|
| 188 |
+
1280,
|
| 189 |
+
3
|
| 190 |
+
],
|
| 191 |
+
"dtype": "float32",
|
| 192 |
+
"frames": 49
|
| 193 |
+
}
|
| 194 |
+
},
|
| 195 |
+
"legacy_support_conflict": {
|
| 196 |
+
"purple": {
|
| 197 |
+
"shape": [
|
| 198 |
+
49,
|
| 199 |
+
704,
|
| 200 |
+
1280,
|
| 201 |
+
3
|
| 202 |
+
],
|
| 203 |
+
"dtype": "float32",
|
| 204 |
+
"bbox_vs_silhouette_mismatch_pixels": 2737442,
|
| 205 |
+
"expected": "nonzero because current requirement is silhouette, legacy load_row asserts support == bbox"
|
| 206 |
+
},
|
| 207 |
+
"green": {
|
| 208 |
+
"shape": [
|
| 209 |
+
49,
|
| 210 |
+
704,
|
| 211 |
+
1280,
|
| 212 |
+
3
|
| 213 |
+
],
|
| 214 |
+
"dtype": "float32",
|
| 215 |
+
"bbox_vs_silhouette_mismatch_pixels": 2737442,
|
| 216 |
+
"expected": "nonzero because current requirement is silhouette, legacy load_row asserts support == bbox"
|
| 217 |
+
},
|
| 218 |
+
"blue": {
|
| 219 |
+
"shape": [
|
| 220 |
+
49,
|
| 221 |
+
704,
|
| 222 |
+
1280,
|
| 223 |
+
3
|
| 224 |
+
],
|
| 225 |
+
"dtype": "float32",
|
| 226 |
+
"bbox_vs_silhouette_mismatch_pixels": 2737442,
|
| 227 |
+
"expected": "nonzero because current requirement is silhouette, legacy load_row asserts support == bbox"
|
| 228 |
+
},
|
| 229 |
+
"warm": {
|
| 230 |
+
"shape": [
|
| 231 |
+
49,
|
| 232 |
+
704,
|
| 233 |
+
1280,
|
| 234 |
+
3
|
| 235 |
+
],
|
| 236 |
+
"dtype": "float32",
|
| 237 |
+
"bbox_vs_silhouette_mismatch_pixels": 2737442,
|
| 238 |
+
"expected": "nonzero because current requirement is silhouette, legacy load_row asserts support == bbox"
|
| 239 |
+
}
|
| 240 |
+
}
|
| 241 |
+
}
|
| 242 |
+
},
|
| 243 |
+
"current_hf_v2_reference": {
|
| 244 |
+
"path": "v2/groups/G006_33/.../G006_33_training_only_native1280x704_v3.tar",
|
| 245 |
+
"manifest_rows_actually_read": 256,
|
| 246 |
+
"fields": [
|
| 247 |
+
"input",
|
| 248 |
+
"joint_pcf_bbox",
|
| 249 |
+
"relit_mask",
|
| 250 |
+
"reference_images",
|
| 251 |
+
"alpha",
|
| 252 |
+
"gamma",
|
| 253 |
+
"source_color",
|
| 254 |
+
"target_color"
|
| 255 |
+
],
|
| 256 |
+
"adapter_note": "raw gamma/color adapter supplied separately; log-lumens NPZ is experimental legacy only"
|
| 257 |
+
},
|
| 258 |
+
"model_inference": "not_run"
|
| 259 |
+
}
|
realcase/109/move_replace_mesh_v1/manifest.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"case_id": "rv_extra_case02_6374204",
|
| 3 |
+
"number": 109,
|
| 4 |
+
"revision": "move_replace_mesh_v1",
|
| 5 |
+
"operation": "move_replace: delete P and insert different asset at Q",
|
| 6 |
+
"source_sha256": "3d24718894d47fd6fa944219a97f1f18b34f5c5ce243b02da66fd1a5e0080a27",
|
| 7 |
+
"asset_number": 5,
|
| 8 |
+
"asset_sha256": "2d8c96cb5f041755536f68b8499af2fae40e07331e253d1e4e7b1aa4220847a8",
|
| 9 |
+
"frames": 49,
|
| 10 |
+
"resolution": [
|
| 11 |
+
1280,
|
| 12 |
+
704
|
| 13 |
+
],
|
| 14 |
+
"status": "experimental_keyframes_reviewed_not_quality_accepted",
|
| 15 |
+
"visual_review": {
|
| 16 |
+
"frames": [
|
| 17 |
+
0,
|
| 18 |
+
24,
|
| 19 |
+
48
|
| 20 |
+
],
|
| 21 |
+
"additional_border_frames_reviewed": true,
|
| 22 |
+
"result": "no remaining clipping, bbox-as-lamp-mask or obvious prompt-object error in reviewed final frames",
|
| 23 |
+
"limitations": "not a claim of frame-by-frame human acceptance, calibrated scale, resolved occlusion or physical support truth"
|
| 24 |
+
},
|
| 25 |
+
"versions": {
|
| 26 |
+
"small_4deg": {
|
| 27 |
+
"numeric_state": "pass",
|
| 28 |
+
"visual_state": "keyframe_reviewed_with_limitations",
|
| 29 |
+
"camera": {
|
| 30 |
+
"relative_angle_min": 0.0,
|
| 31 |
+
"relative_angle_max": 4.000040061865018,
|
| 32 |
+
"max_relative_perturbation_step_deg": 0.12492792204674467,
|
| 33 |
+
"displacement_min": 4.608277199953787e-17,
|
| 34 |
+
"displacement_max": 0.06376590139019306,
|
| 35 |
+
"A_B_identical": false
|
| 36 |
+
},
|
| 37 |
+
"joint_video_check": {
|
| 38 |
+
"frames_metadata": 49,
|
| 39 |
+
"frames_decoded": 49,
|
| 40 |
+
"width": 1280,
|
| 41 |
+
"height": 704,
|
| 42 |
+
"decoded_shapes": [
|
| 43 |
+
[
|
| 44 |
+
704,
|
| 45 |
+
1280,
|
| 46 |
+
3
|
| 47 |
+
]
|
| 48 |
+
],
|
| 49 |
+
"ok": true
|
| 50 |
+
},
|
| 51 |
+
"preview_video_check": {
|
| 52 |
+
"frames_metadata": 49,
|
| 53 |
+
"frames_decoded": 49,
|
| 54 |
+
"width": 1280,
|
| 55 |
+
"height": 704,
|
| 56 |
+
"decoded_shapes": [
|
| 57 |
+
[
|
| 58 |
+
704,
|
| 59 |
+
1280,
|
| 60 |
+
3
|
| 61 |
+
]
|
| 62 |
+
],
|
| 63 |
+
"ok": true
|
| 64 |
+
}
|
| 65 |
+
},
|
| 66 |
+
"orbit_10deg": {
|
| 67 |
+
"numeric_state": "pass",
|
| 68 |
+
"visual_state": "keyframe_reviewed_with_limitations",
|
| 69 |
+
"camera": {
|
| 70 |
+
"relative_angle_min": 0.0,
|
| 71 |
+
"relative_angle_max": 10.000016013305583,
|
| 72 |
+
"max_relative_perturbation_step_deg": 0.312319799923419,
|
| 73 |
+
"displacement_min": 4.608277199953787e-17,
|
| 74 |
+
"displacement_max": 0.15924483225656508,
|
| 75 |
+
"A_B_identical": false
|
| 76 |
+
},
|
| 77 |
+
"joint_video_check": {
|
| 78 |
+
"frames_metadata": 49,
|
| 79 |
+
"frames_decoded": 49,
|
| 80 |
+
"width": 1280,
|
| 81 |
+
"height": 704,
|
| 82 |
+
"decoded_shapes": [
|
| 83 |
+
[
|
| 84 |
+
704,
|
| 85 |
+
1280,
|
| 86 |
+
3
|
| 87 |
+
]
|
| 88 |
+
],
|
| 89 |
+
"ok": true
|
| 90 |
+
},
|
| 91 |
+
"preview_video_check": {
|
| 92 |
+
"frames_metadata": 49,
|
| 93 |
+
"frames_decoded": 49,
|
| 94 |
+
"width": 1280,
|
| 95 |
+
"height": 704,
|
| 96 |
+
"decoded_shapes": [
|
| 97 |
+
[
|
| 98 |
+
704,
|
| 99 |
+
1280,
|
| 100 |
+
3
|
| 101 |
+
]
|
| 102 |
+
],
|
| 103 |
+
"ok": true
|
| 104 |
+
}
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
"hf_target": "realcase/109/move_replace_mesh_v1",
|
| 108 |
+
"target_B_RGB": "not observed; video field is null in inference adapter",
|
| 109 |
+
"legacy_loader": "actual joint_frames and media readers executed; full legacy load_row not compatible because it asserts color/intensity support == target bbox, conflicting with required lamp silhouette"
|
| 110 |
+
}
|
realcase/109/move_replace_mesh_v1/media/joint_B_orbit_10deg.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c00fd591d18835721efb72b1d3e029b3d916d0bf6957868fd782713dff0359b1
|
| 3 |
+
size 40637044
|
realcase/109/move_replace_mesh_v1/media/joint_B_small_4deg.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1e70f0e49c4d9223e62200424603e604d488665a28413f8ee8fb24cf42a4000
|
| 3 |
+
size 39334119
|
realcase/109/move_replace_mesh_v1/media/relit_B_orbit_10deg_blue.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e981481c52e5468a5d1d7c6a184902a30c475c83c5e4c3a1a2f53cf278a96bd1
|
| 3 |
+
size 189878
|
realcase/109/move_replace_mesh_v1/media/relit_B_orbit_10deg_green.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:112922180cf810098a5e62da40bceda1da7ba373507335d51a9804511a2bade6
|
| 3 |
+
size 196925
|
realcase/109/move_replace_mesh_v1/media/relit_B_orbit_10deg_purple.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c65f07ba45378b4e0cf562d0014ac060883db31393342c27acb8f6e8199b61a8
|
| 3 |
+
size 195125
|
realcase/109/move_replace_mesh_v1/media/relit_B_orbit_10deg_warm.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0a19c0613867a95ed3983260cd1f653a7da1eb60057db16d00b2997693a9052
|
| 3 |
+
size 181355
|
realcase/109/move_replace_mesh_v1/media/relit_B_small_4deg_blue.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d863e63e153fb06cb8b9b74312f718a5c73e2ba35f355ea67130f1f9ed84dc2
|
| 3 |
+
size 191488
|
realcase/109/move_replace_mesh_v1/media/relit_B_small_4deg_green.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f1cc3c82f20f8471b3f70d076b72353bc3a448ae1fe1e051fb50d333947c934
|
| 3 |
+
size 198641
|
realcase/109/move_replace_mesh_v1/media/relit_B_small_4deg_purple.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22e147e1e0b64932f822a891298ac65517af6385d6b1967aa3a4ec3ff0f74b7a
|
| 3 |
+
size 196864
|
realcase/109/move_replace_mesh_v1/media/relit_B_small_4deg_warm.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:483205166288c9393affa6f916767c97d28efa681b20ea8cbc81e33d3c3ad2e9
|
| 3 |
+
size 182899
|
realcase/109/move_replace_mesh_v1/media/replacement_reference.png
ADDED
|
Git LFS Details
|
realcase/109/move_replace_mesh_v1/media/source_A.mkv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd95e6b29d66600246f49958e3c6b18370bdde1646f7886d0372b39471561cc2
|
| 3 |
+
size 16498896
|
realcase/109/move_replace_mesh_v1/placement_A_000024.png
ADDED
|
Git LFS Details
|
realcase/109/move_replace_mesh_v1/preview_orbit_10deg.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:041f9803b0c7e3ebe0f32ffacce8a8f53abb644e6c2bfdd075c0d145406f387d
|
| 3 |
+
size 880296
|
realcase/109/move_replace_mesh_v1/preview_small_4deg.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7e3da1bae1b079326edd753e4ff61533d801b54a4bf8cda4d9fd2415beea644
|
| 3 |
+
size 709775
|
realcase/109/move_replace_mesh_v1/replacement_asset.glb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d8c96cb5f041755536f68b8499af2fae40e07331e253d1e4e7b1aa4220847a8
|
| 3 |
+
size 1430860
|
realcase/109/move_replace_mesh_v1/sha256.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
realcase/109/move_replace_mesh_v1/support_inliers_000024.png
ADDED
|
Git LFS Details
|