dacapo.experiments.trainers.gp_augments.elastic_config

Module Contents

Classes

ElasticAugmentConfig

A class that holds the configuration details for the elastic augmentations.

class dacapo.experiments.trainers.gp_augments.elastic_config.ElasticAugmentConfig

A class that holds the configuration details for the elastic augmentations.

control_point_spacing

Distance(in voxels per dimension) between control points for the elastic deformation.

Type:

List[int]

control_point_displacement_sigma

Standard deviation of control point displacement distribution, in world coordinates.

Type:

List[float]

rotation_interval

An interval to randomly sample rotation angles from (0,2PI).

Type:

Tuple[float, float]

subsample

Downsample factor to perform the elastic augmentation on a grid. Default is 1.

Type:

int

uniform_3d_rotation

Should 3D rotations be performed uniformly. The ‘rotation_interval’ will be ignored. Default is False.

Type:

bool

control_point_spacing: List[int]
control_point_displacement_sigma: List[float]
rotation_interval: Tuple[float, float]
subsample: int
uniform_3d_rotation: bool
node(_raw_key=None, _gt_key=None, _mask_key=None)

Returns the object of ElasticAugment with the given configuration details.

Parameters:
  • _raw_key – Unused variable, kept for future use.

  • _gt_key – Unused variable, kept for future use.

  • _mask_key – Unused variable, kept for future use.

Returns:

A ElasticAugment object configured with control_point_spacing,

control_point_displacement_sigma, rotation_interval, subsample and uniform_3d_rotation.

Return type:

ElasticAugment