Fixes multiple typos in the tasks internal files.

PiperOrigin-RevId: 567506050
This commit is contained in:
MediaPipe Team 2023-09-21 21:22:26 -07:00 committed by Copybara-Service
parent 859d90b68b
commit 743118a04a
4 changed files with 7 additions and 7 deletions

View File

@ -25,7 +25,7 @@ TFL_DISABLED_SANITIZER_TAGS = [
] ]
objc_library( objc_library(
name = "MPPFaceLandmarkeResultHelpersTestLibary", name = "MPPFaceLandmarkeResultHelpersTestLibrary",
testonly = 1, testonly = 1,
srcs = ["sources/MPPFaceLandmarkerResult+HelpersTests.mm"], srcs = ["sources/MPPFaceLandmarkerResult+HelpersTests.mm"],
copts = [ copts = [
@ -50,6 +50,6 @@ ios_unit_test(
runner = tflite_ios_lab_runner("IOS_LATEST"), runner = tflite_ios_lab_runner("IOS_LATEST"),
tags = TFL_DEFAULT_TAGS + TFL_DISABLED_SANITIZER_TAGS, tags = TFL_DEFAULT_TAGS + TFL_DISABLED_SANITIZER_TAGS,
deps = [ deps = [
":MPPFaceLandmarkeResultHelpersTestLibary", ":MPPFaceLandmarkeResultHelpersTestLibrary",
], ],
) )

View File

@ -68,7 +68,7 @@ NS_SWIFT_NAME(FaceStylizer)
* @return A `FaceStylizerResult` that contains the stylized image of the most visible face. The * @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 * 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 * 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. * stylizer.
*/ */
- (nullable MPPFaceStylizerResult *)stylizeImage:(MPPImage *)image - (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 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 * @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 * 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 * upon failure. The lifetime of the stylized image is only guaranteed for the duration of the
* block. * block.

View File

@ -25,7 +25,7 @@ import com.google.protobuf.ByteString;
/** /**
* MediaPipe Tasks options base class. Any MediaPipe task-specific options class should extend * 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 { public abstract class TaskOptions {
/** /**

View File

@ -736,7 +736,7 @@ class MetadataWriter(object):
content is used to interpret the metadata content. content is used to interpret the metadata content.
Returns: 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. # Populates metadata and associated files into TFLite model buffer.
populator = metadata.MetadataPopulator.with_model_buffer(self._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. content is used to interpret the metadata content.
Returns: 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() return self.writer.populate()