class
RandomCropNearBBox
extends
_NoParamsTransform[Empty]RandomCropNearBBox(max_part_shift: float = 0.3, p: float = 1.0)Crop a window around the first bounding box (Albumentations RandomCropNearBBox).
Parameters
max_part_shiftfloat= 0.3Max jitter of the crop window edges, as a fraction of the box size.
pfloat= 1.0No description.
Examples
>>> import lucid, lucid.utils.transforms as T
>>> tf = T.RandomCropNearBBox(p=1.0)
>>> tuple(tf(T.Image(lucid.rand(3, 32, 32))).data.shape)
(3, 32, 32)