ApplyEach
Bases: BaseCompose
__init__ ¶
__init__(transforms: List[OnlyInstMapTransform], p: float = 1.0, as_list: bool = False, **kwargs) -> None
Apply each transform to the input non-sequentially.
Returns outputs for each transform.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
transforms
|
List[Any]
|
List of transforms to apply. |
required |
p
|
float, default=1.0
|
Probability of applying the transform. |
1.0
|
as_list
|
bool, default=False
|
Return the outputs as list with shapes (H, W, C). |
False
|