bundle.gs3d.generators.base

Abstract base for synthetic Gaussian generators.

A generator is an Entity with a single async generate method that produces a GaussianCloudArrays. Generator parameters live directly on the class as Pydantic fields — no separate Config object — matching the bundle.recon3d.stages.base.Stage pattern where stage parameters are just fields on the stage.

Attributes

log

Classes

Generator

Base class for procedural Gaussian generators.

Module Contents

bundle.gs3d.generators.base.log
class bundle.gs3d.generators.base.Generator(/, **data: Any)[source]

Bases: bundle.core.entity.Entity

Base class for procedural Gaussian generators.

Subclasses add shape-specific fields and implement generate().

count

Number of Gaussians to emit.

sh_degree

Spherical harmonics degree (0..3).

seed

Random seed; None for non-deterministic output.

opacity

Logit-space opacity assigned to each generated Gaussian (logit ~2.0 ≈ alpha 0.88).

base_scale

Initial isotropic log-space scale (exp(-3) ≈ 0.05).

color

Linear-space RGB colour written into the SH DC term.

name: str = 'generator'
count: int = 10000
sh_degree: int = 3
seed: int | None = None
opacity: float = 2.0
base_scale: float = -3.0
color: tuple[float, float, float] = (1.0, 1.0, 1.0)
abstractmethod generate() → bundle.gs3d.ply.GaussianCloudArrays[source]
Async:

Produce a GaussianCloudArrays from this generator’s parameters.