diff --git a/mediapipe/tasks/cc/core/base_options.h b/mediapipe/tasks/cc/core/base_options.h index 4717ea50e..cdb3998c8 100644 --- a/mediapipe/tasks/cc/core/base_options.h +++ b/mediapipe/tasks/cc/core/base_options.h @@ -31,13 +31,13 @@ namespace core { // Base options for MediaPipe C++ Tasks. struct BaseOptions { - // The model asset file contents as as string. + // The model asset file contents as a string. std::unique_ptr model_asset_buffer; // The path to the model asset to open and mmap in memory. std::string model_asset_path = ""; - // The delegate to run MediaPipe. If the delegate is not set, default + // The delegate to run MediaPipe. If the delegate is not set, the default // delegate CPU is used. enum Delegate { CPU = 0, diff --git a/mediapipe/tasks/java/com/google/mediapipe/tasks/core/BaseOptions.java b/mediapipe/tasks/java/com/google/mediapipe/tasks/core/BaseOptions.java index d28946736..7f2903503 100644 --- a/mediapipe/tasks/java/com/google/mediapipe/tasks/core/BaseOptions.java +++ b/mediapipe/tasks/java/com/google/mediapipe/tasks/core/BaseOptions.java @@ -48,7 +48,7 @@ public abstract class BaseOptions { public abstract Builder setModelAssetBuffer(ByteBuffer value); /** - * Sets device Delegate to run the MediaPipe pipeline. If the delegate is not set, default + * Sets device delegate to run the MediaPipe pipeline. If the delegate is not set, the default * delegate CPU is used. */ public abstract Builder setDelegate(Delegate delegate);