From 253ff0f85c9829551db2efeb7a997c71e8935793 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Tue, 8 Nov 2022 14:54:10 -0800 Subject: [PATCH] Update the Java doc for model asset for BaseOptions PiperOrigin-RevId: 487059371 --- .../com/google/mediapipe/tasks/core/BaseOptions.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 7f290350..d1db0889 100644 --- a/mediapipe/tasks/java/com/google/mediapipe/tasks/core/BaseOptions.java +++ b/mediapipe/tasks/java/com/google/mediapipe/tasks/core/BaseOptions.java @@ -26,22 +26,23 @@ public abstract class BaseOptions { @AutoValue.Builder public abstract static class Builder { /** - * Sets the model path to a tflite model with metadata in the assets. + * Sets the model path to a model asset file (a tflite model or a model asset bundle file) in + * the Android app assets folder. * *

Note: when model path is set, both model file descriptor and model buffer should be empty. */ public abstract Builder setModelAssetPath(String value); /** - * Sets the native fd int of a tflite model with metadata. + * Sets the native fd int of a model asset file (a tflite model or a model asset bundle file). * *

Note: when model file descriptor is set, both model path and model buffer should be empty. */ public abstract Builder setModelAssetFileDescriptor(Integer value); /** - * Sets either the direct {@link ByteBuffer} or the {@link MappedByteBuffer} of a tflite model - * with metadata. + * Sets either the direct {@link ByteBuffer} or the {@link MappedByteBuffer} of a model asset + * file (a tflite model or a model asset bundle file). * *

Note: when model buffer is set, both model file and model file descriptor should be empty. */