Skip to content

Statistics

Source

Compute and resolve normalization statistics from patch data.

resolve_normalization_config(norm_config, patch_constructor)

Resolve a normalization config by computing any missing statistics.

If statistics are already provided in the config, they are preserved. If statistics are missing (None), they are computed from the data.

Parameters:

  • norm_config (NormalizationConfig) –

    The normalization configuration (may have missing statistics).

  • patch_constructor (PatchConstructor) –

    Constructor for paired input and target patches.

Returns:

  • NormalizationConfig

    A resolved configuration with all statistics populated.