Skip to content

Commit 46bf065

Browse files
arashwanfyangf
authored andcommitted
Internal change
PiperOrigin-RevId: 382462213
1 parent 32bf58a commit 46bf065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

official/vision/beta/serving/detection.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
import tensorflow as tf
1919

20-
from cloud_tpu.models.detection.utils import box_utils
2120
from official.vision.beta import configs
2221
from official.vision.beta.modeling import factory
2322
from official.vision.beta.ops import anchor
23+
from official.vision.beta.ops import box_ops
2424
from official.vision.beta.ops import preprocess_ops
2525
from official.vision.beta.serving import export_base
2626

@@ -140,7 +140,7 @@ def serve(self, images: tf.Tensor):
140140
detection_boxes = (
141141
detections['detection_boxes'] /
142142
tf.tile(image_info[:, 2:3, :], [1, 1, 2]))
143-
detections['detection_boxes'] = box_utils.normalize_boxes(
143+
detections['detection_boxes'] = box_ops.normalize_boxes(
144144
detection_boxes, image_info[:, 0:1, :])
145145

146146
# Cast num_detections and detection_classes to float. This allows the

0 commit comments

Comments
 (0)