From 80dd764605d3ffb48edc30d70fe127a08394043e Mon Sep 17 00:00:00 2001 From: kinaryml Date: Wed, 15 Mar 2023 10:52:16 -0700 Subject: [PATCH] Removed dummy packet creation and preserved face_geometry protobuf import --- mediapipe/tasks/python/vision/face_landmarker.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mediapipe/tasks/python/vision/face_landmarker.py b/mediapipe/tasks/python/vision/face_landmarker.py index a053d936a..6862818ce 100644 --- a/mediapipe/tasks/python/vision/face_landmarker.py +++ b/mediapipe/tasks/python/vision/face_landmarker.py @@ -25,7 +25,7 @@ from mediapipe.python import packet_getter from mediapipe.python._framework_bindings import image as image_module from mediapipe.python._framework_bindings import packet as packet_module from mediapipe.tasks.cc.vision.face_landmarker.proto import face_landmarker_graph_options_pb2 -# TODO: Remove later. +# TODO: Remove this later. from mediapipe.tasks.cc.vision.face_geometry.proto import face_geometry_pb2 from mediapipe.tasks.python.components.containers import category as category_module from mediapipe.tasks.python.components.containers import landmark as landmark_module @@ -162,12 +162,6 @@ def _build_landmarker_result( category_name=face_blendshapes.label)) face_blendshapes_results.append(face_blendshapes_categories) - # Creates a dummy FaceGeometry packet to initialize the symbol database. - # TODO: Remove later. - face_geometry_in = face_geometry_pb2.FaceGeometry() - p = packet_creator.create_proto(face_geometry_in).at(100) - face_geometry_out = packet_getter.get_proto(p) - facial_transformation_matrixes_results = [] if _FACE_GEOMETRY_STREAM_NAME in output_packets: facial_transformation_matrixes_proto_list = packet_getter.get_proto_list(