Shortcuts

ClampBoundingBoxes

class torchvision.transforms.v2.ClampBoundingBoxes[source]

Clamp bounding boxes to their corresponding image dimensions.

The clamping is done according to the bounding boxes’ canvas_size meta-data.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources