dacapo.experiments.trainers.gp_augments.intensity_config
Classes
This class is an implementation of AugmentConfig that applies intensity augmentations. |
Module Contents
- class dacapo.experiments.trainers.gp_augments.intensity_config.IntensityAugmentConfig
This class is an implementation of AugmentConfig that applies intensity augmentations.
- scale
A range within which to choose a random scale factor.
- Type:
Tuple[float, float]
- shift
A range within which to choose a random additive shift.
- Type:
Tuple[float, float]
- clip
Set to False if modified values should not be clipped to [0, 1]
- Type:
bool
- node(raw_key, _gt_key=None, _mask_key=None)
Get a gp.IntensityAugment node.
- scale: Tuple[float, float]
- shift: Tuple[float, float]
- clip: bool
- node(raw_key: gunpowder.ArrayKey, _gt_key=None, _mask_key=None)
Get a gp.IntensityAugment node.
- Parameters:
raw_key (gp.ArrayKey) – Key for raw data.
_gt_key ([type], optional) – Specific key for ground truth data, not used in this implementation. Defaults to None.
_mask_key ([type], optional) – Specific key for mask data, not used in this implementation. Defaults to None.
- Returns:
Intensity augmentation node which can be incorporated in the pipeline.
- Return type:
gunpowder.IntensityAugment
- Raises:
NotImplementedError – This method is not implemented.
Examples
>>> node = intensity_augment_config.node(raw_key)