ConvertBoundingBoxFormat

class torchaug.transforms.ConvertBoundingBoxFormat(format)[source]

Convert bounding box coordinates to the given format, eg from “CXCYWH” to “XYXY”.

Parameters:

format (Union[str, BoundingBoxFormat]) – output bounding box format. Possible values are defined by BoundingBoxFormat and string values match the enums, e.g. “XYXY” or “XYWH” etc.