ConvertBoundingBoxFormat
- class torchvision.transforms.v2.ConvertBoundingBoxFormat(format: Union[str, BoundingBoxFormat])[source]
Convert bounding box coordinates to the given
, eg from “CXCYWH” to “XYXY”.
Convert bounding box coordinates to the given , eg from “CXCYWH” to “XYXY”.
format (str or tv_tensors.BoundingBoxFormat) – output bounding box format.
Possible values are defined by BoundingBoxFormat and
string values match the enums, e.g. “XYXY” or “XYWH” etc.
Method to override for custom transforms.