You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is strongly recommended to pull this fix if you're on one of the recent commits.
A recent commit made a subtle adjustment to how border pixels of bounding boxes are treated by default. This change had an unexpected negative impact on the training performance. This has now been fixed and the training performance is back to normal.
ifinclude_border_pixels: # Whether to include or exclude the border pixels of the boxes.
191
+
ifborder_pixels=='half':
192
+
d=0
193
+
elifborder_pixels=='include':
178
194
d=1# If border pixels are supposed to belong to the bounding boxes, we have to add one pixel to any difference `xmax - xmin` or `ymax - ymin`.
179
-
else:
195
+
elifborder_pixels=='exclude':
180
196
d=-1# If border pixels are not supposed to belong to the bounding boxes, we have to subtract one pixel from any difference `xmax - xmin` or `ymax - ymin`.
The same as 'intersection_area()' but for internal use, i.e. without all the safety checks.
214
230
'''
@@ -228,9 +244,11 @@ def intersection_area_(boxes1, boxes2, coords='corners', mode='outer_product', i
228
244
ymin=2
229
245
ymax=3
230
246
231
-
ifinclude_border_pixels: # Whether to include or exclude the border pixels of the boxes.
247
+
ifborder_pixels=='half':
248
+
d=0
249
+
elifborder_pixels=='include':
232
250
d=1# If border pixels are supposed to belong to the bounding boxes, we have to add one pixel to any difference `xmax - xmin` or `ymax - ymin`.
233
-
else:
251
+
elifborder_pixels=='exclude':
234
252
d=-1# If border pixels are not supposed to belong to the bounding boxes, we have to subtract one pixel from any difference `xmax - xmin` or `ymax - ymin`.
235
253
236
254
# Compute the intersection areas.
@@ -263,7 +281,7 @@ def intersection_area_(boxes1, boxes2, coords='corners', mode='outer_product', i
ifinclude_border_pixels: # Whether to include or exclude the border pixels of the boxes.
365
+
ifborder_pixels=='half':
366
+
d=0
367
+
elifborder_pixels=='include':
346
368
d=1# If border pixels are supposed to belong to the bounding boxes, we have to add one pixel to any difference `xmax - xmin` or `ymax - ymin`.
347
-
else:
369
+
elifborder_pixels=='exclude':
348
370
d=-1# If border pixels are not supposed to belong to the bounding boxes, we have to subtract one pixel from any difference `xmax - xmin` or `ymax - ymin`.
ifself.include_border_pixels: # Whether to include or exclude the border pixels of the boxes.
205
+
ifself.border_pixels=='half':
206
+
d=0
207
+
elifself.border_pixels=='include':
204
208
d=1# If border pixels are supposed to belong to the bounding boxes, we have to add one pixel to any difference `xmax - xmin` or `ymax - ymin`.
205
-
else:
209
+
elifself.border_pixels=='exclude':
206
210
d=-1# If border pixels are not supposed to belong to the bounding boxes, we have to subtract one pixel from any difference `xmax - xmin` or `ymax - ymin`.
0 commit comments