@@ -21,49 +21,10 @@ import "tensorflow/lite/experimental/acceleration/configuration/configuration.pr
2121import "tensorflow_lite_support/cc/task/core/proto/base_options.proto" ;
2222import "tensorflow_lite_support/cc/task/core/proto/external_file.proto" ;
2323
24- // Options for setting up an ObjectDetector .
24+ // Options for setting up an ImageTransformer .
2525// Next Id: 10.
2626message ImageTransformerOptions {
2727 // Base options for configuring Task library, such as specifying the TfLite
2828 // model file with metadata, accelerator options, etc.
29- optional tflite.task.core.BaseOptions base_options = 9 ;
30-
31- // Legacy method for specifying the TFLite model file, as a single standalone
32- // TFLite file packed with TFLite Model Metadata [1]. Those are mandatory, and
33- // used to populate e.g. the label map and recommended score threshold.
34- //
35- // [1]: https://www.tensorflow.org/lite/convert/metadata
36- //
37- // Deprecated: prefer using `base_options.model_file`, which is mutually
38- // exclusive with this field.
39- optional core.ExternalFile model_file_with_metadata = 1 ;
40-
41- // Legacy method for specifying the number of threads to be used for TFLite
42- // ops that support multi-threading when running inference with CPU.
43- // num_threads should be greater than 0 or equal to -1. Setting num_threads to
44- // -1 has the effect to let TFLite runtime set the value.
45- //
46- // Deprecated: only works with `model_file_with_metadata`. Prefer using
47- // `base_options` to specifying the TFLite model and using
48- // `base_options.compute_settings.tflite_settings.cpu_settings.num_threads`,
49- // to configure the number of threads.
50- optional int32 num_threads = 7 [default = -1 ];
51-
52- // Legacy method for specifying how to accelerate the model
53- // inference using dedicated delegates. Supported delegate type includes:
54- // NONE, NNAPI, GPU, HEXAGON, XNNPACK, EDGETPU (Google internal),
55- // and EDGETPU_CORAL.
56- //
57- // IMPORTANT: in order to use a delegate, the appropriate delegate plugin
58- // needs to be linked at build time. See comment above the "object_detector"
59- // target at:
60- // https://github.com/tensorflow/tflite-support/blob/master/tensorflow_lite_support/cc/task/vision/BUILD
61- //
62- // See settings definition at:
63- // https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/experimental/acceleration/configuration/configuration.proto
64- //
65- // Deprecated: only works with `model_file_with_metadata`. Prefer using
66- // `base_options` to specifying the TFLite model and using
67- // `base_options.compute_settings` to configure acceleration options.
68- optional tflite.proto.ComputeSettings compute_settings = 8 ;
29+ optional tflite.task.core.BaseOptions base_options = 1 ;
6930}
0 commit comments