Skip to content

Commit a380ae7

Browse files
committed
Fix conflict from cherry-pick.
1 parent f4315ee commit a380ae7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

official/vision/modeling/layers/detection_generator.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,18 +1020,11 @@ def __call__(
10201020
raw_boxes, anchor_boxes, weights=regression_weights
10211021
)
10221022

1023-
<<<<<<< HEAD
10241023
# Box clipping.
10251024
if image_shape is not None:
10261025
decoded_boxes = box_ops.clip_boxes(
10271026
decoded_boxes, tf.expand_dims(image_shape, axis=1)
10281027
)
1029-
=======
1030-
# Box clipping
1031-
decoded_boxes = box_ops.clip_boxes(
1032-
decoded_boxes, tf.expand_dims(image_shape, axis=1)
1033-
)
1034-
>>>>>>> 8e179c593 (Support output decoded boxes (before NMS) even when NMS is applied.)
10351028

10361029
if bbox_per_class:
10371030
decoded_boxes = tf.reshape(
@@ -1266,14 +1259,10 @@ def _decode_multilevel_outputs(
12661259
boxes_i = box_ops.decode_boxes(raw_boxes_i, anchor_boxes_i)
12671260

12681261
# Box clipping.
1269-
<<<<<<< HEAD
12701262
if image_shape is not None:
12711263
boxes_i = box_ops.clip_boxes(
12721264
boxes_i, tf.expand_dims(image_shape, axis=1)
12731265
)
1274-
=======
1275-
boxes_i = box_ops.clip_boxes(boxes_i, tf.expand_dims(image_shape, axis=1))
1276-
>>>>>>> 8e179c593 (Support output decoded boxes (before NMS) even when NMS is applied.)
12771266

12781267
boxes.append(boxes_i)
12791268
scores.append(scores_i)

0 commit comments

Comments
 (0)