Skip to content

Commit 7de35cf

Browse files
committed
Internal change
PiperOrigin-RevId: 515246811
1 parent 1dc525a commit 7de35cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

official/vision/serving/detection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,6 @@ def serve(self, images: tf.Tensor):
203203
if 'detection_masks' in detections.keys():
204204
final_outputs['detection_masks'] = detections['detection_masks']
205205

206-
final_outputs.update({'image_info': image_info})
206+
if self.params.task.model.detection_generator.nms_version != 'tflite':
207+
final_outputs.update({'image_info': image_info})
207208
return final_outputs

0 commit comments

Comments
 (0)