IoUEncode
- class hybrid_learning.datasets.transforms.image_transforms.IoUEncode(kernel_size, *, proto_shape=None, smooth=None, **thresh_args)[source]
Bases:
ConvOpWrapperIoU encode a single mask. This is a wrapper around
BatchIoUEncode2D.Public Data Attributes:
Inherited from : py: class:ConvOpWrapper
proto_shapeWrap the
proto_shape.kernel_sizeWrap the
kernel_size.settingsSettings; essentially merged from wrapped encoder and super.
Inherited from : py: class:WithThresh
settingsSettings; essentially merged from wrapped encoder and super.
Inherited from : py: class:BatchWiseImageTransform
settingsSettings; essentially merged from wrapped encoder and super.
Inherited from : py: class:Transform
IDENTITY_CLASSThe identity class or classes for composition / addition.
settingsSettings; essentially merged from wrapped encoder and super.
Public Methods:
Inherited from : py: class:WithThresh
apply_to_batch(masks)Forward method in which to apply the trafo and thresholding.
Inherited from : py: class:BatchWiseImageTransform
apply_to(mask)Apply trafo to the mask (either considered as batch of mask or single mask).
apply_to_batch(masks)Forward method in which to apply the trafo and thresholding.
Inherited from : py: class:ImageTransform
apply_to(mask)Apply trafo to the mask (either considered as batch of mask or single mask).
Inherited from : py: class:Transform
apply_to(mask)Apply trafo to the mask (either considered as batch of mask or single mask).
Special Methods:
__init__(kernel_size, *[, proto_shape, smooth])Init.
Inherited from : py: class:ConvOpWrapper
__init__(kernel_size, *[, proto_shape, smooth])Init.
Inherited from : py: class:WithThresh
__init__(kernel_size, *[, proto_shape, smooth])Init.
Inherited from : py: class:BatchWiseImageTransform
__init__(kernel_size, *[, proto_shape, smooth])Init.
Inherited from : py: class:ImageTransform
__call__(img)Application of transformation.
Inherited from : py: class:Transform
__repr__()Return repr(self).
__eq__(other)Return self==value.
__copy__()Return a shallow copy of self using settings.
__add__(other)Return a flat composition of
selfwithother.__radd__(other)Return a flat composition of
otherandself.__call__(img)Application of transformation.
- post_thresholder: Optional[Binarize]
Binarizing transformation applied to targets after IoU encoding if not
None.
- pre_thresholder: Optional[Binarize]
Binarizing transformation applied to targets before IoU encoding if not
None.
- trafo: BatchConvOp
Modifier (en- or decoder) module that is used for modifications.