Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Use common bbox format xywh (#1472)

twsl56f50fbd4926
diff --git a/kornia/augmentation/container/utils.py b/kornia/augmentation/container/utils.py
index deeeb0a94..a79420eda 100644
--- a/kornia/augmentation/container/utils.py
+++ b/kornia/augmentation/container/utils.py
@@ -313,7 +313,7 @@ class ApplyInverse:
return MaskApplyInverse
if DataKey.get(dcate) in [DataKey.BBOX, DataKey.BBOX_XYXY]:
return BBoxXYXYApplyInverse
- if DataKey.get(dcate) in [DataKey.BBOX_XYHW]:
+ if DataKey.get(dcate) in [DataKey.BBOX_XYWH]:
return BBoxXYWHApplyInverse
if DataKey.get(dcate) in [DataKey.KEYPOINTS]:
return KeypointsApplyInverse
diff --git a/kornia/constants.py b/kornia/constants.py
index 647f7070a..95ffefaa1 100644
--- a/kornia/constants.py
+++ b/kornia/constants.py
@@ -58,5 +58,5 @@ class DataKey(ConstantBase, Enum, metaclass=EnumMetaFlags):
MASK = 1
BBOX = 2
BBOX_XYXY = 3
- BBOX_XYHW = 4
+ BBOX_XYWH = 4
KEYPOINTS = 5