bundle.recon3d.pipeline ======================= .. py:module:: bundle.recon3d.pipeline .. autoapi-nested-parse:: Sequential pipeline runner for the Recon3D reconstruction chain. Attributes ---------- .. autoapisummary:: bundle.recon3d.pipeline.log Classes ------- .. autoapisummary:: bundle.recon3d.pipeline.Pipeline Module Contents --------------- .. py:data:: log .. py:class:: Pipeline(/, **data: Any) Bases: :py:obj:`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. .. py:attribute:: name :type: str :value: 'recon3d-pipeline' .. py:attribute:: workspace :type: bundle.recon3d.workspace.Workspace .. py:attribute:: stages :type: list[bundle.recon3d.stages.Stage] :value: [] .. py:attribute:: seed_input :type: bundle.core.data.Data | None :value: None Optional pre-built input for the first stage. Set by factories like :meth:`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. .. py:attribute:: model_config Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict]. .. py:method:: 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 :classmethod: 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. :param gaussians_output: The reconstructed or synthesised PLY to process. :param workspace: Workspace that provides output directory layout. :param blender: Include the Blender import/render stage. :param visualize: Not supported for synthetic input (requires SfM camera poses). Raises ``NotImplementedError`` if ``True``. :param blend_output: Override for the ``.blend`` destination. Defaults to ``workspace.root/blender/scene.blend``. :param render: Render the scene after importing the PLY. :param engine: Render engine passed through to the Blender stage. .. py:method:: 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 :classmethod: Create the standard SfM -> Train -> [Visualize] -> [Blender] pipeline. .. py:method:: run() -> dict[str, bundle.core.data.Data] :async: Execute all stages in order, returning a map of stage_name -> output.