phenotypic.abc_.OperationRequirements#
- class phenotypic.abc_.OperationRequirements(grid_image: bool = False, rgb_input: bool = False, modules: tuple[str, ...] = (), extra: str | None = None, weights: tuple[WeightRequirement, ...] = ())[source]#
Bases:
objectEverything an operation needs from the run that executes it.
- Parameters:
- modules#
Importable module names the operation imports lazily; checked with
importlib.util.find_spec, never imported.
- extra#
The
pyprojectextra that providesmodules, named in the remedy;Nonewhen no extra does (e.g. a conda-only package).- Type:
str | None
- weights#
Model weights the operation loads.
Methods
__init__Attributes
- weights: tuple[WeightRequirement, ...] = ()#