diff --git a/mediapipe/tasks/cc/vision/image_segmenter/image_segmenter_graph.cc b/mediapipe/tasks/cc/vision/image_segmenter/image_segmenter_graph.cc index d3e522d92..31fed6d8d 100644 --- a/mediapipe/tasks/cc/vision/image_segmenter/image_segmenter_graph.cc +++ b/mediapipe/tasks/cc/vision/image_segmenter/image_segmenter_graph.cc @@ -287,10 +287,9 @@ class ImageSegmenterGraph : public core::ModelTaskGraph { tensor_to_images[Output::Multiple(kSegmentationTag)][i])); } } - return {{ - .segmented_masks = segmented_masks, - .image = preprocessing[Output(kImageTag)], - }}; + return ImageSegmenterOutputs{ + /*segmented_masks=*/segmented_masks, + /*image=*/preprocessing[Output(kImageTag)]}; } };