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 ad72726 commit 2e44c75Copy full SHA for 2e44c75
maestro/trainer/models/florence_2/detection.py
@@ -106,10 +106,10 @@ def detections_to_suffix_formatter(
106
x_max /= width
107
y_min /= height
108
y_max /= height
109
- x_min_int = int(round(x_min * 1000))
110
- x_max_int = int(round(x_max * 1000))
111
- y_min_int = int(round(y_min * 1000))
112
- y_max_int = int(round(y_max * 1000))
+ x_min_int: int = round(x_min * 1000)
+ x_max_int: int = round(x_max * 1000)
+ y_min_int: int = round(y_min * 1000)
+ y_max_int: int = round(y_max * 1000)
113
box_text = f"{cls_name}<loc_{x_min_int}><loc_{y_min_int}><loc_{x_max_int}><loc_{y_max_int}>"
114
text_parts.append(box_text)
115
0 commit comments