Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

perf(video2scene): keep the unprojected cloud in float32 instead of the unprojector's float64

nirholas6c94b1b3c376
diff --git a/workers/model-video2scene/main.py b/workers/model-video2scene/main.py
index ee9522d0a..7b16dc652 100644
--- a/workers/model-video2scene/main.py
+++ b/workers/model-video2scene/main.py
@@ -367,7 +367,10 @@ def _world_points_and_conf(predictions: dict):
points = unproject_depth_map_to_point_map(
predictions["depth"], extrinsic_w2c, predictions["intrinsic"]
)
- return points, predictions.get("depth_conf")
+ # The unprojector's world transform is float64, so its output is too. A cloud
+ # of 500 frames is 3.4 GB at that width and half of it at float32, which is
+ # the precision the PLY carries anyway.
+ return np.asarray(points, dtype=np.float32), predictions.get("depth_conf")
def _sky_keep_mask(conf, images, dst_dir: str) -> tuple[Optional[np.ndarray], int]: