diff --git a/supervision/detection/lmm.py b/supervision/detection/lmm.py index e39e434f..61b06ee1 100644 --- a/supervision/detection/lmm.py +++ b/supervision/detection/lmm.py @@ -174,7 +174,9 @@ def from_florence_2( match is not None ), f"Expected string to end in location tags, but got {result}" + w, h = resolution_wh xyxy = np.array([match.groups()], dtype=np.float32) + xyxy *= np.array([w, h, w, h]) / 1000 result_string = result[: match.start()] labels = np.array([result_string]) return xyxy, labels, None, None