ConvertBoundingBoxFormatΒΆ
- class torchvision.transforms.v2.ConvertBoundingBoxFormat(format: Union[str, BoundingBoxFormat])[source]ΒΆ
Convert bounding box coordinates to the given
format
, eg from βCXCYWHβ to βXYXYβ.- Parameters:
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.
- transform(inpt: BoundingBoxes, params: dict[str, Any]) BoundingBoxes [source]ΒΆ
Method to override for custom transforms.