bundle.recon3d.stages

Recon3D pipeline stages.

Submodules

Classes

Stage

Base class for a pipeline stage.

BlenderStage

Imports a 3DGS PLY into Blender headless and saves a .blend file.

ExportStage

Base class for scene export backends (USDZ, glTF, etc.).

GaussiansStage

Base class for Gaussian splatting renderers.

SfmStage

Base class for SfM backends.

VisualizationStage

Base class for cross-platform visualization backends.

Functions

create_blender_stage() → BlenderStage

create_gaussians_stage([renderer]) → base.GaussiansStage

Create a CUDA Gaussians training stage for the given renderer.

create_sfm_stage([backend]) → base.SfmStage

Create an SfM stage for the given backend.

create_visualization_stage([backend]) → base.VisualizationStage

Create a VisualizationStage for the given backend.

Package Contents

class bundle.recon3d.stages.Stage(/, **data: Any)[source]

Bases: 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.

abstractmethod run(input: bundle.core.data.Data) → bundle.core.data.Data[source]
Async:

Execute the stage and return the output contract.

abstractmethod check_deps() → bool[source]
Async:

Verify that external tools required by this stage are available.

class bundle.recon3d.stages.BlenderStage(/, **data: Any)[source]

Bases: 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.

name: str = 'blender'
script_name: str = 'ply_to_blend'
async check_deps() → bool[source]

Return True if a usable Blender installation is discoverable.

async run(input: bundle.core.data.Data) → bundle.core.data.Data[source]

Execute the stage and return the output contract.

bundle.recon3d.stages.create_blender_stage() → BlenderStage[source]
class bundle.recon3d.stages.ExportStage(/, **data: Any)[source]

Bases: bundle.recon3d.stages.base.Stage

Base class for scene export backends (USDZ, glTF, etc.).

name: str = 'export'
format: str = 'usdz'
async run(input: bundle.core.data.Data) → bundle.core.data.Data[source]

Execute the stage and return the output contract.

abstractmethod check_deps() → bool[source]
Async:

Verify that external tools required by this stage are available.

class bundle.recon3d.stages.GaussiansStage(/, **data: Any)[source]

Bases: 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.

name: str = 'gaussians'
renderer: str = '3dgut'
export_usdz: bool = True
config_name: str = 'auto'
experiment_name: str = 'default'
async run(input: bundle.core.data.Data) → bundle.core.data.Data[source]

Execute the stage and return the output contract.

abstractmethod check_deps() → bool[source]
Async:

Verify that external tools required by this stage are available.

bundle.recon3d.stages.create_gaussians_stage(renderer: str = '3dgut', **kwargs) → base.GaussiansStage[source]

Create a CUDA Gaussians training stage for the given renderer.

class bundle.recon3d.stages.SfmStage(/, **data: Any)[source]

Bases: bundle.recon3d.stages.base.Stage

Base class for SfM backends.

Subclasses implement _run with the backend-specific pipeline. Common validation and setup lives here.

name: str = 'sfm'
backend: SfmBackend
use_gpu: bool
matcher: str = 'exhaustive'
undistort: bool = True
async run(input: bundle.core.data.Data) → bundle.core.data.Data[source]

Execute the stage and return the output contract.

abstractmethod check_deps() → bool[source]
Async:

Verify that external tools required by this stage are available.

bundle.recon3d.stages.create_sfm_stage(backend: base.SfmBackend = SfmBackend.COLMAP, **kwargs) → base.SfmStage[source]

Create an SfM stage for the given backend.

class bundle.recon3d.stages.VisualizationStage(/, **data: Any)[source]

Bases: 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.

name: str = 'visualization'
backend: str = 'opensplat'
experiment_name: str = 'preview'
async run(input: bundle.core.data.Data) → bundle.core.data.Data[source]

Execute the stage and return the output contract.

abstractmethod check_deps() → bool[source]
Async:

Verify that external tools required by this stage are available.

bundle.recon3d.stages.create_visualization_stage(backend: str = 'opensplat', **kwargs) → base.VisualizationStage[source]

Create a VisualizationStage for the given backend.