bundle.recon3d.stages ===================== .. py:module:: bundle.recon3d.stages .. autoapi-nested-parse:: Recon3D pipeline stages. Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/bundle/recon3d/stages/base/index /autoapi/bundle/recon3d/stages/blender/index /autoapi/bundle/recon3d/stages/export/index /autoapi/bundle/recon3d/stages/gaussians/index /autoapi/bundle/recon3d/stages/remote/index /autoapi/bundle/recon3d/stages/sfm/index /autoapi/bundle/recon3d/stages/visualization/index Classes ------- .. autoapisummary:: bundle.recon3d.stages.Stage bundle.recon3d.stages.BlenderStage bundle.recon3d.stages.ExportStage bundle.recon3d.stages.GaussiansStage bundle.recon3d.stages.SfmStage bundle.recon3d.stages.VisualizationStage Functions --------- .. autoapisummary:: bundle.recon3d.stages.create_blender_stage bundle.recon3d.stages.create_gaussians_stage bundle.recon3d.stages.create_sfm_stage bundle.recon3d.stages.create_visualization_stage Package Contents ---------------- .. py:class:: Stage(/, **data: Any) Bases: :py:obj:`bundle.core.entity.Entity` Base class for a pipeline stage. Each stage wraps an external tool (COLMAP, 3DGRUT, etc.) with a thin Python orchestration layer: construct CLI args, run via subprocess, and validate the output contract. .. py:method:: run(input: bundle.core.data.Data) -> bundle.core.data.Data :abstractmethod: :async: Execute the stage and return the output contract. .. py:method:: check_deps() -> bool :abstractmethod: :async: Verify that external tools required by this stage are available. .. py:class:: BlenderStage(/, **data: Any) Bases: :py:obj:`bundle.recon3d.stages.base.Stage` Imports a 3DGS PLY into Blender headless and saves a ``.blend`` file. Subclasses override ``script_name`` and ``_build_params`` to drive a different Blender script without touching the run machinery. .. py:attribute:: name :type: str :value: 'blender' .. py:attribute:: script_name :type: str :value: 'ply_to_blend' .. py:method:: check_deps() -> bool :async: Return True if a usable Blender installation is discoverable. .. py:method:: run(input: bundle.core.data.Data) -> bundle.core.data.Data :async: Execute the stage and return the output contract. .. py:function:: create_blender_stage() -> BlenderStage .. py:class:: ExportStage(/, **data: Any) Bases: :py:obj:`bundle.recon3d.stages.base.Stage` Base class for scene export backends (USDZ, glTF, etc.). .. py:attribute:: name :type: str :value: 'export' .. py:attribute:: format :type: str :value: 'usdz' .. py:method:: run(input: bundle.core.data.Data) -> bundle.core.data.Data :async: Execute the stage and return the output contract. .. py:method:: check_deps() -> bool :abstractmethod: :async: Verify that external tools required by this stage are available. .. py:class:: GaussiansStage(/, **data: Any) Bases: :py:obj:`bundle.recon3d.stages.base.Stage` Base class for Gaussian splatting renderers. Subclasses implement ``_run`` with renderer-specific training logic. Common validation and output discovery lives here. .. py:attribute:: name :type: str :value: 'gaussians' .. py:attribute:: renderer :type: str :value: '3dgut' .. py:attribute:: export_usdz :type: bool :value: True .. py:attribute:: config_name :type: str :value: 'auto' .. py:attribute:: experiment_name :type: str :value: 'default' .. py:method:: run(input: bundle.core.data.Data) -> bundle.core.data.Data :async: Execute the stage and return the output contract. .. py:method:: check_deps() -> bool :abstractmethod: :async: Verify that external tools required by this stage are available. .. py:function:: create_gaussians_stage(renderer: str = '3dgut', **kwargs) -> base.GaussiansStage Create a CUDA Gaussians training stage for the given renderer. .. py:class:: SfmStage(/, **data: Any) Bases: :py:obj:`bundle.recon3d.stages.base.Stage` Base class for SfM backends. Subclasses implement ``_run`` with the backend-specific pipeline. Common validation and setup lives here. .. py:attribute:: name :type: str :value: 'sfm' .. py:attribute:: backend :type: SfmBackend .. py:attribute:: use_gpu :type: bool .. py:attribute:: matcher :type: str :value: 'exhaustive' .. py:attribute:: undistort :type: bool :value: True .. py:method:: run(input: bundle.core.data.Data) -> bundle.core.data.Data :async: Execute the stage and return the output contract. .. py:method:: check_deps() -> bool :abstractmethod: :async: Verify that external tools required by this stage are available. .. py:function:: create_sfm_stage(backend: base.SfmBackend = SfmBackend.COLMAP, **kwargs) -> base.SfmStage Create an SfM stage for the given backend. .. py:class:: VisualizationStage(/, **data: Any) Bases: :py:obj:`bundle.recon3d.stages.base.Stage` Base class for cross-platform visualization backends. Visualization stages run on any platform (Metal, CPU, CUDA) and produce a quick-preview PLY + renders from an existing training workspace. .. py:attribute:: name :type: str :value: 'visualization' .. py:attribute:: backend :type: str :value: 'opensplat' .. py:attribute:: experiment_name :type: str :value: 'preview' .. py:method:: run(input: bundle.core.data.Data) -> bundle.core.data.Data :async: Execute the stage and return the output contract. .. py:method:: check_deps() -> bool :abstractmethod: :async: Verify that external tools required by this stage are available. .. py:function:: create_visualization_stage(backend: str = 'opensplat', **kwargs) -> base.VisualizationStage Create a VisualizationStage for the given backend.