ClampBoundingBoxes
- class torchvision.transforms.v2.ClampBoundingBoxes(clamping_mode: Optional[str] = 'auto')[source]
Clamp bounding boxes to their corresponding image dimensions.
- Parameters:
clamping_mode – Default is “auto” which relies on the input box’ attribute. Read more in for more details on how to use this transform.