augmentation
feature's utils.
Classes:
| Name | Description |
|---|---|
ImageFeatureAugmentation |
Feature augmentation class for images. |
ImageFeatureAugmentation
#
Feature augmentation class for images.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Compose | None
|
A feature augmentation function used to augment raw data. This is done before data preprocessing. |
None
|
|
Compose | None
|
A feature augmentation function used to augment data after it has been preprocessed. |
None
|
Methods:
| Name | Description |
|---|---|
__attrs_post_init__ |
Post init method, triggered after calling init method to check instance's validity. |
from_exposed |
ImageFeatureAugmentation from ExposedImageFeatureAugmentation. |
as_exposed |
ImageFeatureAugmentation as ExposedImageFeatureAugmentation. |
Attributes:
| Name | Type | Description |
|---|---|---|
augment_raw |
Compose | None
|
|
augment_preprocessed |
Compose | None
|
|
augment_raw: transforms.Compose | None = field(default=None)
#
augment_preprocessed: transforms.Compose | None = field(default=None)
#
__attrs_post_init__() -> None
#
Post init method, triggered after calling init method to check instance's validity.
Source code in src/xpdeep/dataset/feature/augmentation.py
from_exposed(exposed_image_feature_augmentation: ExposedImageFeatureAugmentation) -> ImageFeatureAugmentation
#
ImageFeatureAugmentation from ExposedImageFeatureAugmentation.
Source code in src/xpdeep/dataset/feature/augmentation.py
as_exposed() -> ExposedImageFeatureAugmentation
#
ImageFeatureAugmentation as ExposedImageFeatureAugmentation.