Skip to main content

Module config

Module config 

Source
Expand description

TOML configuration file loading and validation.

Loads the oxigaf.toml project configuration and converts it to the internal TrainingConfig and RasterConfig types used by the trainer and rasterizer subsystems.

Structs§

DensityControlSection
[training.density_control] — adaptive density control parameters.
DeviceSection
[device] section — GPU backend configuration.
InitSection
[training.init] — Gaussian initialisation parameters.
LossSection
[training.loss] — loss function weights.
ModelSection
[model] section — paths to pretrained model files.
OptimizerSection
[training.optimizer] — per-parameter-group learning rates.
OutputSection
[output] section — checkpoint, logging, and export settings.
ProjectConfig
Top-level project configuration loaded from oxigaf.toml.
TrainingSection
[training] section — training hyper-parameters with sub-sections.

Functions§

expand_tilde
Expand a leading ~ in a path to the user’s home directory.
generate_default_config
Generate a default TOML configuration string that can be written to a file.
load_config
Load and validate a ProjectConfig from a TOML file.
load_hierarchical_config
Load config with hierarchical priority: