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.

fix(video2scene): keep a sky-masking failure from discarding a finished reconstruction

nirholasc90c1c24abed
diff --git a/workers/model-video2scene/main.py b/workers/model-video2scene/main.py
index 8e069f8b2..f7e8e3315 100644
--- a/workers/model-video2scene/main.py
+++ b/workers/model-video2scene/main.py
@@ -444,7 +444,12 @@ def _run(req: "InferRequest", dst_dir: str) -> dict:
conf = predictions.get("world_points_conf")
keep, sky_dropped = (None, 0)
if req.mask_sky:
- keep, sky_dropped = _sky_keep_mask(conf, images_cpu, dst_dir)
+ try:
+ keep, sky_dropped = _sky_keep_mask(conf, images_cpu, dst_dir)
+ except Exception: # noqa: BLE001 - a cosmetic filter must not lose the job
+ # The reconstruction itself already succeeded and cost minutes of GPU
+ # time; ship the cloud with the sky in it rather than fail the job.
+ log.exception("sky masking failed; returning the unmasked cloud")
pts, cols = fuse_point_cloud(
predictions["world_points"],