From 272d9ed5bfaf653be28b7e1e080cbe69923c23ff Mon Sep 17 00:00:00 2001 From: Ernest Lim Date: Thu, 16 Oct 2025 16:12:28 +0800 Subject: [PATCH] fix: Overlapmetric should check string using uppercase conversion --- supervision/detection/utils/iou_and_nms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervision/detection/utils/iou_and_nms.py b/supervision/detection/utils/iou_and_nms.py index 1a6f80bc5..1eccd34b1 100644 --- a/supervision/detection/utils/iou_and_nms.py +++ b/supervision/detection/utils/iou_and_nms.py @@ -72,7 +72,7 @@ def from_value(cls, value: OverlapMetric | str) -> OverlapMetric: if isinstance(value, cls): return value if isinstance(value, str): - value = value.lower() + value = value.upper() try: return cls(value) except ValueError: