Get Module
Factory functions for lightning modules.
create_module(algorithm_config)
Initialize the correct Lightning module from an algorithm config.
Parameters:
-
algorithm_config(UNetBasedAlgorithm) –The pydantic model with algorithm specific parameters.
Returns:
-
CAREamicsModule–A lightning module for running one of the algorithms supported by CAREamics.
Raises:
-
NotImplementedError–If the chosen algorithm is not yet supported.
get_module_cls(algorithm)
Get the lightning module class for the specified algorithm.
Parameters:
-
algorithm(SupportedAlgorithm) –One of the algorithms supported by CAREamics, e.g.
"n2v".
Returns:
-
CAREamicsModuleCls–A Lightning module class for running the specified
algorithm.
Raises:
-
NotImplementedError–If the chosen algorithm is not get supported.