From fa59c790a9cff2a52a49e5f0594adb33edef7a0b Mon Sep 17 00:00:00 2001 From: Arsenii Shulikov Date: Wed, 27 Jul 2022 18:47:16 -0500 Subject: [PATCH] fix: :ambulance: added bracket --- .../calculators/beauty/smooth_face1_calculator.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mediapipe/calculators/beauty/smooth_face1_calculator.cc b/mediapipe/calculators/beauty/smooth_face1_calculator.cc index 1d15fa00e..fe54ba2c5 100644 --- a/mediapipe/calculators/beauty/smooth_face1_calculator.cc +++ b/mediapipe/calculators/beauty/smooth_face1_calculator.cc @@ -193,13 +193,14 @@ namespace mediapipe const std::vector> &mask_vec = cc->Inputs().Tag(kMaskTag).Get>>(); - const std::vector> &face_boxes = - cc->Inputs().Tag(kFaceBoxTag).Get>>(); + const std::vector> &face_boxes = + cc->Inputs().Tag(kFaceBoxTag).Get>>(); - if (mask_vec.size() > 0 && face_boxes.size() > 0) - { - for (int i = 0; i < mask_vec.size(); i++) - MP_RETURN_IF_ERROR(SmoothFace(cc, mask_vec[i], face_boxes[i])); + if (mask_vec.size() > 0 && face_boxes.size() > 0) + { + for (int i = 0; i < mask_vec.size(); i++) + MP_RETURN_IF_ERROR(SmoothFace(cc, mask_vec[i], face_boxes[i])); + } } // Copy the rendered image to output. uchar *image_mat_ptr = image_mat->data;