rua
AutoContrast
¶
Bases: AutoContrastAug
Adjust image contrast automatically.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Placeholder argument to conform to RUA. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
Brightness
¶
Bases: BrightnessAug
Randomly change the brightness of an image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Factor to set the range for brightness. Must be in the range [0, 30]. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
Color
¶
Bases: ColorAug
Randomly change the color balance of an image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Factor to set the range for changing color balance. Must be in the range [0, 30]. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
Contrast
¶
Bases: ContrastAug
Randomly change the contrast of an image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Factor to set the range for contrast. Must be in the range [0, 30]. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
Equalize
¶
Bases: NumpyOp
Equalize the image histogram.
This is a wrapper for functionality provided by the PIL library: https://github.com/python-pillow/Pillow/tree/master/src/PIL.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Placeholder argument to conform to RUA. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
Identity
¶
Bases: NumpyOp
Pass the input as-is.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Placeholder argument to conform to RUA. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
Posterize
¶
Bases: PosterizeAug
Reduce the number of bits for the image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Factor to set the range for number of bits. Must be in the range [0, 30]. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
RUA
¶
Bases: NumpyOp
Apply RUA augmentation strategy.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
level |
Union[int, float]
|
Factor to set the range for magnitude of augmentation. Must be in the range [0, 30]. |
18
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
Rotate
¶
Bases: NumpyOp
Rotate the input by an angle selected randomly.
This is a wrapper for functionality provided by the PIL library: https://github.com/python-pillow/Pillow/tree/master/src/PIL.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Factor to set the range for rotation. Must be in the range [0, 30]. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
Sharpness
¶
Bases: SharpnessAug
Randomly change the sharpness of an image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Factor to set the range for sharpness. Must be in the range [0, 30]. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
ShearX
¶
Bases: ShearXAug
Randomly shear the image along the X axis.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Factor to set the range for shear. Must be in the range [0, 30]. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
ShearY
¶
Bases: ShearYAug
Randomly shear the image along the Y axis.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Factor to set the range for shear. Must be in the range [0, 30]. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
Solarize
¶
Bases: NumpyOp
Invert all pixel values above a threshold.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Factor to set the range for the threshold. Must be in the range [0, 30]. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
TranslateX
¶
Bases: TranslateXAug
Randomly shift the image along the X axis.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Factor to set the range for shift. Must be in the range [0, 30]. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8
Source code in fastestimator\fastestimator\op\numpyop\univariate\rua.py
TranslateY
¶
Bases: TranslateYAug
Randomly shift the image along the Y axis.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level |
Union[int, float]
|
Factor to set the range for shift. Must be in the range [0, 30]. |
required |
inputs |
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs |
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
Image types
uint8