bundle.recon3d.pipeline

Sequential pipeline runner for the Recon3D reconstruction chain.

Attributes

log

Classes

Pipeline

Runs a list of stages sequentially, threading each output into the next input.

Module Contents

bundle.recon3d.pipeline.log
class bundle.recon3d.pipeline.Pipeline(/, **data: Any)[source]

Bases: bundle.core.entity.Entity

Runs a list of stages sequentially, threading each output into the next input.

After each stage completes, the pipeline writes a manifest.json into the workspace so that bundle recon3d status can report progress.

name: str = 'recon3d-pipeline'
workspace: bundle.recon3d.workspace.Workspace
stages: list[bundle.recon3d.stages.Stage] = []
seed_input: bundle.core.data.Data | None = None

Optional pre-built input for the first stage.

Set by factories like from_gaussians() that skip the usual SfM/image bootstrap. Pydantic validates the value at construction time, so callers don’t need to reach into private state.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

classmethod from_gaussians(gaussians_output: bundle.recon3d.stages.gaussians.base.GaussiansOutput, workspace: bundle.recon3d.workspace.Workspace, blender: bool = True, visualize: bool = False, blend_output: pathlib.Path | None = None, render: bool = False, engine: str = 'EEVEE') → Pipeline[source]

Create a pipeline that starts from an existing GaussiansOutput.

Skips SfM and training — useful for synthetic clouds produced by bundle.gs3d or for re-running downstream stages on an existing PLY.

Parameters:
  • gaussians_output – The reconstructed or synthesised PLY to process.

  • workspace – Workspace that provides output directory layout.

  • blender – Include the Blender import/render stage.

  • visualize – Not supported for synthetic input (requires SfM camera poses). Raises NotImplementedError if True.

  • blend_output – Override for the .blend destination. Defaults to workspace.root/blender/scene.blend.

  • render – Render the scene after importing the PLY.

  • engine – Render engine passed through to the Blender stage.

classmethod default(workspace: bundle.recon3d.workspace.Workspace, sfm_backend: bundle.recon3d.stages.sfm.base.SfmBackend = SfmBackend.COLMAP, renderer: str = '3dgut', export_usdz: bool = True, use_lambda: bool = False, lambda_instance_id: str | None = None, lambda_auto_terminate: bool = False, lambda_filesystem: str | None = None, visualize: bool = True, vis_backend: str = 'opensplat', vis_iters: int = 2000, blender: bool = False) → Pipeline[source]

Create the standard SfM -> Train -> [Visualize] -> [Blender] pipeline.

async run() → dict[str, bundle.core.data.Data][source]

Execute all stages in order, returning a map of stage_name -> output.