adac.json_to_flamo#

adac.json_to_flamo(config: dict[str, Any], *, nfft: int = 65536, alias_decay_db: float = 0.0, device: str = 'cpu') Any[source]#

reconstruct a flamo model from a json config dict.

the config dict is the output of flamo_to_json(). the returned model has the same topology and parameter values as the original.

constructor arguments for each module are read from the optional “flamo” metadata key. when absent, sensible defaults are inferred from parameter shapes and channel counts.

Parameters:
  • config (dict) – json config dict as produced by flamo_to_json().

  • nfft (int) – default fft size for modules without flamo metadata.

  • alias_decay_db (float) – default alias decay for modules without flamo metadata.

  • device (str) – torch device string (“cpu” or “cuda”).

Returns:

model – reconstructed Shell, Series, Parallel, Recursion, or leaf module.

Return type:

flamo module