gimlet-api 0.0.7__py3-none-any.whl → 0.0.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gimlet_api-0.0.7.dist-info → gimlet_api-0.0.9.dist-info}/METADATA +1 -1
- {gimlet_api-0.0.7.dist-info → gimlet_api-0.0.9.dist-info}/RECORD +19 -18
- gml/client.py +9 -8
- gml/compile.py +13 -93
- gml/device.py +5 -7
- gml/hf.py +302 -32
- gml/model.py +2 -1
- gml/pipelines.py +146 -7
- gml/preprocessing.py +2 -1
- gml/proto/src/api/corepb/v1/controlplane_pb2.py +40 -20
- gml/proto/src/api/corepb/v1/cp_edge_pb2.py +43 -49
- gml/proto/src/api/corepb/v1/device_info_pb2.py +19 -7
- gml/proto/src/api/corepb/v1/gem_config_pb2.py +24 -15
- gml/proto/src/api/corepb/v1/mediastream_pb2.py +23 -19
- gml/proto/src/api/corepb/v1/model_exec_pb2.py +131 -112
- gml/proto/src/controlplane/compiler/cpb/v1/cpb_pb2.py +10 -11
- gml/register_submodules.py +134 -0
- gml/tensor.py +6 -1
- {gimlet_api-0.0.7.dist-info → gimlet_api-0.0.9.dist-info}/WHEEL +0 -0
gml/pipelines.py
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
# SPDX-License-Identifier: Apache-2.0
|
16
16
|
|
17
17
|
import abc
|
18
|
-
from typing import List
|
18
|
+
from typing import List, Optional
|
19
19
|
|
20
20
|
import gml.proto.src.api.corepb.v1.model_exec_pb2 as modelexecpb
|
21
21
|
from gml.model import Model
|
@@ -41,12 +41,44 @@ class SingleModelPipeline(Pipeline):
|
|
41
41
|
|
42
42
|
|
43
43
|
class SimpleDetectionPipeline(SingleModelPipeline):
|
44
|
-
def __init__(
|
45
|
-
self
|
44
|
+
def __init__(
|
45
|
+
self,
|
46
|
+
track_objects: Optional[bool] = None,
|
47
|
+
add_tracking_id: Optional[bool] = None,
|
48
|
+
):
|
49
|
+
self.track_objects = False
|
50
|
+
if add_tracking_id is not None:
|
51
|
+
import warnings
|
52
|
+
|
53
|
+
warnings.warn(
|
54
|
+
"The 'add_tracking_id' parameter is deprecated and will be removed in a future version.",
|
55
|
+
DeprecationWarning,
|
56
|
+
stacklevel=2,
|
57
|
+
)
|
58
|
+
self.track_objects = add_tracking_id
|
59
|
+
|
60
|
+
if track_objects is not None:
|
61
|
+
self.track_objects = track_objects
|
62
|
+
|
63
|
+
if track_objects is not None and add_tracking_id is not None:
|
64
|
+
raise ValueError(
|
65
|
+
"'track_objects' and 'add_tracking_id' cannot be set simultaneously."
|
66
|
+
)
|
46
67
|
|
47
68
|
def _to_yaml(self, model_name: str, org_name: str):
|
48
|
-
add_tracking_id = "true" if self.add_tracking_id else "false"
|
49
69
|
# editorconfig-checker-disable
|
70
|
+
video_stream_detections = ".detect.detections"
|
71
|
+
track_node = ""
|
72
|
+
if self.track_objects:
|
73
|
+
track_node = """
|
74
|
+
- name: track
|
75
|
+
kind: Track
|
76
|
+
inputs:
|
77
|
+
detections: .detect.detections
|
78
|
+
outputs:
|
79
|
+
- tracked_detections
|
80
|
+
"""
|
81
|
+
video_stream_detections = ".track.tracked_detections"
|
50
82
|
return f"""---
|
51
83
|
nodes:
|
52
84
|
- name: camera_source
|
@@ -56,7 +88,6 @@ nodes:
|
|
56
88
|
- name: detect
|
57
89
|
kind: Detect
|
58
90
|
attributes:
|
59
|
-
add_tracking_id: {add_tracking_id}
|
60
91
|
model:
|
61
92
|
model:
|
62
93
|
name: {model_name}
|
@@ -66,13 +97,14 @@ nodes:
|
|
66
97
|
frame: .camera_source.frame
|
67
98
|
outputs:
|
68
99
|
- detections
|
100
|
+
{track_node}
|
69
101
|
- name: video_stream_sink
|
70
102
|
kind: VideoStreamSink
|
71
103
|
attributes:
|
72
104
|
frame_rate_limit: 30
|
73
105
|
inputs:
|
74
106
|
frame: .camera_source.frame
|
75
|
-
detections:
|
107
|
+
detections: {video_stream_detections}
|
76
108
|
"""
|
77
109
|
|
78
110
|
|
@@ -110,7 +142,47 @@ nodes:
|
|
110
142
|
"""
|
111
143
|
|
112
144
|
|
145
|
+
class SimpleDepthEstimationPipeline(SingleModelPipeline):
|
146
|
+
def _to_yaml(self, model_name: str, org_name: str):
|
147
|
+
# editorconfig-checker-disable
|
148
|
+
return f"""---
|
149
|
+
nodes:
|
150
|
+
- name: camera_source
|
151
|
+
kind: CameraSource
|
152
|
+
outputs:
|
153
|
+
- frame
|
154
|
+
- name: estimate_depth
|
155
|
+
kind: EstimateDepth
|
156
|
+
attributes:
|
157
|
+
model:
|
158
|
+
model:
|
159
|
+
name: {model_name}
|
160
|
+
org: {org_name}
|
161
|
+
frame_rate_limit: 30
|
162
|
+
inputs:
|
163
|
+
frame: .camera_source.frame
|
164
|
+
outputs:
|
165
|
+
- depth
|
166
|
+
- name: video_stream_sink
|
167
|
+
kind: VideoStreamSink
|
168
|
+
attributes:
|
169
|
+
frame_rate_limit: 30
|
170
|
+
inputs:
|
171
|
+
frame: .estimate_depth.depth
|
172
|
+
"""
|
173
|
+
|
174
|
+
|
113
175
|
class LiveChatPipeline(Pipeline):
|
176
|
+
def __init__(
|
177
|
+
self,
|
178
|
+
message_template: str = r'''"{% for message in messages %}{% if message['role'] == 'system' %}{{message['content']}}{% else %}{{'<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n' + message['content'] + '<|eot_id|>'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n' }}{% endif %}"''',
|
179
|
+
preset_system_prompt: str = r"'<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nYou are a helpful assistant<|eot_id|>'",
|
180
|
+
add_generation_prompt: bool = True,
|
181
|
+
):
|
182
|
+
self.add_generation_prompt = add_generation_prompt
|
183
|
+
self.message_template = message_template
|
184
|
+
self.preset_system_prompt = preset_system_prompt
|
185
|
+
|
114
186
|
def to_yaml(self, models: List[Model], org_name: str) -> str:
|
115
187
|
if len(models) != 2:
|
116
188
|
raise ValueError(
|
@@ -133,6 +205,16 @@ nodes:
|
|
133
205
|
kind: TextStreamSource
|
134
206
|
outputs:
|
135
207
|
- prompt
|
208
|
+
- name: query_template
|
209
|
+
kind: TemplateChatMessage
|
210
|
+
attributes:
|
211
|
+
add_generation_prompt: {self.add_generation_prompt}
|
212
|
+
message_template: {self.message_template}
|
213
|
+
preset_system_prompt: {self.preset_system_prompt}
|
214
|
+
inputs:
|
215
|
+
query: .text_source.prompt
|
216
|
+
outputs:
|
217
|
+
- chat_message
|
136
218
|
- name: tokenize
|
137
219
|
kind: Tokenize
|
138
220
|
attributes:
|
@@ -141,7 +223,7 @@ nodes:
|
|
141
223
|
name: {tokenizer.name}
|
142
224
|
org: {org_name}
|
143
225
|
inputs:
|
144
|
-
text: .
|
226
|
+
text: .query_template.chat_message
|
145
227
|
outputs:
|
146
228
|
- tokens
|
147
229
|
- name: generate
|
@@ -173,4 +255,61 @@ nodes:
|
|
173
255
|
"""
|
174
256
|
|
175
257
|
|
258
|
+
class ZeroShotObjectDetectionPipeline(Pipeline):
|
259
|
+
def __init__(self, conf_threshold=0.1):
|
260
|
+
self.conf_threshold = conf_threshold
|
261
|
+
|
262
|
+
def to_yaml(self, models: List[Model], org_name: str) -> str:
|
263
|
+
if len(models) != 2:
|
264
|
+
raise ValueError(
|
265
|
+
"ZeroShotObjectDetectionPipeline expects two models (a detection model and a tokenizer)"
|
266
|
+
)
|
267
|
+
tokenizer = None
|
268
|
+
detect = None
|
269
|
+
for m in models:
|
270
|
+
if m.storage_format == modelexecpb.ModelInfo.MODEL_STORAGE_FORMAT_OPAQUE:
|
271
|
+
tokenizer = m
|
272
|
+
else:
|
273
|
+
detect = m
|
274
|
+
if tokenizer is None or detect is None:
|
275
|
+
raise ValueError(
|
276
|
+
"ZeroShotObjectDetectionPipeline expects both a tokenizer model and a detection model)"
|
277
|
+
)
|
278
|
+
return f"""---
|
279
|
+
nodes:
|
280
|
+
- name: camera_source
|
281
|
+
kind: CameraSource
|
282
|
+
outputs:
|
283
|
+
- frame
|
284
|
+
- name: text_source
|
285
|
+
kind: TextStreamSource
|
286
|
+
outputs:
|
287
|
+
- prompt
|
288
|
+
- name: detect
|
289
|
+
kind: Detect
|
290
|
+
attributes:
|
291
|
+
model:
|
292
|
+
model:
|
293
|
+
name: {detect.name}
|
294
|
+
org: {org_name}
|
295
|
+
tokenizer:
|
296
|
+
model:
|
297
|
+
name: {tokenizer.name}
|
298
|
+
org: {org_name}
|
299
|
+
conf_threshold: {self.conf_threshold}
|
300
|
+
inputs:
|
301
|
+
frame: .camera_source.frame
|
302
|
+
prompt: .text_source.prompt
|
303
|
+
outputs:
|
304
|
+
- detections
|
305
|
+
- name: video_stream_sink
|
306
|
+
kind: VideoStreamSink
|
307
|
+
attributes:
|
308
|
+
frame_rate_limit: 30
|
309
|
+
inputs:
|
310
|
+
frame: .camera_source.frame
|
311
|
+
detections: .detect.detections
|
312
|
+
"""
|
313
|
+
|
314
|
+
|
176
315
|
# editorconfig-checker-enable
|
gml/preprocessing.py
CHANGED
@@ -17,9 +17,10 @@
|
|
17
17
|
import abc
|
18
18
|
from typing import List
|
19
19
|
|
20
|
-
import gml.proto.src.api.corepb.v1.model_exec_pb2 as modelexecpb
|
21
20
|
import google.protobuf.wrappers_pb2 as wrapperspb
|
22
21
|
|
22
|
+
import gml.proto.src.api.corepb.v1.model_exec_pb2 as modelexecpb
|
23
|
+
|
23
24
|
|
24
25
|
class ImagePreprocessingStep(abc.ABC):
|
25
26
|
@abc.abstractmethod
|
@@ -12,12 +12,16 @@ _sym_db = _symbol_database.Default()
|
|
12
12
|
|
13
13
|
|
14
14
|
from gml.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2
|
15
|
-
from gml.proto.src.common.typespb import uuid_pb2 as src_dot_common_dot_typespb_dot_uuid__pb2
|
16
15
|
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
17
16
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
17
|
+
from gml.proto.src.api.corepb.v1 import cp_edge_pb2 as src_dot_api_dot_corepb_dot_v1_dot_cp__edge__pb2
|
18
|
+
from gml.proto.src.api.corepb.v1 import gem_config_pb2 as src_dot_api_dot_corepb_dot_v1_dot_gem__config__pb2
|
19
|
+
from gml.proto.src.common.typespb import uuid_pb2 as src_dot_common_dot_typespb_dot_uuid__pb2
|
20
|
+
from gml.proto.src.common.typespb import status_pb2 as src_dot_common_dot_typespb_dot_status__pb2
|
21
|
+
from gml.proto.src.api.corepb.v1 import model_exec_pb2 as src_dot_api_dot_corepb_dot_v1_dot_model__exec__pb2
|
18
22
|
|
19
23
|
|
20
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$src/api/corepb/v1/controlplane.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\x1a\x1dsrc/common/typespb/uuid.proto\x1a\
|
24
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$src/api/corepb/v1/controlplane.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1fsrc/api/corepb/v1/cp_edge.proto\x1a\"src/api/corepb/v1/gem_config.proto\x1a\x1dsrc/common/typespb/uuid.proto\x1a\x1fsrc/common/typespb/status.proto\x1a\"src/api/corepb/v1/model_exec.proto\"\xc4\x01\n\nCPMetadata\x12\x37\n\x05topic\x18\x01 \x01(\x0e\x32!.gml.internal.api.core.v1.CPTopicR\x05topic\x12:\n\tentity_id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x45ntityIDR\x08\x65ntityId\x12\x41\n\x0erecv_timestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\rrecvTimestamp\"v\n\tCPMessage\x12@\n\x08metadata\x18\x01 \x01(\x0b\x32$.gml.internal.api.core.v1.CPMetadataR\x08metadata\x12\'\n\x03msg\x18\xe8\x07 \x01(\x0b\x32\x14.google.protobuf.AnyR\x03msg\"M\n\x0f\x44\x65viceConnected\x12:\n\tdevice_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\"J\n\x0c\x44\x65viceUpdate\x12:\n\tdevice_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\"P\n\x12\x44\x65viceDisconnected\x12:\n\tdevice_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\"\xd8\x01\n\x1ePhysicalPipelineReconciliation\x12:\n\tdevice_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\x12Y\n\x14physical_pipeline_id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x1f\n\x0b\x66orce_apply\x18\x03 \x01(\x08R\nforceApply\"\xbc\x01\n PipelineDeploymentReconciliation\x12_\n\x16pipeline_deployment_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x18\xe2\xde\x1f\x14PipelineDeploymentIDR\x14pipelineDeploymentId\x12\x37\n\x08\x66leet_id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0b\xe2\xde\x1f\x07\x46leetIDR\x07\x66leetId\"U\n\x17\x42\x61seConfigUpdateRequest\x12:\n\tdevice_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\"\xb2\x03\n\x1bPipelineCompilationMetadata\x12\x8c\x01\n\x1aphysical_pipeline_metadata\x18\x01 \x01(\x0b\x32N.gml.internal.api.core.v1.PipelineCompilationMetadata.PhysicalPipelineMetadataR\x18physicalPipelineMetadata\x1a\x83\x02\n\x18PhysicalPipelineMetadata\x12:\n\tdevice_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\x12\x18\n\x07version\x18\x02 \x01(\x03R\x07version\x12\x30\n\x14\x64\x65vice_resource_hash\x18\x03 \x01(\tR\x12\x64\x65viceResourceHash\x12_\n\x16pipeline_deployment_id\x18\x04 \x01(\x0b\x32\x0f.gml.types.UUIDB\x18\xe2\xde\x1f\x14PipelineDeploymentIDR\x14pipelineDeploymentId\"\x88\x04\n\x1aPipelineCompilationRequest\x12Q\n\x08metadata\x18\x01 \x01(\x0b\x32\x35.gml.internal.api.core.v1.PipelineCompilationMetadataR\x08metadata\x12V\n\x13logical_pipeline_id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x15\xe2\xde\x1f\x11LogicalPipelineIDR\x11logicalPipelineId\x12T\n\x10logical_pipeline\x18\x03 \x01(\x0b\x32).gml.internal.api.core.v1.LogicalPipelineR\x0flogicalPipeline\x12]\n\x13\x64\x65vice_capabilities\x18\x04 \x01(\x0b\x32,.gml.internal.api.core.v1.DeviceCapabilitiesR\x12\x64\x65viceCapabilities\x12\x37\n\x06models\x18\x05 \x03(\x0b\x32\x1f.gml.internal.api.core.v1.ModelR\x06models\x12Q\n\ngem_config\x18\x06 \x01(\x0b\x32#.gml.internal.api.core.v1.GEMConfigB\r\xe2\xde\x1f\tGEMConfigR\tgemConfig\"\xe1\x01\n\x1bPipelineCompilationResponse\x12Q\n\x08metadata\x18\x01 \x01(\x0b\x32\x35.gml.internal.api.core.v1.PipelineCompilationMetadataR\x08metadata\x12\x44\n\texec_spec\x18\x02 \x01(\x0b\x32\'.gml.internal.api.core.v1.ExecutionSpecR\x08\x65xecSpec\x12)\n\x06status\x18\x03 \x01(\x0b\x32\x11.gml.types.StatusR\x06status*\xcf\x02\n\x07\x43PTopic\x12\x14\n\x10\x43P_TOPIC_UNKNOWN\x10\x00\x12\x1d\n\x19\x43P_TOPIC_DEVICE_CONNECTED\x10\x01\x12-\n)CP_TOPIC_PHYSICAL_PIPELINE_RECONCILIATION\x10\x02\x12 \n\x1c\x43P_TOPIC_DEVICE_DISCONNECTED\x10\x03\x12/\n+CP_TOPIC_PIPELINE_DEPLOYMENT_RECONCILIATION\x10\x04\x12\x1a\n\x16\x43P_TOPIC_DEVICE_UPDATE\x10\x05\x12\x1a\n\x16\x43P_TOPIC_DEVICE_CONFIG\x10\x06\x12)\n%CP_TOPIC_PIPELINE_COMPILATION_REQUEST\x10\x07\x12*\n&CP_TOPIC_PIPELINE_COMPILATION_RESPONSE\x10\x08\x42/Z-gimletlabs.ai/gimlet/src/api/corepb/v1;corepbb\x06proto3')
|
21
25
|
|
22
26
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
23
27
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'src.api.corepb.v1.controlplane_pb2', globals())
|
@@ -43,22 +47,38 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
43
47
|
_PIPELINEDEPLOYMENTRECONCILIATION.fields_by_name['fleet_id']._serialized_options = b'\342\336\037\007FleetID'
|
44
48
|
_BASECONFIGUPDATEREQUEST.fields_by_name['device_id']._options = None
|
45
49
|
_BASECONFIGUPDATEREQUEST.fields_by_name['device_id']._serialized_options = b'\342\336\037\010DeviceID'
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
50
|
+
_PIPELINECOMPILATIONMETADATA_PHYSICALPIPELINEMETADATA.fields_by_name['device_id']._options = None
|
51
|
+
_PIPELINECOMPILATIONMETADATA_PHYSICALPIPELINEMETADATA.fields_by_name['device_id']._serialized_options = b'\342\336\037\010DeviceID'
|
52
|
+
_PIPELINECOMPILATIONMETADATA_PHYSICALPIPELINEMETADATA.fields_by_name['pipeline_deployment_id']._options = None
|
53
|
+
_PIPELINECOMPILATIONMETADATA_PHYSICALPIPELINEMETADATA.fields_by_name['pipeline_deployment_id']._serialized_options = b'\342\336\037\024PipelineDeploymentID'
|
54
|
+
_PIPELINECOMPILATIONREQUEST.fields_by_name['logical_pipeline_id']._options = None
|
55
|
+
_PIPELINECOMPILATIONREQUEST.fields_by_name['logical_pipeline_id']._serialized_options = b'\342\336\037\021LogicalPipelineID'
|
56
|
+
_PIPELINECOMPILATIONREQUEST.fields_by_name['gem_config']._options = None
|
57
|
+
_PIPELINECOMPILATIONREQUEST.fields_by_name['gem_config']._serialized_options = b'\342\336\037\tGEMConfig'
|
58
|
+
_CPTOPIC._serialized_start=2559
|
59
|
+
_CPTOPIC._serialized_end=2894
|
60
|
+
_CPMETADATA._serialized_start=318
|
61
|
+
_CPMETADATA._serialized_end=514
|
62
|
+
_CPMESSAGE._serialized_start=516
|
63
|
+
_CPMESSAGE._serialized_end=634
|
64
|
+
_DEVICECONNECTED._serialized_start=636
|
65
|
+
_DEVICECONNECTED._serialized_end=713
|
66
|
+
_DEVICEUPDATE._serialized_start=715
|
67
|
+
_DEVICEUPDATE._serialized_end=789
|
68
|
+
_DEVICEDISCONNECTED._serialized_start=791
|
69
|
+
_DEVICEDISCONNECTED._serialized_end=871
|
70
|
+
_PHYSICALPIPELINERECONCILIATION._serialized_start=874
|
71
|
+
_PHYSICALPIPELINERECONCILIATION._serialized_end=1090
|
72
|
+
_PIPELINEDEPLOYMENTRECONCILIATION._serialized_start=1093
|
73
|
+
_PIPELINEDEPLOYMENTRECONCILIATION._serialized_end=1281
|
74
|
+
_BASECONFIGUPDATEREQUEST._serialized_start=1283
|
75
|
+
_BASECONFIGUPDATEREQUEST._serialized_end=1368
|
76
|
+
_PIPELINECOMPILATIONMETADATA._serialized_start=1371
|
77
|
+
_PIPELINECOMPILATIONMETADATA._serialized_end=1805
|
78
|
+
_PIPELINECOMPILATIONMETADATA_PHYSICALPIPELINEMETADATA._serialized_start=1546
|
79
|
+
_PIPELINECOMPILATIONMETADATA_PHYSICALPIPELINEMETADATA._serialized_end=1805
|
80
|
+
_PIPELINECOMPILATIONREQUEST._serialized_start=1808
|
81
|
+
_PIPELINECOMPILATIONREQUEST._serialized_end=2328
|
82
|
+
_PIPELINECOMPILATIONRESPONSE._serialized_start=2331
|
83
|
+
_PIPELINECOMPILATIONRESPONSE._serialized_end=2556
|
64
84
|
# @@protoc_insertion_point(module_scope)
|
@@ -22,7 +22,7 @@ from gml.proto.src.api.corepb.v1 import model_exec_pb2 as src_dot_api_dot_corepb
|
|
22
22
|
from gml.proto.src.api.corepb.v1 import gem_config_pb2 as src_dot_api_dot_corepb_dot_v1_dot_gem__config__pb2
|
23
23
|
|
24
24
|
|
25
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fsrc/api/corepb/v1/cp_edge.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\x1a\x1dsrc/common/typespb/uuid.proto\x1a\x1fsrc/common/typespb/status.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a,opentelemetry/proto/metrics/v1/metrics.proto\x1a#src/api/corepb/v1/device_info.proto\x1a\"src/api/corepb/v1/model_exec.proto\x1a\"src/api/corepb/v1/gem_config.proto\"1\n\rEdgeHeartbeat\x12 \n\x06seq_id\x18\x01 \x01(\x03\x42\t\xe2\xde\x1f\x05SeqIDR\x05seqId\"4\n\x10\x45\x64geHeartbeatAck\x12 \n\x06seq_id\x18\x01 \x01(\x03\x42\t\xe2\xde\x1f\x05SeqIDR\x05seqId\"\xbb\x01\n\x1aPhysicalPipelineSpecUpdate\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x42\n\x04spec\x18\x02 \x01(\x0b\x32..gml.internal.api.core.v1.PhysicalPipelineSpecR\x04spec\"\xdd\x01\n\x1cPhysicalPipelineStatusUpdate\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x18\n\x07version\x18\x02 \x01(\x03R\x07version\x12H\n\x06status\x18\x03 \x01(\x0b\x32\x30.gml.internal.api.core.v1.PhysicalPipelineStatusR\x06status\"\x0c\n\nCPRunModel\"\x0f\n\rCPRunModelAck\"\xb2\x01\n\x12\x45xecutionGraphSpec\x12=\n\x05graph\x18\x01 \x01(\x0b\x32\'.gml.internal.api.core.v1.ExecutionSpecR\x05graph\x12\x43\n\x05state\x18\x02 \x01(\x0e\x32-.gml.internal.api.core.v1.ExecutionGraphStateR\x05state\x12\x18\n\x07version\x18\x03 \x01(\x03R\x07version\"\x8d\x01\n\x14\x45xecutionGraphStatus\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32-.gml.internal.api.core.v1.ExecutionGraphStateR\x05state\x12\x16\n\x06reason\x18\x02 \x01(\tR\x06reason\x12\x18\n\x07version\x18\x03 \x01(\x03R\x07version\"\x8a\x02\n\x13\x41pplyExecutionGraph\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12V\n\x13logical_pipeline_id\x18\x03 \x01(\x0b\x32\x0f.gml.types.UUIDB\x15\xe2\xde\x1f\x11LogicalPipelineIDR\x11logicalPipelineId\x12@\n\x04spec\x18\x02 \x01(\x0b\x32,.gml.internal.api.core.v1.ExecutionGraphSpecR\x04spec\"q\n\x14\x44\x65leteExecutionGraph\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\"\xbf\x01\n\x1a\x45xecutionGraphStatusUpdate\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x46\n\x06status\x18\x02 \x01(\x0b\x32..gml.internal.api.core.v1.ExecutionGraphStatusR\x06status\"\x12\n\
|
25
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fsrc/api/corepb/v1/cp_edge.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\x1a\x1dsrc/common/typespb/uuid.proto\x1a\x1fsrc/common/typespb/status.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a,opentelemetry/proto/metrics/v1/metrics.proto\x1a#src/api/corepb/v1/device_info.proto\x1a\"src/api/corepb/v1/model_exec.proto\x1a\"src/api/corepb/v1/gem_config.proto\"1\n\rEdgeHeartbeat\x12 \n\x06seq_id\x18\x01 \x01(\x03\x42\t\xe2\xde\x1f\x05SeqIDR\x05seqId\"4\n\x10\x45\x64geHeartbeatAck\x12 \n\x06seq_id\x18\x01 \x01(\x03\x42\t\xe2\xde\x1f\x05SeqIDR\x05seqId\"\xbb\x01\n\x1aPhysicalPipelineSpecUpdate\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x42\n\x04spec\x18\x02 \x01(\x0b\x32..gml.internal.api.core.v1.PhysicalPipelineSpecR\x04spec\"\xdd\x01\n\x1cPhysicalPipelineStatusUpdate\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x18\n\x07version\x18\x02 \x01(\x03R\x07version\x12H\n\x06status\x18\x03 \x01(\x0b\x32\x30.gml.internal.api.core.v1.PhysicalPipelineStatusR\x06status\"\x0c\n\nCPRunModel\"\x0f\n\rCPRunModelAck\"\xb2\x01\n\x12\x45xecutionGraphSpec\x12=\n\x05graph\x18\x01 \x01(\x0b\x32\'.gml.internal.api.core.v1.ExecutionSpecR\x05graph\x12\x43\n\x05state\x18\x02 \x01(\x0e\x32-.gml.internal.api.core.v1.ExecutionGraphStateR\x05state\x12\x18\n\x07version\x18\x03 \x01(\x03R\x07version\"\x8d\x01\n\x14\x45xecutionGraphStatus\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32-.gml.internal.api.core.v1.ExecutionGraphStateR\x05state\x12\x16\n\x06reason\x18\x02 \x01(\tR\x06reason\x12\x18\n\x07version\x18\x03 \x01(\x03R\x07version\"\x8a\x02\n\x13\x41pplyExecutionGraph\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12V\n\x13logical_pipeline_id\x18\x03 \x01(\x0b\x32\x0f.gml.types.UUIDB\x15\xe2\xde\x1f\x11LogicalPipelineIDR\x11logicalPipelineId\x12@\n\x04spec\x18\x02 \x01(\x0b\x32,.gml.internal.api.core.v1.ExecutionGraphSpecR\x04spec\"q\n\x14\x44\x65leteExecutionGraph\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\"\xbf\x01\n\x1a\x45xecutionGraphStatusUpdate\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x46\n\x06status\x18\x02 \x01(\x0b\x32..gml.internal.api.core.v1.ExecutionGraphStatusR\x06status\"\x12\n\x10MediaStreamStart\"\x11\n\x0fMediaStreamStop\"\x16\n\x14MediaStreamKeepAlive\"q\n\x12MediaStreamControl\x12[\n\x13text_stream_control\x18\x01 \x01(\x0b\x32+.gml.internal.api.core.v1.TextStreamControlR\x11textStreamControl\"+\n\x11TextStreamControl\x12\x16\n\x06prompt\x18\x01 \x01(\tR\x06prompt\"\x7f\n\x18\x45\x64geCPMediaStreamMessage\x12:\n\tstream_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08StreamIDR\x08streamId\x12\'\n\x03msg\x18\xe8\x07 \x01(\x0b\x32\x14.google.protobuf.AnyR\x03msg\"\x7f\n\x18\x43PEdgeMediaStreamMessage\x12:\n\tstream_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08StreamIDR\x08streamId\x12\'\n\x03msg\x18\xe8\x07 \x01(\x0b\x32\x14.google.protobuf.AnyR\x03msg\"m\n\x0f\x45\x64geOTelMetrics\x12Z\n\x10resource_metrics\x18\x01 \x01(\x0b\x32/.opentelemetry.proto.metrics.v1.ResourceMetricsR\x0fresourceMetrics\"\x94\x01\n\x13\x46ileTransferRequest\x12\x34\n\x07\x66ile_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\n\xe2\xde\x1f\x06\x46ileIDR\x06\x66ileId\x12*\n\x11\x63hunk_start_bytes\x18\x02 \x01(\x03R\x0f\x63hunkStartBytes\x12\x1b\n\tnum_bytes\x18\x03 \x01(\x03R\x08numBytes\"\x8f\x02\n\x14\x46ileTransferResponse\x12)\n\x06status\x18\x01 \x01(\x0b\x32\x11.gml.types.StatusR\x06status\x12N\n\x05\x63hunk\x18\x02 \x01(\x0b\x32\x38.gml.internal.api.core.v1.FileTransferResponse.FileChunkR\x05\x63hunk\x12\x34\n\x07\x66ile_id\x18\x03 \x01(\x0b\x32\x0f.gml.types.UUIDB\n\xe2\xde\x1f\x06\x46ileIDR\x06\x66ileId\x1a\x46\n\tFileChunk\x12\x1f\n\x0bstart_bytes\x18\x01 \x01(\x03R\nstartBytes\x12\x18\n\x07payload\x18\x02 \x01(\x0cR\x07payload\"\xfa\x01\n\x12\x44\x65viceCapabilities\x12Q\n\x0emodel_runtimes\x18\x01 \x03(\x0b\x32*.gml.internal.api.core.v1.ModelRuntimeInfoR\rmodelRuntimes\x12>\n\x07\x63\x61meras\x18\x02 \x03(\x0b\x32$.gml.internal.api.core.v1.CameraInfoR\x07\x63\x61meras\x12Q\n\x0e\x63\x61mera_drivers\x18\x03 \x03(\x0b\x32*.gml.internal.api.core.v1.CameraDriverInfoR\rcameraDrivers\"\x89\x01\n\x17\x44\x65viceConfigStateUpdate\x12>\n\x05state\x18\x01 \x01(\x0b\x32(.gml.internal.api.core.v1.GEMConfigStateR\x05state\x12.\n\x13\x62\x61se_config_version\x18\x02 \x01(\x03R\x11\x62\x61seConfigVersion\"o\n\x16\x44\x65viceBaseConfigUpdate\x12;\n\x06\x63onfig\x18\x01 \x01(\x0b\x32#.gml.internal.api.core.v1.GEMConfigR\x06\x63onfig\x12\x18\n\x07version\x18\x02 \x01(\x03R\x07version\"\xcc\x01\n\x0e\x45\x64geCPMetadata\x12;\n\x05topic\x18\x01 \x01(\x0e\x32%.gml.internal.api.core.v1.EdgeCPTopicR\x05topic\x12:\n\tdevice_id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\x12\x41\n\x0erecv_timestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\rrecvTimestamp\"~\n\rEdgeCPMessage\x12\x44\n\x08metadata\x18\x01 \x01(\x0b\x32(.gml.internal.api.core.v1.EdgeCPMetadataR\x08metadata\x12\'\n\x03msg\x18\xe8\x07 \x01(\x0b\x32\x14.google.protobuf.AnyR\x03msg\"\xcc\x01\n\x0e\x43PEdgeMetadata\x12;\n\x05topic\x18\x01 \x01(\x0e\x32%.gml.internal.api.core.v1.CPEdgeTopicR\x05topic\x12:\n\tdevice_id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\x12\x41\n\x0erecv_timestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\rrecvTimestamp\"~\n\rCPEdgeMessage\x12\x44\n\x08metadata\x18\x01 \x01(\x0b\x32(.gml.internal.api.core.v1.CPEdgeMetadataR\x08metadata\x12\'\n\x03msg\x18\xe8\x07 \x01(\x0b\x32\x14.google.protobuf.AnyR\x03msg*\xbe\x02\n\x13\x45xecutionGraphState\x12!\n\x1d\x45XECUTION_GRAPH_STATE_UNKNOWN\x10\x00\x12*\n&EXECUTION_GRAPH_STATE_UPDATE_REQUESTED\x10\n\x12%\n!EXECUTION_GRAPH_STATE_DOWNLOADING\x10\x14\x12#\n\x1f\x45XECUTION_GRAPH_STATE_COMPILING\x10\x1e\x12\x1f\n\x1b\x45XECUTION_GRAPH_STATE_READY\x10(\x12\"\n\x1e\x45XECUTION_GRAPH_STATE_DEPLOYED\x10\x32\x12%\n!EXECUTION_GRAPH_STATE_TERMINATING\x10<\x12 \n\x1c\x45XECUTION_GRAPH_STATE_FAILED\x10\x64*\xe7\x01\n\x0b\x45\x64geCPTopic\x12\x19\n\x15\x45\x44GE_CP_TOPIC_UNKNOWN\x10\x00\x12\x18\n\x14\x45\x44GE_CP_TOPIC_STATUS\x10\x01\x12\x16\n\x12\x45\x44GE_CP_TOPIC_EXEC\x10\x03\x12\x19\n\x15\x45\x44GE_CP_TOPIC_METRICS\x10\x04\x12\x1f\n\x1b\x45\x44GE_CP_TOPIC_FILE_TRANSFER\x10\x05\x12\x16\n\x12\x45\x44GE_CP_TOPIC_INFO\x10\x06\x12\x17\n\x13\x45\x44GE_CP_TOPIC_MEDIA\x10\x07\x12\x18\n\x14\x45\x44GE_CP_TOPIC_CONFIG\x10\x08\"\x04\x08\x02\x10\x02*\xe7\x01\n\x0b\x43PEdgeTopic\x12\x19\n\x15\x43P_EDGE_TOPIC_UNKNOWN\x10\x00\x12\x18\n\x14\x43P_EDGE_TOPIC_STATUS\x10\x01\x12\x16\n\x12\x43P_EDGE_TOPIC_EXEC\x10\x03\x12\x19\n\x15\x43P_EDGE_TOPIC_METRICS\x10\x04\x12\x1f\n\x1b\x43P_EDGE_TOPIC_FILE_TRANSFER\x10\x05\x12\x16\n\x12\x43P_EDGE_TOPIC_INFO\x10\x06\x12\x17\n\x13\x43P_EDGE_TOPIC_MEDIA\x10\x07\x12\x18\n\x14\x43P_EDGE_TOPIC_CONFIG\x10\x08\"\x04\x08\x02\x10\x02\x42/Z-gimletlabs.ai/gimlet/src/api/corepb/v1;corepbb\x06proto3')
|
26
26
|
|
27
27
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
28
28
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'src.api.corepb.v1.cp_edge_pb2', globals())
|
@@ -58,12 +58,12 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
58
58
|
_EDGECPMETADATA.fields_by_name['device_id']._serialized_options = b'\342\336\037\010DeviceID'
|
59
59
|
_CPEDGEMETADATA.fields_by_name['device_id']._options = None
|
60
60
|
_CPEDGEMETADATA.fields_by_name['device_id']._serialized_options = b'\342\336\037\010DeviceID'
|
61
|
-
_EXECUTIONGRAPHSTATE._serialized_start=
|
62
|
-
_EXECUTIONGRAPHSTATE._serialized_end=
|
63
|
-
_EDGECPTOPIC._serialized_start=
|
64
|
-
_EDGECPTOPIC._serialized_end=
|
65
|
-
_CPEDGETOPIC._serialized_start=
|
66
|
-
_CPEDGETOPIC._serialized_end=
|
61
|
+
_EXECUTIONGRAPHSTATE._serialized_start=4009
|
62
|
+
_EXECUTIONGRAPHSTATE._serialized_end=4327
|
63
|
+
_EDGECPTOPIC._serialized_start=4330
|
64
|
+
_EDGECPTOPIC._serialized_end=4561
|
65
|
+
_CPEDGETOPIC._serialized_start=4564
|
66
|
+
_CPEDGETOPIC._serialized_end=4795
|
67
67
|
_EDGEHEARTBEAT._serialized_start=362
|
68
68
|
_EDGEHEARTBEAT._serialized_end=411
|
69
69
|
_EDGEHEARTBEATACK._serialized_start=413
|
@@ -86,46 +86,40 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
86
86
|
_DELETEEXECUTIONGRAPH._serialized_end=1619
|
87
87
|
_EXECUTIONGRAPHSTATUSUPDATE._serialized_start=1622
|
88
88
|
_EXECUTIONGRAPHSTATUSUPDATE._serialized_end=1813
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
_EDGECPMESSAGE._serialized_start=3608
|
126
|
-
_EDGECPMESSAGE._serialized_end=3734
|
127
|
-
_CPEDGEMETADATA._serialized_start=3737
|
128
|
-
_CPEDGEMETADATA._serialized_end=3941
|
129
|
-
_CPEDGEMESSAGE._serialized_start=3943
|
130
|
-
_CPEDGEMESSAGE._serialized_end=4069
|
89
|
+
_MEDIASTREAMSTART._serialized_start=1815
|
90
|
+
_MEDIASTREAMSTART._serialized_end=1833
|
91
|
+
_MEDIASTREAMSTOP._serialized_start=1835
|
92
|
+
_MEDIASTREAMSTOP._serialized_end=1852
|
93
|
+
_MEDIASTREAMKEEPALIVE._serialized_start=1854
|
94
|
+
_MEDIASTREAMKEEPALIVE._serialized_end=1876
|
95
|
+
_MEDIASTREAMCONTROL._serialized_start=1878
|
96
|
+
_MEDIASTREAMCONTROL._serialized_end=1991
|
97
|
+
_TEXTSTREAMCONTROL._serialized_start=1993
|
98
|
+
_TEXTSTREAMCONTROL._serialized_end=2036
|
99
|
+
_EDGECPMEDIASTREAMMESSAGE._serialized_start=2038
|
100
|
+
_EDGECPMEDIASTREAMMESSAGE._serialized_end=2165
|
101
|
+
_CPEDGEMEDIASTREAMMESSAGE._serialized_start=2167
|
102
|
+
_CPEDGEMEDIASTREAMMESSAGE._serialized_end=2294
|
103
|
+
_EDGEOTELMETRICS._serialized_start=2296
|
104
|
+
_EDGEOTELMETRICS._serialized_end=2405
|
105
|
+
_FILETRANSFERREQUEST._serialized_start=2408
|
106
|
+
_FILETRANSFERREQUEST._serialized_end=2556
|
107
|
+
_FILETRANSFERRESPONSE._serialized_start=2559
|
108
|
+
_FILETRANSFERRESPONSE._serialized_end=2830
|
109
|
+
_FILETRANSFERRESPONSE_FILECHUNK._serialized_start=2760
|
110
|
+
_FILETRANSFERRESPONSE_FILECHUNK._serialized_end=2830
|
111
|
+
_DEVICECAPABILITIES._serialized_start=2833
|
112
|
+
_DEVICECAPABILITIES._serialized_end=3083
|
113
|
+
_DEVICECONFIGSTATEUPDATE._serialized_start=3086
|
114
|
+
_DEVICECONFIGSTATEUPDATE._serialized_end=3223
|
115
|
+
_DEVICEBASECONFIGUPDATE._serialized_start=3225
|
116
|
+
_DEVICEBASECONFIGUPDATE._serialized_end=3336
|
117
|
+
_EDGECPMETADATA._serialized_start=3339
|
118
|
+
_EDGECPMETADATA._serialized_end=3543
|
119
|
+
_EDGECPMESSAGE._serialized_start=3545
|
120
|
+
_EDGECPMESSAGE._serialized_end=3671
|
121
|
+
_CPEDGEMETADATA._serialized_start=3674
|
122
|
+
_CPEDGEMETADATA._serialized_end=3878
|
123
|
+
_CPEDGEMESSAGE._serialized_start=3880
|
124
|
+
_CPEDGEMESSAGE._serialized_end=4006
|
131
125
|
# @@protoc_insertion_point(module_scope)
|
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
|
|
14
14
|
from gml.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2
|
15
15
|
|
16
16
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#src/api/corepb/v1/device_info.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\"R\n\x10\x43\x61meraDriverInfo\x12>\n\x06\x64river\x18\x01 \x01(\x0e\x32&.gml.internal.api.core.v1.CameraDriverR\x06\x64river\"\xb4\x02\n\nCameraMode\x12\x16\n\x06\x66ourcc\x18\x01 \x01(\tR\x06\x66ourcc\x12Q\n\x0bresolutions\x18\x02 \x03(\x0b\x32/.gml.internal.api.core.v1.CameraMode.ResolutionR\x0bresolutions\x1a\xba\x01\n\nResolution\x12\x14\n\x05width\x18\x01 \x01(\x05R\x05width\x12\x16\n\x06height\x18\x02 \x01(\x05R\x06height\x12V\n\tintervals\x18\x03 \x03(\x0b\x32\x38.gml.internal.api.core.v1.CameraMode.Resolution.IntervalR\tintervals\x1a&\n\x08Interval\x12\x1a\n\x08interval\x18\x01 \x01(\x01R\x08interval\"\xb3\x01\n\nCameraInfo\x12>\n\x06\x64river\x18\x01 \x01(\x0e\x32&.gml.internal.api.core.v1.CameraDriverR\x06\x64river\x12)\n\tcamera_id\x18\x02 \x01(\tB\x0c\xe2\xde\x1f\x08\x43\x61meraIDR\x08\x63\x61meraId\x12:\n\x05modes\x18\x03 \x03(\x0b\x32$.gml.internal.api.core.v1.CameraModeR\x05modes\"\
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#src/api/corepb/v1/device_info.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\"R\n\x10\x43\x61meraDriverInfo\x12>\n\x06\x64river\x18\x01 \x01(\x0e\x32&.gml.internal.api.core.v1.CameraDriverR\x06\x64river\"\xb4\x02\n\nCameraMode\x12\x16\n\x06\x66ourcc\x18\x01 \x01(\tR\x06\x66ourcc\x12Q\n\x0bresolutions\x18\x02 \x03(\x0b\x32/.gml.internal.api.core.v1.CameraMode.ResolutionR\x0bresolutions\x1a\xba\x01\n\nResolution\x12\x14\n\x05width\x18\x01 \x01(\x05R\x05width\x12\x16\n\x06height\x18\x02 \x01(\x05R\x06height\x12V\n\tintervals\x18\x03 \x03(\x0b\x32\x38.gml.internal.api.core.v1.CameraMode.Resolution.IntervalR\tintervals\x1a&\n\x08Interval\x12\x1a\n\x08interval\x18\x01 \x01(\x01R\x08interval\"\xb3\x01\n\nCameraInfo\x12>\n\x06\x64river\x18\x01 \x01(\x0e\x32&.gml.internal.api.core.v1.CameraDriverR\x06\x64river\x12)\n\tcamera_id\x18\x02 \x01(\tB\x0c\xe2\xde\x1f\x08\x43\x61meraIDR\x08\x63\x61meraId\x12:\n\x05modes\x18\x03 \x03(\x0b\x32$.gml.internal.api.core.v1.CameraModeR\x05modes\"d\n\x15IREELLVMCPUTargetInfo\x12\x16\n\x06triple\x18\x01 \x01(\tR\x06triple\x12\x10\n\x03\x63pu\x18\x02 \x01(\tR\x03\x63pu\x12!\n\x0c\x63pu_features\x18\x03 \x03(\tR\x0b\x63puFeatures\"(\n\x12IREEROCmTargetInfo\x12\x12\n\x04\x61rch\x18\x01 \x01(\tR\x04\x61rch\"\x9f\x02\n\x0fIREERuntimeInfo\x12\x1b\n\tdevice_id\x18\x01 \x01(\x04R\x08\x64\x65viceId\x12<\n\x06target\x18\x02 \x01(\x0e\x32$.gml.internal.api.core.v1.IREETargetR\x06target\x12Y\n\x10llvm_target_info\x18\x03 \x01(\x0b\x32/.gml.internal.api.core.v1.IREELLVMCPUTargetInfoR\x0ellvmTargetInfo\x12V\n\x10rocm_target_info\x18\x04 \x01(\x0b\x32,.gml.internal.api.core.v1.IREEROCmTargetInfoR\x0erocmTargetInfo\"t\n\x13OpenVINORuntimeInfo\x12\x1b\n\tdevice_id\x18\x01 \x01(\tR\x08\x64\x65viceId\x12@\n\x06target\x18\x02 \x01(\x0e\x32(.gml.internal.api.core.v1.OpenVINOTargetR\x06target\"\xee\x01\n\x10ModelRuntimeInfo\x12>\n\x04type\x18\x01 \x01(\x0e\x32*.gml.internal.api.core.v1.ModelRuntimeTypeR\x04type\x12\x46\n\tiree_info\x18\x02 \x01(\x0b\x32).gml.internal.api.core.v1.IREERuntimeInfoR\x08ireeInfo\x12R\n\ropenvino_info\x18\x03 \x01(\x0b\x32-.gml.internal.api.core.v1.OpenVINORuntimeInfoR\x0copenvinoInfo*Z\n\x0c\x43\x61meraDriver\x12\x19\n\x15\x43\x41MERA_DRIVER_UNKNOWN\x10\x00\x12\x17\n\x13\x43\x41MERA_DRIVER_ARGUS\x10\x01\x12\x16\n\x12\x43\x41MERA_DRIVER_V4L2\x10\x02*\xdf\x01\n\x10ModelRuntimeType\x12\x1e\n\x1aMODEL_RUNTIME_TYPE_UNKNOWN\x10\x00\x12\x1f\n\x1bMODEL_RUNTIME_TYPE_TENSORRT\x10\x01\x12\x1f\n\x1bMODEL_RUNTIME_TYPE_OPENVINO\x10\x02\x12\x1b\n\x17MODEL_RUNTIME_TYPE_IREE\x10\x03\x12,\n(MODEL_RUNTIME_TYPE_HUGGINGFACE_TOKENIZER\x10\x04\x12\x1e\n\x1aMODEL_RUNTIME_TYPE_HAILORT\x10\x05*k\n\nIREETarget\x12\x17\n\x13IREE_TARGET_UNKNOWN\x10\x00\x12\x18\n\x14IREE_TARGET_LLVM_CPU\x10\x01\x12\x14\n\x10IREE_TARGET_ROCM\x10\x02\x12\x14\n\x10IREE_TARGET_VMVX\x10\x03*b\n\x0eOpenVINOTarget\x12\x1c\n\x18OPEN_VINO_TARGET_UNKNOWN\x10\x00\x12\x18\n\x14OPEN_VINO_TARGET_CPU\x10\x01\x12\x18\n\x14OPEN_VINO_TARGET_GPU\x10\x02\x42/Z-gimletlabs.ai/gimlet/src/api/corepb/v1;corepbb\x06proto3')
|
18
18
|
|
19
19
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
20
20
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'src.api.corepb.v1.device_info_pb2', globals())
|
@@ -24,8 +24,14 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
24
|
DESCRIPTOR._serialized_options = b'Z-gimletlabs.ai/gimlet/src/api/corepb/v1;corepb'
|
25
25
|
_CAMERAINFO.fields_by_name['camera_id']._options = None
|
26
26
|
_CAMERAINFO.fields_by_name['camera_id']._serialized_options = b'\342\336\037\010CameraID'
|
27
|
-
_CAMERADRIVER._serialized_start=
|
28
|
-
_CAMERADRIVER._serialized_end=
|
27
|
+
_CAMERADRIVER._serialized_start=1457
|
28
|
+
_CAMERADRIVER._serialized_end=1547
|
29
|
+
_MODELRUNTIMETYPE._serialized_start=1550
|
30
|
+
_MODELRUNTIMETYPE._serialized_end=1773
|
31
|
+
_IREETARGET._serialized_start=1775
|
32
|
+
_IREETARGET._serialized_end=1882
|
33
|
+
_OPENVINOTARGET._serialized_start=1884
|
34
|
+
_OPENVINOTARGET._serialized_end=1982
|
29
35
|
_CAMERADRIVERINFO._serialized_start=87
|
30
36
|
_CAMERADRIVERINFO._serialized_end=169
|
31
37
|
_CAMERAMODE._serialized_start=172
|
@@ -36,8 +42,14 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
36
42
|
_CAMERAMODE_RESOLUTION_INTERVAL._serialized_end=480
|
37
43
|
_CAMERAINFO._serialized_start=483
|
38
44
|
_CAMERAINFO._serialized_end=662
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
45
|
+
_IREELLVMCPUTARGETINFO._serialized_start=664
|
46
|
+
_IREELLVMCPUTARGETINFO._serialized_end=764
|
47
|
+
_IREEROCMTARGETINFO._serialized_start=766
|
48
|
+
_IREEROCMTARGETINFO._serialized_end=806
|
49
|
+
_IREERUNTIMEINFO._serialized_start=809
|
50
|
+
_IREERUNTIMEINFO._serialized_end=1096
|
51
|
+
_OPENVINORUNTIMEINFO._serialized_start=1098
|
52
|
+
_OPENVINORUNTIMEINFO._serialized_end=1214
|
53
|
+
_MODELRUNTIMEINFO._serialized_start=1217
|
54
|
+
_MODELRUNTIMEINFO._serialized_end=1455
|
43
55
|
# @@protoc_insertion_point(module_scope)
|
@@ -12,9 +12,10 @@ _sym_db = _symbol_database.Default()
|
|
12
12
|
|
13
13
|
|
14
14
|
from gml.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2
|
15
|
+
from gml.proto.src.api.corepb.v1 import device_info_pb2 as src_dot_api_dot_corepb_dot_v1_dot_device__info__pb2
|
15
16
|
|
16
17
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"src/api/corepb/v1/gem_config.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\"w\n\x0bVideoSource\x12=\n\x04type\x18\x01 \x01(\x0e\x32).gml.internal.api.core.v1.VideoSourceTypeR\x04type\x12)\n\tsource_id\x18\x02 \x01(\tB\x0c\xe2\xde\x1f\x08SourceIDR\x08sourceId\"\
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"src/api/corepb/v1/gem_config.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\x1a#src/api/corepb/v1/device_info.proto\"w\n\x0bVideoSource\x12=\n\x04type\x18\x01 \x01(\x0e\x32).gml.internal.api.core.v1.VideoSourceTypeR\x04type\x12)\n\tsource_id\x18\x02 \x01(\tB\x0c\xe2\xde\x1f\x08SourceIDR\x08sourceId\"\xbd\x02\n\x12ModelRuntimeConfig\x12>\n\x04type\x18\x01 \x01(\x0e\x32*.gml.internal.api.core.v1.ModelRuntimeTypeR\x04type\x12U\n\x0biree_target\x18\x02 \x01(\x0e\x32$.gml.internal.api.core.v1.IREETargetB\x0e\xe2\xde\x1f\nIREETargetR\nireeTarget\x12\x65\n\x0fopenvino_target\x18\x03 \x01(\x0e\x32(.gml.internal.api.core.v1.OpenVINOTargetB\x12\xe2\xde\x1f\x0eOpenVINOTargetR\x0eopenvinoTarget\x12)\n\tdevice_id\x18\x04 \x01(\tB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\"\xb9\x02\n\tGEMConfig\x12j\n\x13video_source_claims\x18\x01 \x03(\x0b\x32:.gml.internal.api.core.v1.GEMConfig.VideoSourceClaimsEntryR\x11videoSourceClaims\x12S\n\x0emodel_runtimes\x18\x02 \x03(\x0b\x32,.gml.internal.api.core.v1.ModelRuntimeConfigR\rmodelRuntimes\x1ak\n\x16VideoSourceClaimsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.gml.internal.api.core.v1.VideoSourceR\x05value:\x02\x38\x01\"$\n\x0c\x43onfigStatus\x12\x14\n\x05\x65rror\x18\x01 \x01(\tR\x05\x65rror\"\x95\x02\n\x0eGEMConfigState\x12J\n\x0e\x61pplied_config\x18\x01 \x01(\x0b\x32#.gml.internal.api.core.v1.GEMConfigR\rappliedConfig\x12R\n\x08statuses\x18\x02 \x03(\x0b\x32\x36.gml.internal.api.core.v1.GEMConfigState.StatusesEntryR\x08statuses\x1a\x63\n\rStatusesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12<\n\x05value\x18\x02 \x01(\x0b\x32&.gml.internal.api.core.v1.ConfigStatusR\x05value:\x02\x38\x01*\xa4\x01\n\x0fVideoSourceType\x12\x1d\n\x19VIDEO_SOURCE_TYPE_UNKNOWN\x10\x00\x12\x1b\n\x17VIDEO_SOURCE_TYPE_ARGUS\x10\x01\x12\x1a\n\x16VIDEO_SOURCE_TYPE_V4L2\x10\x02\x12\x1a\n\x16VIDEO_SOURCE_TYPE_FILE\x10\x03\x12\x1d\n\x19VIDEO_SOURCE_TYPE_NETWORK\x10\x04\x42/Z-gimletlabs.ai/gimlet/src/api/corepb/v1;corepbb\x06proto3')
|
18
19
|
|
19
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
20
21
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'src.api.corepb.v1.gem_config_pb2', globals())
|
@@ -24,22 +25,30 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
25
|
DESCRIPTOR._serialized_options = b'Z-gimletlabs.ai/gimlet/src/api/corepb/v1;corepb'
|
25
26
|
_VIDEOSOURCE.fields_by_name['source_id']._options = None
|
26
27
|
_VIDEOSOURCE.fields_by_name['source_id']._serialized_options = b'\342\336\037\010SourceID'
|
28
|
+
_MODELRUNTIMECONFIG.fields_by_name['iree_target']._options = None
|
29
|
+
_MODELRUNTIMECONFIG.fields_by_name['iree_target']._serialized_options = b'\342\336\037\nIREETarget'
|
30
|
+
_MODELRUNTIMECONFIG.fields_by_name['openvino_target']._options = None
|
31
|
+
_MODELRUNTIMECONFIG.fields_by_name['openvino_target']._serialized_options = b'\342\336\037\016OpenVINOTarget'
|
32
|
+
_MODELRUNTIMECONFIG.fields_by_name['device_id']._options = None
|
33
|
+
_MODELRUNTIMECONFIG.fields_by_name['device_id']._serialized_options = b'\342\336\037\010DeviceID'
|
27
34
|
_GEMCONFIG_VIDEOSOURCECLAIMSENTRY._options = None
|
28
35
|
_GEMCONFIG_VIDEOSOURCECLAIMSENTRY._serialized_options = b'8\001'
|
29
36
|
_GEMCONFIGSTATE_STATUSESENTRY._options = None
|
30
37
|
_GEMCONFIGSTATE_STATUSESENTRY._serialized_options = b'8\001'
|
31
|
-
_VIDEOSOURCETYPE._serialized_start=
|
32
|
-
_VIDEOSOURCETYPE._serialized_end=
|
33
|
-
_VIDEOSOURCE._serialized_start=
|
34
|
-
_VIDEOSOURCE._serialized_end=
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
38
|
+
_VIDEOSOURCETYPE._serialized_start=1199
|
39
|
+
_VIDEOSOURCETYPE._serialized_end=1363
|
40
|
+
_VIDEOSOURCE._serialized_start=123
|
41
|
+
_VIDEOSOURCE._serialized_end=242
|
42
|
+
_MODELRUNTIMECONFIG._serialized_start=245
|
43
|
+
_MODELRUNTIMECONFIG._serialized_end=562
|
44
|
+
_GEMCONFIG._serialized_start=565
|
45
|
+
_GEMCONFIG._serialized_end=878
|
46
|
+
_GEMCONFIG_VIDEOSOURCECLAIMSENTRY._serialized_start=771
|
47
|
+
_GEMCONFIG_VIDEOSOURCECLAIMSENTRY._serialized_end=878
|
48
|
+
_CONFIGSTATUS._serialized_start=880
|
49
|
+
_CONFIGSTATUS._serialized_end=916
|
50
|
+
_GEMCONFIGSTATE._serialized_start=919
|
51
|
+
_GEMCONFIGSTATE._serialized_end=1196
|
52
|
+
_GEMCONFIGSTATE_STATUSESENTRY._serialized_start=1097
|
53
|
+
_GEMCONFIGSTATE_STATUSESENTRY._serialized_end=1196
|
45
54
|
# @@protoc_insertion_point(module_scope)
|