From b2494fe3c11dba68e5c6418f015dd2ecf35c376e Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Sun, 10 Sep 2023 21:54:29 -0700 Subject: [PATCH] This will fix multiple typos in the tasks internal files. PiperOrigin-RevId: 564264998 --- mediapipe/tasks/cc/text/custom_ops/ragged/BUILD | 2 +- .../diffuser/stable_diffusion_iterate_calculator.proto | 2 +- .../ios/test/vision/hand_landmarker/MPPHandLandmarkerTests.m | 4 ++-- mediapipe/tasks/ios/vision/core/sources/MPPMask.h | 2 +- mediapipe/tasks/python/core/base_options.py | 2 +- mediapipe/tasks/web/core/task_runner.ts | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mediapipe/tasks/cc/text/custom_ops/ragged/BUILD b/mediapipe/tasks/cc/text/custom_ops/ragged/BUILD index c8a38f94f..b37104e8b 100644 --- a/mediapipe/tasks/cc/text/custom_ops/ragged/BUILD +++ b/mediapipe/tasks/cc/text/custom_ops/ragged/BUILD @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# RaggedTensors suppport in TFLite +# RaggedTensors support in TFLite package(default_visibility = ["//mediapipe/tasks:internal"]) diff --git a/mediapipe/tasks/cc/vision/image_generator/diffuser/stable_diffusion_iterate_calculator.proto b/mediapipe/tasks/cc/vision/image_generator/diffuser/stable_diffusion_iterate_calculator.proto index ce6dcefd0..48d7c1a65 100644 --- a/mediapipe/tasks/cc/vision/image_generator/diffuser/stable_diffusion_iterate_calculator.proto +++ b/mediapipe/tasks/cc/vision/image_generator/diffuser/stable_diffusion_iterate_calculator.proto @@ -60,7 +60,7 @@ message StableDiffusionIterateCalculatorOptions { // If set to be True, the calculator will perform a GPU-CPU sync and emit an // empty packet. It is used to provide the signal of which iterations it is // currently at, typically used to create a progress bar. Note that this also - // introduce overhead, but not significanly based on our experiments (~1ms). + // introduce overhead, but not significantly based on our experiments (~1ms). optional bool emit_empty_packet = 6 [default = false]; enum ClPriorityHint { diff --git a/mediapipe/tasks/ios/test/vision/hand_landmarker/MPPHandLandmarkerTests.m b/mediapipe/tasks/ios/test/vision/hand_landmarker/MPPHandLandmarkerTests.m index 36ad2ba9d..1e7470d8e 100644 --- a/mediapipe/tasks/ios/test/vision/hand_landmarker/MPPHandLandmarkerTests.m +++ b/mediapipe/tasks/ios/test/vision/hand_landmarker/MPPHandLandmarkerTests.m @@ -510,9 +510,9 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation"; // times. An normal expectation will fail if expectation.fulfill() is not called // `expectation.expectedFulfillmentCount` times. If `expectation.isInverted = true`, the test will // only succeed if expectation is not fulfilled for the specified `expectedFulfillmentCount`. - // Since in our case we cannot predict how many times the expectation is supposed to be fullfilled + // Since in our case we cannot predict how many times the expectation is supposed to be fulfilled // setting, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and - // `expectation.isInverted = true` ensures that test succeeds ifexpectation is fullfilled <= + // `expectation.isInverted = true` ensures that test succeeds if the expectation is fulfilled <= // `iterationCount` times. XCTestExpectation *expectation = [[XCTestExpectation alloc] initWithDescription:@"detectWithLiveStream"]; diff --git a/mediapipe/tasks/ios/vision/core/sources/MPPMask.h b/mediapipe/tasks/ios/vision/core/sources/MPPMask.h index 2227baaa2..5d3a6910d 100644 --- a/mediapipe/tasks/ios/vision/core/sources/MPPMask.h +++ b/mediapipe/tasks/ios/vision/core/sources/MPPMask.h @@ -36,7 +36,7 @@ typedef NS_ENUM(NSUInteger, MPPMaskDataType) { * `MPPMaskDataTypeUInt8`, in addition to accessing the mask using `uint8Data`, you can access * `float32Data` to get the 32 bit float data (with values ranging from 0.0 to 1.0). The first * time you access the data as a type different from the underlying type, an expensive type - * conversion is performed. Subsequent accesses return a pointer to the memory location fo the same + * conversion is performed. Subsequent accesses return a pointer to the memory location for the same * type converted array. As type conversions can be expensive, it is recommended to limit the * accesses to data of types different from the underlying type. * diff --git a/mediapipe/tasks/python/core/base_options.py b/mediapipe/tasks/python/core/base_options.py index 4ec14db48..2d4258fed 100644 --- a/mediapipe/tasks/python/core/base_options.py +++ b/mediapipe/tasks/python/core/base_options.py @@ -47,7 +47,7 @@ class BaseOptions: Attributes: model_asset_path: Path to the model asset file. model_asset_buffer: The model asset file contents as bytes. - delegate: Accelaration to use. Supported values are GPU and CPU. GPU support + delegate: Acceleration to use. Supported values are GPU and CPU. GPU support is currently limited to Ubuntu platforms. """ diff --git a/mediapipe/tasks/web/core/task_runner.ts b/mediapipe/tasks/web/core/task_runner.ts index 30faccf19..8b43b272b 100644 --- a/mediapipe/tasks/web/core/task_runner.ts +++ b/mediapipe/tasks/web/core/task_runner.ts @@ -144,7 +144,7 @@ export abstract class TaskRunner { }) .then(buffer => { try { - // Try to delete file as we cannot overwite an existing file + // Try to delete file as we cannot overwrite an existing file // using our current API. this.graphRunner.wasmModule.FS_unlink('/model.dat'); } catch {