We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 468f55b commit a7e8b79Copy full SHA for a7e8b79
torchvision/tv_tensors/_bounding_boxes.py
@@ -40,7 +40,7 @@ class BoundingBoxFormat(Enum):
40
41
# TODO: Once torchscript supports Enums with staticmethod
42
# this can be put into BoundingBoxFormat as staticmethod
43
-def is_rotated_bounding_format(format: Union[BoundingBoxFormat, str]) -> bool:
+def is_rotated_bounding_format(format: BoundingBoxFormat | str) -> bool:
44
if isinstance(format, BoundingBoxFormat):
45
return (
46
format == BoundingBoxFormat.XYWHR
0 commit comments