File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
official/vision/modeling/layers Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -1020,18 +1020,11 @@ def __call__(
1020
1020
raw_boxes , anchor_boxes , weights = regression_weights
1021
1021
)
1022
1022
1023
- < << << << HEAD
1024
1023
# Box clipping.
1025
1024
if image_shape is not None :
1026
1025
decoded_boxes = box_ops .clip_boxes (
1027
1026
decoded_boxes , tf .expand_dims (image_shape , axis = 1 )
1028
1027
)
1029
- == == == =
1030
- # Box clipping
1031
- decoded_boxes = box_ops .clip_boxes (
1032
- decoded_boxes , tf .expand_dims (image_shape , axis = 1 )
1033
- )
1034
- > >> >> >> 8e179 c593 (Support output decoded boxes (before NMS ) even when NMS is applied .)
1035
1028
1036
1029
if bbox_per_class :
1037
1030
decoded_boxes = tf .reshape (
@@ -1266,14 +1259,10 @@ def _decode_multilevel_outputs(
1266
1259
boxes_i = box_ops .decode_boxes (raw_boxes_i , anchor_boxes_i )
1267
1260
1268
1261
# Box clipping.
1269
- < << << << HEAD
1270
1262
if image_shape is not None :
1271
1263
boxes_i = box_ops .clip_boxes (
1272
1264
boxes_i , tf .expand_dims (image_shape , axis = 1 )
1273
1265
)
1274
- == == == =
1275
- boxes_i = box_ops .clip_boxes (boxes_i , tf .expand_dims (image_shape , axis = 1 ))
1276
- > >> >> >> 8e179 c593 (Support output decoded boxes (before NMS ) even when NMS is applied .)
1277
1266
1278
1267
boxes .append (boxes_i )
1279
1268
scores .append (scores_i )
You can’t perform that action at this time.
0 commit comments