Skip to content

Commit 7efb354

Browse files
khanhlvgtflite-support-robot
authored andcommitted
Added missing processor exports to pip package.
PiperOrigin-RevId: 447477914
1 parent a0c6e6c commit 7efb354

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

tensorflow_lite_support/python/task/processor/proto/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ py_library(
4242
name = "classifications_pb2",
4343
srcs = ["classifications_pb2.py"],
4444
deps = [
45+
":class_pb2",
4546
"//tensorflow_lite_support/cc/task/processor/proto:classifications_py_pb2",
4647
],
4748
)
@@ -58,6 +59,7 @@ py_library(
5859
name = "detections_pb2",
5960
srcs = ["detections_pb2.py"],
6061
deps = [
62+
":class_pb2",
6163
"//tensorflow_lite_support/cc/task/processor/proto:detections_py_pb2",
6264
],
6365
)

tensorflow_lite_support/tools/pip_package/task_processor.__init__.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,40 @@
1919
"""
2020

2121
from tensorflow_lite_support.python.task.processor.proto import bounding_box_pb2
22+
from tensorflow_lite_support.python.task.processor.proto import class_pb2
2223
from tensorflow_lite_support.python.task.processor.proto import classification_options_pb2
2324
from tensorflow_lite_support.python.task.processor.proto import classifications_pb2
2425
from tensorflow_lite_support.python.task.processor.proto import detection_options_pb2
2526
from tensorflow_lite_support.python.task.processor.proto import detections_pb2
2627
from tensorflow_lite_support.python.task.processor.proto import embedding_options_pb2
2728
from tensorflow_lite_support.python.task.processor.proto import embedding_pb2
28-
from tensorflow_lite_support.python.task.processor.proto import segmentation_options_pb2
29-
from tensorflow_lite_support.python.task.processor.proto import segmentations_pb2
3029
from tensorflow_lite_support.python.task.processor.proto import search_options_pb2
3130
from tensorflow_lite_support.python.task.processor.proto import search_result_pb2
31+
from tensorflow_lite_support.python.task.processor.proto import segmentation_options_pb2
32+
from tensorflow_lite_support.python.task.processor.proto import segmentations_pb2
3233

3334
BoundingBox = bounding_box_pb2.BoundingBox
35+
Category = class_pb2.Category
3436
ClassificationOptions = classification_options_pb2.ClassificationOptions
3537
Classifications = classifications_pb2.Classifications
38+
ClassificationResult = classifications_pb2.ClassificationResult
3639
DetectionOptions = detection_options_pb2.DetectionOptions
40+
Detection = detections_pb2.Detection
3741
DetectionResult = detections_pb2.DetectionResult
3842
EmbeddingOptions = embedding_options_pb2.EmbeddingOptions
43+
FeatureVector = embedding_pb2.FeatureVector
3944
Embedding = embedding_pb2.Embedding
40-
SegmentationOptions = segmentation_options_pb2.SegmentationOptions
41-
Segmentation = segmentations_pb2.Segmentation
45+
EmbeddingResult = embedding_pb2.EmbeddingResult
4246
SearchOptions = search_options_pb2.SearchOptions
4347
SearchResult = search_result_pb2.SearchResult
48+
NearestNeighbor = search_result_pb2.NearestNeighbor
49+
SegmentationOptions = segmentation_options_pb2.SegmentationOptions
50+
Segmentation = segmentations_pb2.Segmentation
51+
SegmentationResult = segmentations_pb2.SegmentationResult
4452

4553
# Remove unnecessary modules to avoid duplication in API docs.
4654
del bounding_box_pb2
55+
del class_pb2
4756
del classification_options_pb2
4857
del classifications_pb2
4958
del detection_options_pb2

0 commit comments

Comments
 (0)