class
Sequential
extends
_ContainerSequential(transforms: list[TransformLike], p: float = 1.0)Apply all children in order, gated by p (Albumentations Sequential).
The container's p controls whether the whole block runs at
all on a given call — when the gate fails, every child is
skipped and the input passes through unchanged. When the gate
passes, each child is invoked left-to-right with its own
probability gate honoured (unlike OneOf / SomeOf
which bypass the child gate).
Parameters
transformslist of TransformLikeChildren to chain — each receives the previous child's
output.
pfloat= 1.0Block-level probability — when below 1, the chain is a
no-op on
1 - p of calls.