From 743118a04ac84e689748bc9f303f5503fb2c1019 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Thu, 21 Sep 2023 21:22:26 -0700 Subject: [PATCH] Fixes multiple typos in the tasks internal files. PiperOrigin-RevId: 567506050 --- mediapipe/tasks/ios/test/vision/face_landmarker/utils/BUILD | 4 ++-- .../tasks/ios/vision/face_stylizer/sources/MPPFaceStylizer.h | 4 ++-- .../java/com/google/mediapipe/tasks/core/TaskOptions.java | 2 +- .../tasks/python/metadata/metadata_writers/metadata_writer.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mediapipe/tasks/ios/test/vision/face_landmarker/utils/BUILD b/mediapipe/tasks/ios/test/vision/face_landmarker/utils/BUILD index 74f2bd11a..09b215ec5 100644 --- a/mediapipe/tasks/ios/test/vision/face_landmarker/utils/BUILD +++ b/mediapipe/tasks/ios/test/vision/face_landmarker/utils/BUILD @@ -25,7 +25,7 @@ TFL_DISABLED_SANITIZER_TAGS = [ ] objc_library( - name = "MPPFaceLandmarkeResultHelpersTestLibary", + name = "MPPFaceLandmarkeResultHelpersTestLibrary", testonly = 1, srcs = ["sources/MPPFaceLandmarkerResult+HelpersTests.mm"], copts = [ @@ -50,6 +50,6 @@ ios_unit_test( runner = tflite_ios_lab_runner("IOS_LATEST"), tags = TFL_DEFAULT_TAGS + TFL_DISABLED_SANITIZER_TAGS, deps = [ - ":MPPFaceLandmarkeResultHelpersTestLibary", + ":MPPFaceLandmarkeResultHelpersTestLibrary", ], ) diff --git a/mediapipe/tasks/ios/vision/face_stylizer/sources/MPPFaceStylizer.h b/mediapipe/tasks/ios/vision/face_stylizer/sources/MPPFaceStylizer.h index f4c17ca85..d5e9b84a5 100644 --- a/mediapipe/tasks/ios/vision/face_stylizer/sources/MPPFaceStylizer.h +++ b/mediapipe/tasks/ios/vision/face_stylizer/sources/MPPFaceStylizer.h @@ -68,7 +68,7 @@ NS_SWIFT_NAME(FaceStylizer) * @return A `FaceStylizerResult` that contains the stylized image of the most visible face. The * returned image is copied. The stylized output image size is the same as the model output * size. The `stylizedImage` of the `FaceStylizerResult` is `nil` if there is no face detected in - * the imput image. `FaceStylizerResult` is `nil` if there is an error in initializing the face + * the input image. `FaceStylizerResult` is `nil` if there is an error in initializing the face * stylizer. */ - (nullable MPPFaceStylizerResult *)stylizeImage:(MPPImage *)image @@ -92,7 +92,7 @@ NS_SWIFT_NAME(FaceStylizer) * * @param image The `MPImage` on which face stylization is to be performed. * @param completionHandler A block to be invoked with the results of performing face stylization on - * the imput image. The block takes two arguments, the optional `FaceStylizerResult` that contains + * the input image. The block takes two arguments, the optional `FaceStylizerResult` that contains * the zero-copied stylized image if face stylization was successful and an optional error populated * upon failure. The lifetime of the stylized image is only guaranteed for the duration of the * block. diff --git a/mediapipe/tasks/java/com/google/mediapipe/tasks/core/TaskOptions.java b/mediapipe/tasks/java/com/google/mediapipe/tasks/core/TaskOptions.java index 4ca258429..5b77fd18e 100644 --- a/mediapipe/tasks/java/com/google/mediapipe/tasks/core/TaskOptions.java +++ b/mediapipe/tasks/java/com/google/mediapipe/tasks/core/TaskOptions.java @@ -25,7 +25,7 @@ import com.google.protobuf.ByteString; /** * MediaPipe Tasks options base class. Any MediaPipe task-specific options class should extend - * {@link TaskOptions} and implement exactly one of converTo*Proto() methods. + * {@link TaskOptions} and implement exactly one of convertTo*Proto() methods. */ public abstract class TaskOptions { /** diff --git a/mediapipe/tasks/python/metadata/metadata_writers/metadata_writer.py b/mediapipe/tasks/python/metadata/metadata_writers/metadata_writer.py index bf0a1ee12..168d4e5ba 100644 --- a/mediapipe/tasks/python/metadata/metadata_writers/metadata_writer.py +++ b/mediapipe/tasks/python/metadata/metadata_writers/metadata_writer.py @@ -736,7 +736,7 @@ class MetadataWriter(object): content is used to interpret the metadata content. Returns: - A tuple of (model_with_metadata_in_bytes, metdata_json_content) + A tuple of (model_with_metadata_in_bytes, metadata_json_content) """ # Populates metadata and associated files into TFLite model buffer. populator = metadata.MetadataPopulator.with_model_buffer(self._model_buffer) @@ -840,6 +840,6 @@ class MetadataWriterBase: content is used to interpret the metadata content. Returns: - A tuple of (model_with_metadata_in_bytes, metdata_json_content) + A tuple of (model_with_metadata_in_bytes, metadata_json_content) """ return self.writer.populate()