denkproto 1.0.30__py3-none-any.whl → 1.0.40__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.

Potentially problematic release.


This version of denkproto might be problematic. Click here for more details.

@@ -34,11 +34,21 @@ class DENKcacheStub(object):
34
34
  Args:
35
35
  channel: A grpc.Channel.
36
36
  """
37
+ self.ChangeSettings = channel.unary_unary(
38
+ '/denkcache.DENKcache/ChangeSettings',
39
+ request_serializer=denkcache__pb2.ChangeSettingsRequest.SerializeToString,
40
+ response_deserializer=denkcache__pb2.ChangeSettingsResponse.FromString,
41
+ _registered_method=True)
37
42
  self.PingPong = channel.unary_unary(
38
43
  '/denkcache.DENKcache/PingPong',
39
44
  request_serializer=denkcache__pb2.PingPongRequest.SerializeToString,
40
45
  response_deserializer=denkcache__pb2.PingPongResponse.FromString,
41
46
  _registered_method=True)
47
+ self.InvalidateObject = channel.unary_unary(
48
+ '/denkcache.DENKcache/InvalidateObject',
49
+ request_serializer=denkcache__pb2.InvalidateObjectRequest.SerializeToString,
50
+ response_deserializer=denkcache__pb2.InvalidateObjectResponse.FromString,
51
+ _registered_method=True)
42
52
  self.HasObjectCached = channel.unary_unary(
43
53
  '/denkcache.DENKcache/HasObjectCached',
44
54
  request_serializer=denkcache__pb2.HasObjectCachedRequest.SerializeToString,
@@ -69,12 +79,24 @@ class DENKcacheStub(object):
69
79
  class DENKcacheServicer(object):
70
80
  """Missing associated documentation comment in .proto file."""
71
81
 
82
+ def ChangeSettings(self, request, context):
83
+ """Missing associated documentation comment in .proto file."""
84
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
85
+ context.set_details('Method not implemented!')
86
+ raise NotImplementedError('Method not implemented!')
87
+
72
88
  def PingPong(self, request, context):
73
89
  """Missing associated documentation comment in .proto file."""
74
90
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
75
91
  context.set_details('Method not implemented!')
76
92
  raise NotImplementedError('Method not implemented!')
77
93
 
94
+ def InvalidateObject(self, request, context):
95
+ """Missing associated documentation comment in .proto file."""
96
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
97
+ context.set_details('Method not implemented!')
98
+ raise NotImplementedError('Method not implemented!')
99
+
78
100
  def HasObjectCached(self, request, context):
79
101
  """Missing associated documentation comment in .proto file."""
80
102
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
@@ -108,11 +130,21 @@ class DENKcacheServicer(object):
108
130
 
109
131
  def add_DENKcacheServicer_to_server(servicer, server):
110
132
  rpc_method_handlers = {
133
+ 'ChangeSettings': grpc.unary_unary_rpc_method_handler(
134
+ servicer.ChangeSettings,
135
+ request_deserializer=denkcache__pb2.ChangeSettingsRequest.FromString,
136
+ response_serializer=denkcache__pb2.ChangeSettingsResponse.SerializeToString,
137
+ ),
111
138
  'PingPong': grpc.unary_unary_rpc_method_handler(
112
139
  servicer.PingPong,
113
140
  request_deserializer=denkcache__pb2.PingPongRequest.FromString,
114
141
  response_serializer=denkcache__pb2.PingPongResponse.SerializeToString,
115
142
  ),
143
+ 'InvalidateObject': grpc.unary_unary_rpc_method_handler(
144
+ servicer.InvalidateObject,
145
+ request_deserializer=denkcache__pb2.InvalidateObjectRequest.FromString,
146
+ response_serializer=denkcache__pb2.InvalidateObjectResponse.SerializeToString,
147
+ ),
116
148
  'HasObjectCached': grpc.unary_unary_rpc_method_handler(
117
149
  servicer.HasObjectCached,
118
150
  request_deserializer=denkcache__pb2.HasObjectCachedRequest.FromString,
@@ -149,6 +181,33 @@ def add_DENKcacheServicer_to_server(servicer, server):
149
181
  class DENKcache(object):
150
182
  """Missing associated documentation comment in .proto file."""
151
183
 
184
+ @staticmethod
185
+ def ChangeSettings(request,
186
+ target,
187
+ options=(),
188
+ channel_credentials=None,
189
+ call_credentials=None,
190
+ insecure=False,
191
+ compression=None,
192
+ wait_for_ready=None,
193
+ timeout=None,
194
+ metadata=None):
195
+ return grpc.experimental.unary_unary(
196
+ request,
197
+ target,
198
+ '/denkcache.DENKcache/ChangeSettings',
199
+ denkcache__pb2.ChangeSettingsRequest.SerializeToString,
200
+ denkcache__pb2.ChangeSettingsResponse.FromString,
201
+ options,
202
+ channel_credentials,
203
+ insecure,
204
+ call_credentials,
205
+ compression,
206
+ wait_for_ready,
207
+ timeout,
208
+ metadata,
209
+ _registered_method=True)
210
+
152
211
  @staticmethod
153
212
  def PingPong(request,
154
213
  target,
@@ -176,6 +235,33 @@ class DENKcache(object):
176
235
  metadata,
177
236
  _registered_method=True)
178
237
 
238
+ @staticmethod
239
+ def InvalidateObject(request,
240
+ target,
241
+ options=(),
242
+ channel_credentials=None,
243
+ call_credentials=None,
244
+ insecure=False,
245
+ compression=None,
246
+ wait_for_ready=None,
247
+ timeout=None,
248
+ metadata=None):
249
+ return grpc.experimental.unary_unary(
250
+ request,
251
+ target,
252
+ '/denkcache.DENKcache/InvalidateObject',
253
+ denkcache__pb2.InvalidateObjectRequest.SerializeToString,
254
+ denkcache__pb2.InvalidateObjectResponse.FromString,
255
+ options,
256
+ channel_credentials,
257
+ insecure,
258
+ call_credentials,
259
+ compression,
260
+ wait_for_ready,
261
+ timeout,
262
+ metadata,
263
+ _registered_method=True)
264
+
179
265
  @staticmethod
180
266
  def HasObjectCached(request,
181
267
  target,
@@ -0,0 +1,68 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: inference_graph.proto
5
+ # Protobuf Python Version: 5.28.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 1,
17
+ '',
18
+ 'inference_graph.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ import modelfile_v2_pb2 as modelfile__v2__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15inference_graph.proto\x12\x0finference_graph\x1a\x12modelfile-v2.proto\"\x8d\x01\n\x0bModelSource\x12-\n\nfrom_proto\x18\x01 \x01(\x0b\x32\x17.modelfile.v2.ModelFileH\x00\x12\x19\n\x0f\x66rom_network_id\x18\x02 \x01(\tH\x00\x12$\n\x1a\x66rom_network_experiment_id\x18\x03 \x01(\tH\x00\x42\x0e\n\x0cmodel_source\"\xec\x02\n\x0f\x43onstTensorNode\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\x12\r\n\x05shape\x18\x03 \x03(\r\x12\x43\n\x0buint64_data\x18\x04 \x01(\x0b\x32,.inference_graph.ConstTensorNode.Uint64ArrayH\x00\x12\x41\n\nint64_data\x18\x05 \x01(\x0b\x32+.inference_graph.ConstTensorNode.Int64ArrayH\x00\x12\x45\n\x0c\x66loat64_data\x18\x06 \x01(\x0b\x32-.inference_graph.ConstTensorNode.Float64ArrayH\x00\x1a\x1b\n\x0bUint64Array\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\r\x1a\x1a\n\nInt64Array\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\x11\x1a\x1c\n\x0c\x46loat64Array\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\x01\x42\x06\n\x04\x64\x61ta\"L\n\x12GenerateNumberNode\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\x12\x0b\n\x03min\x18\x03 \x01(\r\x12\x0b\n\x03max\x18\x04 \x01(\r\"^\n\x0e\x41\x64\x64NumbersNode\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0einput_number_1\x18\x02 \x01(\t\x12\x16\n\x0einput_number_2\x18\x03 \x01(\t\x12\x0e\n\x06output\x18\x04 \x01(\t\"X\n\x0fImageResizeNode\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\ninput_size\x18\x02 \x01(\t\x12\x13\n\x0binput_image\x18\x03 \x01(\t\x12\x0e\n\x06output\x18\x04 \x01(\t\"\xb0\x01\n\x10ImagePatchesNode\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0binput_image\x18\x02 \x01(\t\x12\x13\n\x0binput_boxes\x18\x03 \x01(\t\x12\x17\n\x0finput_batch_map\x18\x04 \x01(\t\x12\x19\n\x11input_target_size\x18\x05 \x01(\t\x12 \n\x18input_maximum_iterations\x18\x06 \x01(\t\x12\x0e\n\x06output\x18\x07 \x01(\t\"?\n\x11VirtualCameraNode\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\x12\x0c\n\x04path\x18\x03 \x01(\t\"z\n\x17ImageClassificationNode\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05input\x18\x02 \x01(\t\x12\x0e\n\x06output\x18\x03 \x01(\t\x12\x32\n\x0cmodel_source\x18\x04 \x01(\x0b\x32\x1c.inference_graph.ModelSource\"{\n\x18ImageObjectDetectionNode\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05input\x18\x02 \x01(\t\x12\x0e\n\x06output\x18\x03 \x01(\t\x12\x32\n\x0cmodel_source\x18\x04 \x01(\x0b\x32\x1c.inference_graph.ModelSource\"o\n\x0cImageOcrNode\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05input\x18\x02 \x01(\t\x12\x0e\n\x06output\x18\x03 \x01(\t\x12\x32\n\x0cmodel_source\x18\x04 \x01(\x0b\x32\x1c.inference_graph.ModelSource\"\x83\x01\n\x15\x42oundingBoxFilterNode\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x0finput_threshold\x18\x02 \x01(\t\x12\x13\n\x0binput_boxes\x18\x03 \x01(\t\x12\x14\n\x0coutput_boxes\x18\x04 \x01(\t\x12\x18\n\x10output_batch_map\x18\x05 \x01(\t\"\xbc\x05\n\x04Node\x12=\n\x11\x63onst_tensor_node\x18\x01 \x01(\x0b\x32 .inference_graph.ConstTensorNodeH\x00\x12\x43\n\x14generate_number_node\x18\x02 \x01(\x0b\x32#.inference_graph.GenerateNumberNodeH\x00\x12;\n\x10\x61\x64\x64_numbers_node\x18\x03 \x01(\x0b\x32\x1f.inference_graph.AddNumbersNodeH\x00\x12=\n\x11image_resize_node\x18\x04 \x01(\x0b\x32 .inference_graph.ImageResizeNodeH\x00\x12?\n\x12image_patches_node\x18\x05 \x01(\x0b\x32!.inference_graph.ImagePatchesNodeH\x00\x12\x41\n\x13virtual_camera_node\x18\x06 \x01(\x0b\x32\".inference_graph.VirtualCameraNodeH\x00\x12M\n\x19image_classification_node\x18\x07 \x01(\x0b\x32(.inference_graph.ImageClassificationNodeH\x00\x12P\n\x1bimage_object_detection_node\x18\x08 \x01(\x0b\x32).inference_graph.ImageObjectDetectionNodeH\x00\x12\x37\n\x0eimage_ocr_node\x18\t \x01(\x0b\x32\x1d.inference_graph.ImageOcrNodeH\x00\x12J\n\x18\x62ounding_box_filter_node\x18\n \x01(\x0b\x32&.inference_graph.BoundingBoxFilterNodeH\x00\x42\n\n\x08NodeType\"U\n\x05Graph\x12$\n\x05nodes\x18\x01 \x03(\x0b\x32\x15.inference_graph.Node\x12\x12\n\ncreated_at\x18\x02 \x01(\r\x12\x12\n\nlicense_id\x18\x03 \x01(\tB:Z\x1c\x64\x65nkproto-go/inference_graph\xaa\x02\x19\x44\x45NK.Proto.InferenceGraphb\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'inference_graph_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'Z\034denkproto-go/inference_graph\252\002\031DENK.Proto.InferenceGraph'
36
+ _globals['_MODELSOURCE']._serialized_start=63
37
+ _globals['_MODELSOURCE']._serialized_end=204
38
+ _globals['_CONSTTENSORNODE']._serialized_start=207
39
+ _globals['_CONSTTENSORNODE']._serialized_end=571
40
+ _globals['_CONSTTENSORNODE_UINT64ARRAY']._serialized_start=478
41
+ _globals['_CONSTTENSORNODE_UINT64ARRAY']._serialized_end=505
42
+ _globals['_CONSTTENSORNODE_INT64ARRAY']._serialized_start=507
43
+ _globals['_CONSTTENSORNODE_INT64ARRAY']._serialized_end=533
44
+ _globals['_CONSTTENSORNODE_FLOAT64ARRAY']._serialized_start=535
45
+ _globals['_CONSTTENSORNODE_FLOAT64ARRAY']._serialized_end=563
46
+ _globals['_GENERATENUMBERNODE']._serialized_start=573
47
+ _globals['_GENERATENUMBERNODE']._serialized_end=649
48
+ _globals['_ADDNUMBERSNODE']._serialized_start=651
49
+ _globals['_ADDNUMBERSNODE']._serialized_end=745
50
+ _globals['_IMAGERESIZENODE']._serialized_start=747
51
+ _globals['_IMAGERESIZENODE']._serialized_end=835
52
+ _globals['_IMAGEPATCHESNODE']._serialized_start=838
53
+ _globals['_IMAGEPATCHESNODE']._serialized_end=1014
54
+ _globals['_VIRTUALCAMERANODE']._serialized_start=1016
55
+ _globals['_VIRTUALCAMERANODE']._serialized_end=1079
56
+ _globals['_IMAGECLASSIFICATIONNODE']._serialized_start=1081
57
+ _globals['_IMAGECLASSIFICATIONNODE']._serialized_end=1203
58
+ _globals['_IMAGEOBJECTDETECTIONNODE']._serialized_start=1205
59
+ _globals['_IMAGEOBJECTDETECTIONNODE']._serialized_end=1328
60
+ _globals['_IMAGEOCRNODE']._serialized_start=1330
61
+ _globals['_IMAGEOCRNODE']._serialized_end=1441
62
+ _globals['_BOUNDINGBOXFILTERNODE']._serialized_start=1444
63
+ _globals['_BOUNDINGBOXFILTERNODE']._serialized_end=1575
64
+ _globals['_NODE']._serialized_start=1578
65
+ _globals['_NODE']._serialized_end=2278
66
+ _globals['_GRAPH']._serialized_start=2280
67
+ _globals['_GRAPH']._serialized_end=2365
68
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,196 @@
1
+ import modelfile_v2_pb2 as _modelfile_v2_pb2
2
+ from google.protobuf.internal import containers as _containers
3
+ from google.protobuf import descriptor as _descriptor
4
+ from google.protobuf import message as _message
5
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
6
+
7
+ DESCRIPTOR: _descriptor.FileDescriptor
8
+
9
+ class ModelSource(_message.Message):
10
+ __slots__ = ("from_proto", "from_network_id", "from_network_experiment_id")
11
+ FROM_PROTO_FIELD_NUMBER: _ClassVar[int]
12
+ FROM_NETWORK_ID_FIELD_NUMBER: _ClassVar[int]
13
+ FROM_NETWORK_EXPERIMENT_ID_FIELD_NUMBER: _ClassVar[int]
14
+ from_proto: _modelfile_v2_pb2.ModelFile
15
+ from_network_id: str
16
+ from_network_experiment_id: str
17
+ def __init__(self, from_proto: _Optional[_Union[_modelfile_v2_pb2.ModelFile, _Mapping]] = ..., from_network_id: _Optional[str] = ..., from_network_experiment_id: _Optional[str] = ...) -> None: ...
18
+
19
+ class ConstTensorNode(_message.Message):
20
+ __slots__ = ("name", "output", "shape", "uint64_data", "int64_data", "float64_data")
21
+ class Uint64Array(_message.Message):
22
+ __slots__ = ("data",)
23
+ DATA_FIELD_NUMBER: _ClassVar[int]
24
+ data: _containers.RepeatedScalarFieldContainer[int]
25
+ def __init__(self, data: _Optional[_Iterable[int]] = ...) -> None: ...
26
+ class Int64Array(_message.Message):
27
+ __slots__ = ("data",)
28
+ DATA_FIELD_NUMBER: _ClassVar[int]
29
+ data: _containers.RepeatedScalarFieldContainer[int]
30
+ def __init__(self, data: _Optional[_Iterable[int]] = ...) -> None: ...
31
+ class Float64Array(_message.Message):
32
+ __slots__ = ("data",)
33
+ DATA_FIELD_NUMBER: _ClassVar[int]
34
+ data: _containers.RepeatedScalarFieldContainer[float]
35
+ def __init__(self, data: _Optional[_Iterable[float]] = ...) -> None: ...
36
+ NAME_FIELD_NUMBER: _ClassVar[int]
37
+ OUTPUT_FIELD_NUMBER: _ClassVar[int]
38
+ SHAPE_FIELD_NUMBER: _ClassVar[int]
39
+ UINT64_DATA_FIELD_NUMBER: _ClassVar[int]
40
+ INT64_DATA_FIELD_NUMBER: _ClassVar[int]
41
+ FLOAT64_DATA_FIELD_NUMBER: _ClassVar[int]
42
+ name: str
43
+ output: str
44
+ shape: _containers.RepeatedScalarFieldContainer[int]
45
+ uint64_data: ConstTensorNode.Uint64Array
46
+ int64_data: ConstTensorNode.Int64Array
47
+ float64_data: ConstTensorNode.Float64Array
48
+ def __init__(self, name: _Optional[str] = ..., output: _Optional[str] = ..., shape: _Optional[_Iterable[int]] = ..., uint64_data: _Optional[_Union[ConstTensorNode.Uint64Array, _Mapping]] = ..., int64_data: _Optional[_Union[ConstTensorNode.Int64Array, _Mapping]] = ..., float64_data: _Optional[_Union[ConstTensorNode.Float64Array, _Mapping]] = ...) -> None: ...
49
+
50
+ class GenerateNumberNode(_message.Message):
51
+ __slots__ = ("name", "output", "min", "max")
52
+ NAME_FIELD_NUMBER: _ClassVar[int]
53
+ OUTPUT_FIELD_NUMBER: _ClassVar[int]
54
+ MIN_FIELD_NUMBER: _ClassVar[int]
55
+ MAX_FIELD_NUMBER: _ClassVar[int]
56
+ name: str
57
+ output: str
58
+ min: int
59
+ max: int
60
+ def __init__(self, name: _Optional[str] = ..., output: _Optional[str] = ..., min: _Optional[int] = ..., max: _Optional[int] = ...) -> None: ...
61
+
62
+ class AddNumbersNode(_message.Message):
63
+ __slots__ = ("name", "input_number_1", "input_number_2", "output")
64
+ NAME_FIELD_NUMBER: _ClassVar[int]
65
+ INPUT_NUMBER_1_FIELD_NUMBER: _ClassVar[int]
66
+ INPUT_NUMBER_2_FIELD_NUMBER: _ClassVar[int]
67
+ OUTPUT_FIELD_NUMBER: _ClassVar[int]
68
+ name: str
69
+ input_number_1: str
70
+ input_number_2: str
71
+ output: str
72
+ def __init__(self, name: _Optional[str] = ..., input_number_1: _Optional[str] = ..., input_number_2: _Optional[str] = ..., output: _Optional[str] = ...) -> None: ...
73
+
74
+ class ImageResizeNode(_message.Message):
75
+ __slots__ = ("name", "input_size", "input_image", "output")
76
+ NAME_FIELD_NUMBER: _ClassVar[int]
77
+ INPUT_SIZE_FIELD_NUMBER: _ClassVar[int]
78
+ INPUT_IMAGE_FIELD_NUMBER: _ClassVar[int]
79
+ OUTPUT_FIELD_NUMBER: _ClassVar[int]
80
+ name: str
81
+ input_size: str
82
+ input_image: str
83
+ output: str
84
+ def __init__(self, name: _Optional[str] = ..., input_size: _Optional[str] = ..., input_image: _Optional[str] = ..., output: _Optional[str] = ...) -> None: ...
85
+
86
+ class ImagePatchesNode(_message.Message):
87
+ __slots__ = ("name", "input_image", "input_boxes", "input_batch_map", "input_target_size", "input_maximum_iterations", "output")
88
+ NAME_FIELD_NUMBER: _ClassVar[int]
89
+ INPUT_IMAGE_FIELD_NUMBER: _ClassVar[int]
90
+ INPUT_BOXES_FIELD_NUMBER: _ClassVar[int]
91
+ INPUT_BATCH_MAP_FIELD_NUMBER: _ClassVar[int]
92
+ INPUT_TARGET_SIZE_FIELD_NUMBER: _ClassVar[int]
93
+ INPUT_MAXIMUM_ITERATIONS_FIELD_NUMBER: _ClassVar[int]
94
+ OUTPUT_FIELD_NUMBER: _ClassVar[int]
95
+ name: str
96
+ input_image: str
97
+ input_boxes: str
98
+ input_batch_map: str
99
+ input_target_size: str
100
+ input_maximum_iterations: str
101
+ output: str
102
+ def __init__(self, name: _Optional[str] = ..., input_image: _Optional[str] = ..., input_boxes: _Optional[str] = ..., input_batch_map: _Optional[str] = ..., input_target_size: _Optional[str] = ..., input_maximum_iterations: _Optional[str] = ..., output: _Optional[str] = ...) -> None: ...
103
+
104
+ class VirtualCameraNode(_message.Message):
105
+ __slots__ = ("name", "output", "path")
106
+ NAME_FIELD_NUMBER: _ClassVar[int]
107
+ OUTPUT_FIELD_NUMBER: _ClassVar[int]
108
+ PATH_FIELD_NUMBER: _ClassVar[int]
109
+ name: str
110
+ output: str
111
+ path: str
112
+ def __init__(self, name: _Optional[str] = ..., output: _Optional[str] = ..., path: _Optional[str] = ...) -> None: ...
113
+
114
+ class ImageClassificationNode(_message.Message):
115
+ __slots__ = ("name", "input", "output", "model_source")
116
+ NAME_FIELD_NUMBER: _ClassVar[int]
117
+ INPUT_FIELD_NUMBER: _ClassVar[int]
118
+ OUTPUT_FIELD_NUMBER: _ClassVar[int]
119
+ MODEL_SOURCE_FIELD_NUMBER: _ClassVar[int]
120
+ name: str
121
+ input: str
122
+ output: str
123
+ model_source: ModelSource
124
+ def __init__(self, name: _Optional[str] = ..., input: _Optional[str] = ..., output: _Optional[str] = ..., model_source: _Optional[_Union[ModelSource, _Mapping]] = ...) -> None: ...
125
+
126
+ class ImageObjectDetectionNode(_message.Message):
127
+ __slots__ = ("name", "input", "output", "model_source")
128
+ NAME_FIELD_NUMBER: _ClassVar[int]
129
+ INPUT_FIELD_NUMBER: _ClassVar[int]
130
+ OUTPUT_FIELD_NUMBER: _ClassVar[int]
131
+ MODEL_SOURCE_FIELD_NUMBER: _ClassVar[int]
132
+ name: str
133
+ input: str
134
+ output: str
135
+ model_source: ModelSource
136
+ def __init__(self, name: _Optional[str] = ..., input: _Optional[str] = ..., output: _Optional[str] = ..., model_source: _Optional[_Union[ModelSource, _Mapping]] = ...) -> None: ...
137
+
138
+ class ImageOcrNode(_message.Message):
139
+ __slots__ = ("name", "input", "output", "model_source")
140
+ NAME_FIELD_NUMBER: _ClassVar[int]
141
+ INPUT_FIELD_NUMBER: _ClassVar[int]
142
+ OUTPUT_FIELD_NUMBER: _ClassVar[int]
143
+ MODEL_SOURCE_FIELD_NUMBER: _ClassVar[int]
144
+ name: str
145
+ input: str
146
+ output: str
147
+ model_source: ModelSource
148
+ def __init__(self, name: _Optional[str] = ..., input: _Optional[str] = ..., output: _Optional[str] = ..., model_source: _Optional[_Union[ModelSource, _Mapping]] = ...) -> None: ...
149
+
150
+ class BoundingBoxFilterNode(_message.Message):
151
+ __slots__ = ("name", "input_threshold", "input_boxes", "output_boxes", "output_batch_map")
152
+ NAME_FIELD_NUMBER: _ClassVar[int]
153
+ INPUT_THRESHOLD_FIELD_NUMBER: _ClassVar[int]
154
+ INPUT_BOXES_FIELD_NUMBER: _ClassVar[int]
155
+ OUTPUT_BOXES_FIELD_NUMBER: _ClassVar[int]
156
+ OUTPUT_BATCH_MAP_FIELD_NUMBER: _ClassVar[int]
157
+ name: str
158
+ input_threshold: str
159
+ input_boxes: str
160
+ output_boxes: str
161
+ output_batch_map: str
162
+ def __init__(self, name: _Optional[str] = ..., input_threshold: _Optional[str] = ..., input_boxes: _Optional[str] = ..., output_boxes: _Optional[str] = ..., output_batch_map: _Optional[str] = ...) -> None: ...
163
+
164
+ class Node(_message.Message):
165
+ __slots__ = ("const_tensor_node", "generate_number_node", "add_numbers_node", "image_resize_node", "image_patches_node", "virtual_camera_node", "image_classification_node", "image_object_detection_node", "image_ocr_node", "bounding_box_filter_node")
166
+ CONST_TENSOR_NODE_FIELD_NUMBER: _ClassVar[int]
167
+ GENERATE_NUMBER_NODE_FIELD_NUMBER: _ClassVar[int]
168
+ ADD_NUMBERS_NODE_FIELD_NUMBER: _ClassVar[int]
169
+ IMAGE_RESIZE_NODE_FIELD_NUMBER: _ClassVar[int]
170
+ IMAGE_PATCHES_NODE_FIELD_NUMBER: _ClassVar[int]
171
+ VIRTUAL_CAMERA_NODE_FIELD_NUMBER: _ClassVar[int]
172
+ IMAGE_CLASSIFICATION_NODE_FIELD_NUMBER: _ClassVar[int]
173
+ IMAGE_OBJECT_DETECTION_NODE_FIELD_NUMBER: _ClassVar[int]
174
+ IMAGE_OCR_NODE_FIELD_NUMBER: _ClassVar[int]
175
+ BOUNDING_BOX_FILTER_NODE_FIELD_NUMBER: _ClassVar[int]
176
+ const_tensor_node: ConstTensorNode
177
+ generate_number_node: GenerateNumberNode
178
+ add_numbers_node: AddNumbersNode
179
+ image_resize_node: ImageResizeNode
180
+ image_patches_node: ImagePatchesNode
181
+ virtual_camera_node: VirtualCameraNode
182
+ image_classification_node: ImageClassificationNode
183
+ image_object_detection_node: ImageObjectDetectionNode
184
+ image_ocr_node: ImageOcrNode
185
+ bounding_box_filter_node: BoundingBoxFilterNode
186
+ def __init__(self, const_tensor_node: _Optional[_Union[ConstTensorNode, _Mapping]] = ..., generate_number_node: _Optional[_Union[GenerateNumberNode, _Mapping]] = ..., add_numbers_node: _Optional[_Union[AddNumbersNode, _Mapping]] = ..., image_resize_node: _Optional[_Union[ImageResizeNode, _Mapping]] = ..., image_patches_node: _Optional[_Union[ImagePatchesNode, _Mapping]] = ..., virtual_camera_node: _Optional[_Union[VirtualCameraNode, _Mapping]] = ..., image_classification_node: _Optional[_Union[ImageClassificationNode, _Mapping]] = ..., image_object_detection_node: _Optional[_Union[ImageObjectDetectionNode, _Mapping]] = ..., image_ocr_node: _Optional[_Union[ImageOcrNode, _Mapping]] = ..., bounding_box_filter_node: _Optional[_Union[BoundingBoxFilterNode, _Mapping]] = ...) -> None: ...
187
+
188
+ class Graph(_message.Message):
189
+ __slots__ = ("nodes", "created_at", "license_id")
190
+ NODES_FIELD_NUMBER: _ClassVar[int]
191
+ CREATED_AT_FIELD_NUMBER: _ClassVar[int]
192
+ LICENSE_ID_FIELD_NUMBER: _ClassVar[int]
193
+ nodes: _containers.RepeatedCompositeFieldContainer[Node]
194
+ created_at: int
195
+ license_id: str
196
+ def __init__(self, nodes: _Optional[_Iterable[_Union[Node, _Mapping]]] = ..., created_at: _Optional[int] = ..., license_id: _Optional[str] = ...) -> None: ...
@@ -0,0 +1,24 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.68.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + f' but the generated code in inference_graph_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
24
24
 
25
25
 
26
26
 
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12modelfile-v2.proto\x12\x0cmodelfile.v2\"\xf8!\n\tModelFile\x12\x39\n\x10protocol_version\x18\x01 \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Version\x12\x12\n\ncreated_at\x18\x02 \x01(\x03\x12\x33\n\tfile_info\x18\x03 \x01(\x0b\x32 .modelfile.v2.ModelFile.FileInfo\x12\x30\n\x07\x63ontent\x18\x04 \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Content\x12\x38\n\x0c\x63lass_labels\x18\x05 \x03(\x0b\x32\".modelfile.v2.ModelFile.ClassLabel\x12-\n\x06inputs\x18\x06 \x03(\x0b\x32\x1d.modelfile.v2.ModelFile.Input\x12/\n\x07outputs\x18\x07 \x03(\x0b\x32\x1e.modelfile.v2.ModelFile.Output\x12J\n\x12\x61\x64\x64itional_content\x18\x08 \x03(\x0b\x32..modelfile.v2.ModelFile.AdditionalContentEntry\x1a\x36\n\x07Version\x12\r\n\x05major\x18\x01 \x01(\r\x12\r\n\x05minor\x18\x02 \x01(\r\x12\r\n\x05patch\x18\x03 \x01(\r\x1a\xaa\x04\n\x07\x43ontent\x12\x14\n\x0c\x62yte_content\x18\x01 \x01(\x0c\x12\x13\n\x0bhash_sha256\x18\x02 \x01(\x0c\x12M\n\x12\x63ompression_method\x18\x03 \x01(\x0e\x32\x31.modelfile.v2.ModelFile.Content.CompressionMethod\x12K\n\x11\x65ncryption_method\x18\x04 \x01(\x0e\x32\x30.modelfile.v2.ModelFile.Content.EncryptionMethod\x12@\n\tkey_slots\x18\x05 \x03(\x0b\x32-.modelfile.v2.ModelFile.Content.KeySlotsEntry\x1ai\n\x07KeySlot\x12\x13\n\x0bwrapped_key\x18\x01 \x01(\x0c\x12I\n\x0fwrapping_method\x18\x02 \x01(\x0e\x32\x30.modelfile.v2.ModelFile.Content.EncryptionMethod\x1aX\n\rKeySlotsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.modelfile.v2.ModelFile.Content.KeySlot:\x02\x38\x01\" \n\x11\x43ompressionMethod\x12\x0b\n\x07\x43M_NONE\x10\x00\"/\n\x10\x45ncryptionMethod\x12\x0b\n\x07\x45M_NONE\x10\x00\x12\x0e\n\nEM_AES_GCM\x10\x01\x1aU\n\nClassLabel\x12\x16\n\x0e\x63lass_label_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x12\n\nshort_name\x18\x03 \x01(\t\x12\r\n\x05\x63olor\x18\x04 \x01(\t\x1a<\n\tImageSize\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\x12\x10\n\x08\x63hannels\x18\x03 \x01(\r\x1aJ\n\x0eRegionFromEdge\x12\x0c\n\x04left\x18\x01 \x01(\x01\x12\r\n\x05right\x18\x02 \x01(\x01\x12\x0b\n\x03top\x18\x03 \x01(\x01\x12\x0e\n\x06\x62ottom\x18\x04 \x01(\x01\x1a\xe2\x05\n\x05Input\x12\x46\n\x0cimage_format\x18\x01 \x01(\x0b\x32..modelfile.v2.ModelFile.Input.ImageInputFormatH\x00\x1a\xfb\x04\n\x10ImageInputFormat\x12\x64\n\x10\x65xact_image_size\x18\x01 \x01(\x0b\x32H.modelfile.v2.ModelFile.Input.ImageInputFormat.ExactImageSizeRequirementH\x00\x12l\n\x14\x64ivisible_image_size\x18\x02 \x01(\x0b\x32L.modelfile.v2.ModelFile.Input.ImageInputFormat.DivisibleImageSizeRequirementH\x00\x12\x42\n\x12region_of_interest\x18\x03 \x01(\x0b\x32&.modelfile.v2.ModelFile.RegionFromEdge\x1aR\n\x19\x45xactImageSizeRequirement\x12\x35\n\nimage_size\x18\x01 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x1a\xdf\x01\n\x1d\x44ivisibleImageSizeRequirement\x12>\n\x13image_size_divisors\x18\x01 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x12=\n\x12minimum_image_size\x18\x02 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x12?\n\x14suggested_image_size\x18\x03 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSizeB\x19\n\x17image_size_requirementsB\x13\n\x11\x46ormatInformation\x1a\xb0\n\n\x06Output\x12_\n\x18image_classifiers_format\x18\x01 \x01(\x0b\x32;.modelfile.v2.ModelFile.Output.ImageClassifiersOutputFormatH\x00\x12_\n\x18segmentation_maps_format\x18\x02 \x01(\x0b\x32;.modelfile.v2.ModelFile.Output.SegmentationMapsOutputFormatH\x00\x12Y\n\x15\x62ounding_boxes_format\x18\x03 \x01(\x0b\x32\x38.modelfile.v2.ModelFile.Output.BoundingBoxesOutputFormatH\x00\x12p\n!bounding_box_segmentations_format\x18\x04 \x01(\x0b\x32\x43.modelfile.v2.ModelFile.Output.BoundingBoxSegmentationsOutputFormatH\x00\x12\x44\n\nocr_format\x18\x05 \x01(\x0b\x32..modelfile.v2.ModelFile.Output.OcrOutputFormatH\x00\x1a\x1e\n\x1cImageClassifiersOutputFormat\x1aU\n\x1cSegmentationMapsOutputFormat\x12\x35\n\nimage_size\x18\x01 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x1a\xcd\x01\n\x19\x42oundingBoxesOutputFormat\x12\x17\n\x0fnumber_of_boxes\x18\x01 \x01(\x04\x12\x0e\n\x06stride\x18\x02 \x01(\x04\x12\x11\n\tx1_offset\x18\x03 \x01(\x04\x12\x11\n\ty1_offset\x18\x04 \x01(\x04\x12\x11\n\tx2_offset\x18\x05 \x01(\x04\x12\x11\n\ty2_offset\x18\x06 \x01(\x04\x12\x19\n\x11\x63onfidence_offset\x18\x07 \x01(\x04\x12 \n\x18\x63lass_label_index_offset\x18\x08 \x01(\x04\x1a\x7f\n$BoundingBoxSegmentationsOutputFormat\x12\x35\n\nimage_size\x18\x01 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x12 \n\x18relative_to_bounding_box\x18\x02 \x01(\x08\x1a\xf3\x02\n\x0fOcrOutputFormat\x12\x1c\n\x14number_of_characters\x18\x01 \x01(\x04\x12L\n\ncharacters\x18\x02 \x03(\x0b\x32\x38.modelfile.v2.ModelFile.Output.OcrOutputFormat.Character\x1a\xf3\x01\n\tCharacter\x12\x1b\n\x13utf8_representation\x18\x01 \x01(\x0c\x12^\n\x0e\x63haracter_type\x18\x02 \x01(\x0e\x32\x46.modelfile.v2.ModelFile.Output.OcrOutputFormat.Character.CharacterType\x12\x0e\n\x06ignore\x18\x03 \x01(\x08\"Y\n\rCharacterType\x12\x0e\n\nCT_REGULAR\x10\x00\x12\x14\n\x10\x43T_START_OF_TEXT\x10\x01\x12\x12\n\x0e\x43T_END_OF_TEXT\x10\x02\x12\x0e\n\nCT_PADDING\x10\x03\x42\x13\n\x11\x46ormatInformation\x1a\x95\x07\n\x08\x46ileInfo\x12<\n\tfile_type\x18\x01 \x01(\x0e\x32).modelfile.v2.ModelFile.FileInfo.FileType\x12\x14\n\x0cnetwork_name\x18\x02 \x01(\t\x12\x12\n\nnetwork_id\x18\x03 \x01(\t\x12\x1d\n\x15network_experiment_id\x18\x04 \x01(\t\x12\x1b\n\x13network_snapshot_id\x18\x05 \x01(\t\x12\x42\n\x0cnetwork_type\x18\x06 \x01(\x0e\x32,.modelfile.v2.ModelFile.FileInfo.NetworkType\x12\x16\n\x0enetwork_flavor\x18\x07 \x01(\t\x12\x38\n\x0fnetwork_version\x18\x08 \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Version\x12\x38\n\x0fruntime_version\x18\t \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Version\x12=\n\tprecision\x18\n \x01(\x0e\x32*.modelfile.v2.ModelFile.FileInfo.Precision\"D\n\x08\x46ileType\x12\x11\n\rFT_ONNX_MODEL\x10\x00\x12\x10\n\x0c\x46T_ZXING_KEY\x10\x01\x12\x13\n\x0f\x46T_VIZIOTIX_KEY\x10\x02\"\xc0\x01\n\x0bNetworkType\x12\x0e\n\nNT_UNKNOWN\x10\x00\x12\x15\n\x11NT_CLASSIFICATION\x10\x01\x12\x13\n\x0fNT_SEGMENTATION\x10\x02\x12\x1c\n\x18NT_INSTANCE_SEGMENTATION\x10\x03\x12\x17\n\x13NT_OBJECT_DETECTION\x10\x04\x12\x18\n\x14NT_ANOMALY_DETECTION\x10\x05\x12$\n NT_OPTICAL_CHARACTER_RECOGNITION\x10\x06\"\xcc\x01\n\tPrecision\x12\x0f\n\x0bP_UNDEFINED\x10\x00\x12\t\n\x05P_FP8\x10\x01\x12\n\n\x06P_FP16\x10\x02\x12\n\n\x06P_FP32\x10\x03\x12\n\n\x06P_FP64\x10\x04\x12\n\n\x06P_INT8\x10\x05\x12\x0b\n\x07P_INT16\x10\x06\x12\x0b\n\x07P_INT32\x10\x07\x12\x0b\n\x07P_INT64\x10\x08\x12\x0b\n\x07P_UINT8\x10\t\x12\x0c\n\x08P_UINT16\x10\n\x12\x0c\n\x08P_UINT32\x10\x0b\x12\x0c\n\x08P_UINT64\x10\x0c\x12\x15\n\x11P_MIXED_PRECISION\x10\r\x1aY\n\x16\x41\x64\x64itionalContentEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Content:\x02\x38\x01\x42\x35Z\x19\x64\x65nkproto-go/modelfile/v2\xaa\x02\x17\x44\x45NK.Proto.Modelfile.V2b\x06proto3')
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12modelfile-v2.proto\x12\x0cmodelfile.v2\"\xbe\"\n\tModelFile\x12\x39\n\x10protocol_version\x18\x01 \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Version\x12\x12\n\ncreated_at\x18\x02 \x01(\r\x12\x33\n\tfile_info\x18\x03 \x01(\x0b\x32 .modelfile.v2.ModelFile.FileInfo\x12\x30\n\x07\x63ontent\x18\x04 \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Content\x12\x38\n\x0c\x63lass_labels\x18\x05 \x03(\x0b\x32\".modelfile.v2.ModelFile.ClassLabel\x12-\n\x06inputs\x18\x06 \x03(\x0b\x32\x1d.modelfile.v2.ModelFile.Input\x12/\n\x07outputs\x18\x07 \x03(\x0b\x32\x1e.modelfile.v2.ModelFile.Output\x12J\n\x12\x61\x64\x64itional_content\x18\x08 \x03(\x0b\x32..modelfile.v2.ModelFile.AdditionalContentEntry\x1a\x36\n\x07Version\x12\r\n\x05major\x18\x01 \x01(\r\x12\r\n\x05minor\x18\x02 \x01(\r\x12\r\n\x05patch\x18\x03 \x01(\r\x1a\xaa\x04\n\x07\x43ontent\x12\x14\n\x0c\x62yte_content\x18\x01 \x01(\x0c\x12\x13\n\x0bhash_sha256\x18\x02 \x01(\x0c\x12M\n\x12\x63ompression_method\x18\x03 \x01(\x0e\x32\x31.modelfile.v2.ModelFile.Content.CompressionMethod\x12K\n\x11\x65ncryption_method\x18\x04 \x01(\x0e\x32\x30.modelfile.v2.ModelFile.Content.EncryptionMethod\x12@\n\tkey_slots\x18\x05 \x03(\x0b\x32-.modelfile.v2.ModelFile.Content.KeySlotsEntry\x1ai\n\x07KeySlot\x12\x13\n\x0bwrapped_key\x18\x01 \x01(\x0c\x12I\n\x0fwrapping_method\x18\x02 \x01(\x0e\x32\x30.modelfile.v2.ModelFile.Content.EncryptionMethod\x1aX\n\rKeySlotsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.modelfile.v2.ModelFile.Content.KeySlot:\x02\x38\x01\" \n\x11\x43ompressionMethod\x12\x0b\n\x07\x43M_NONE\x10\x00\"/\n\x10\x45ncryptionMethod\x12\x0b\n\x07\x45M_NONE\x10\x00\x12\x0e\n\nEM_AES_GCM\x10\x01\x1aU\n\nClassLabel\x12\x16\n\x0e\x63lass_label_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x12\n\nshort_name\x18\x03 \x01(\t\x12\r\n\x05\x63olor\x18\x04 \x01(\t\x1a<\n\tImageSize\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\x12\x10\n\x08\x63hannels\x18\x03 \x01(\r\x1aJ\n\x0eRegionFromEdge\x12\x0c\n\x04left\x18\x01 \x01(\x01\x12\r\n\x05right\x18\x02 \x01(\x01\x12\x0b\n\x03top\x18\x03 \x01(\x01\x12\x0e\n\x06\x62ottom\x18\x04 \x01(\x01\x1a\xe2\x05\n\x05Input\x12\x46\n\x0cimage_format\x18\x01 \x01(\x0b\x32..modelfile.v2.ModelFile.Input.ImageInputFormatH\x00\x1a\xfb\x04\n\x10ImageInputFormat\x12\x64\n\x10\x65xact_image_size\x18\x01 \x01(\x0b\x32H.modelfile.v2.ModelFile.Input.ImageInputFormat.ExactImageSizeRequirementH\x00\x12l\n\x14\x64ivisible_image_size\x18\x02 \x01(\x0b\x32L.modelfile.v2.ModelFile.Input.ImageInputFormat.DivisibleImageSizeRequirementH\x00\x12\x42\n\x12region_of_interest\x18\x03 \x01(\x0b\x32&.modelfile.v2.ModelFile.RegionFromEdge\x1aR\n\x19\x45xactImageSizeRequirement\x12\x35\n\nimage_size\x18\x01 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x1a\xdf\x01\n\x1d\x44ivisibleImageSizeRequirement\x12>\n\x13image_size_divisors\x18\x01 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x12=\n\x12minimum_image_size\x18\x02 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x12?\n\x14suggested_image_size\x18\x03 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSizeB\x19\n\x17image_size_requirementsB\x13\n\x11\x46ormatInformation\x1a\xb0\n\n\x06Output\x12_\n\x18image_classifiers_format\x18\x01 \x01(\x0b\x32;.modelfile.v2.ModelFile.Output.ImageClassifiersOutputFormatH\x00\x12_\n\x18segmentation_maps_format\x18\x02 \x01(\x0b\x32;.modelfile.v2.ModelFile.Output.SegmentationMapsOutputFormatH\x00\x12Y\n\x15\x62ounding_boxes_format\x18\x03 \x01(\x0b\x32\x38.modelfile.v2.ModelFile.Output.BoundingBoxesOutputFormatH\x00\x12p\n!bounding_box_segmentations_format\x18\x04 \x01(\x0b\x32\x43.modelfile.v2.ModelFile.Output.BoundingBoxSegmentationsOutputFormatH\x00\x12\x44\n\nocr_format\x18\x05 \x01(\x0b\x32..modelfile.v2.ModelFile.Output.OcrOutputFormatH\x00\x1a\x1e\n\x1cImageClassifiersOutputFormat\x1aU\n\x1cSegmentationMapsOutputFormat\x12\x35\n\nimage_size\x18\x01 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x1a\xcd\x01\n\x19\x42oundingBoxesOutputFormat\x12\x17\n\x0fnumber_of_boxes\x18\x01 \x01(\r\x12\x0e\n\x06stride\x18\x02 \x01(\r\x12\x11\n\tx1_offset\x18\x03 \x01(\r\x12\x11\n\ty1_offset\x18\x04 \x01(\r\x12\x11\n\tx2_offset\x18\x05 \x01(\r\x12\x11\n\ty2_offset\x18\x06 \x01(\r\x12\x19\n\x11\x63onfidence_offset\x18\x07 \x01(\r\x12 \n\x18\x63lass_label_index_offset\x18\x08 \x01(\r\x1a\x7f\n$BoundingBoxSegmentationsOutputFormat\x12\x35\n\nimage_size\x18\x01 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x12 \n\x18relative_to_bounding_box\x18\x02 \x01(\x08\x1a\xf3\x02\n\x0fOcrOutputFormat\x12\x1c\n\x14number_of_characters\x18\x01 \x01(\r\x12L\n\ncharacters\x18\x02 \x03(\x0b\x32\x38.modelfile.v2.ModelFile.Output.OcrOutputFormat.Character\x1a\xf3\x01\n\tCharacter\x12\x1b\n\x13utf8_representation\x18\x01 \x01(\x0c\x12^\n\x0e\x63haracter_type\x18\x02 \x01(\x0e\x32\x46.modelfile.v2.ModelFile.Output.OcrOutputFormat.Character.CharacterType\x12\x0e\n\x06ignore\x18\x03 \x01(\x08\"Y\n\rCharacterType\x12\x0e\n\nCT_REGULAR\x10\x00\x12\x14\n\x10\x43T_START_OF_TEXT\x10\x01\x12\x12\n\x0e\x43T_END_OF_TEXT\x10\x02\x12\x0e\n\nCT_PADDING\x10\x03\x42\x13\n\x11\x46ormatInformation\x1a\xdb\x07\n\x08\x46ileInfo\x12<\n\tfile_type\x18\x01 \x01(\x0e\x32).modelfile.v2.ModelFile.FileInfo.FileType\x12\x14\n\x0cnetwork_name\x18\x02 \x01(\t\x12\x12\n\nnetwork_id\x18\x03 \x01(\t\x12\x1d\n\x15network_experiment_id\x18\x04 \x01(\t\x12\x1b\n\x13network_snapshot_id\x18\x05 \x01(\t\x12\x42\n\x0cnetwork_type\x18\x06 \x01(\x0e\x32,.modelfile.v2.ModelFile.FileInfo.NetworkType\x12\x16\n\x0enetwork_flavor\x18\x07 \x01(\t\x12\x38\n\x0fnetwork_version\x18\x08 \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Version\x12\x38\n\x0fruntime_version\x18\t \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Version\x12=\n\tprecision\x18\n \x01(\x0e\x32*.modelfile.v2.ModelFile.FileInfo.Precision\x12\x44\n\x1bminimum_libdenkflow_version\x18\x0b \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Version\"D\n\x08\x46ileType\x12\x11\n\rFT_ONNX_MODEL\x10\x00\x12\x10\n\x0c\x46T_ZXING_KEY\x10\x01\x12\x13\n\x0f\x46T_VIZIOTIX_KEY\x10\x02\"\xc0\x01\n\x0bNetworkType\x12\x0e\n\nNT_UNKNOWN\x10\x00\x12\x15\n\x11NT_CLASSIFICATION\x10\x01\x12\x13\n\x0fNT_SEGMENTATION\x10\x02\x12\x1c\n\x18NT_INSTANCE_SEGMENTATION\x10\x03\x12\x17\n\x13NT_OBJECT_DETECTION\x10\x04\x12\x18\n\x14NT_ANOMALY_DETECTION\x10\x05\x12$\n NT_OPTICAL_CHARACTER_RECOGNITION\x10\x06\"\xcc\x01\n\tPrecision\x12\x0f\n\x0bP_UNDEFINED\x10\x00\x12\t\n\x05P_FP8\x10\x01\x12\n\n\x06P_FP16\x10\x02\x12\n\n\x06P_FP32\x10\x03\x12\n\n\x06P_FP64\x10\x04\x12\n\n\x06P_INT8\x10\x05\x12\x0b\n\x07P_INT16\x10\x06\x12\x0b\n\x07P_INT32\x10\x07\x12\x0b\n\x07P_INT64\x10\x08\x12\x0b\n\x07P_UINT8\x10\t\x12\x0c\n\x08P_UINT16\x10\n\x12\x0c\n\x08P_UINT32\x10\x0b\x12\x0c\n\x08P_UINT64\x10\x0c\x12\x15\n\x11P_MIXED_PRECISION\x10\r\x1aY\n\x16\x41\x64\x64itionalContentEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Content:\x02\x38\x01\x42\x35Z\x19\x64\x65nkproto-go/modelfile/v2\xaa\x02\x17\x44\x45NK.Proto.Modelfile.V2b\x06proto3')
28
28
 
29
29
  _globals = globals()
30
30
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -37,7 +37,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
37
37
  _globals['_MODELFILE_ADDITIONALCONTENTENTRY']._loaded_options = None
38
38
  _globals['_MODELFILE_ADDITIONALCONTENTENTRY']._serialized_options = b'8\001'
39
39
  _globals['_MODELFILE']._serialized_start=37
40
- _globals['_MODELFILE']._serialized_end=4381
40
+ _globals['_MODELFILE']._serialized_end=4451
41
41
  _globals['_MODELFILE_VERSION']._serialized_start=462
42
42
  _globals['_MODELFILE_VERSION']._serialized_end=516
43
43
  _globals['_MODELFILE_CONTENT']._serialized_start=519
@@ -81,13 +81,13 @@ if not _descriptor._USE_C_DESCRIPTORS:
81
81
  _globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT_CHARACTER_CHARACTERTYPE']._serialized_start=3260
82
82
  _globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT_CHARACTER_CHARACTERTYPE']._serialized_end=3349
83
83
  _globals['_MODELFILE_FILEINFO']._serialized_start=3373
84
- _globals['_MODELFILE_FILEINFO']._serialized_end=4290
85
- _globals['_MODELFILE_FILEINFO_FILETYPE']._serialized_start=3820
86
- _globals['_MODELFILE_FILEINFO_FILETYPE']._serialized_end=3888
87
- _globals['_MODELFILE_FILEINFO_NETWORKTYPE']._serialized_start=3891
88
- _globals['_MODELFILE_FILEINFO_NETWORKTYPE']._serialized_end=4083
89
- _globals['_MODELFILE_FILEINFO_PRECISION']._serialized_start=4086
90
- _globals['_MODELFILE_FILEINFO_PRECISION']._serialized_end=4290
91
- _globals['_MODELFILE_ADDITIONALCONTENTENTRY']._serialized_start=4292
92
- _globals['_MODELFILE_ADDITIONALCONTENTENTRY']._serialized_end=4381
84
+ _globals['_MODELFILE_FILEINFO']._serialized_end=4360
85
+ _globals['_MODELFILE_FILEINFO_FILETYPE']._serialized_start=3890
86
+ _globals['_MODELFILE_FILEINFO_FILETYPE']._serialized_end=3958
87
+ _globals['_MODELFILE_FILEINFO_NETWORKTYPE']._serialized_start=3961
88
+ _globals['_MODELFILE_FILEINFO_NETWORKTYPE']._serialized_end=4153
89
+ _globals['_MODELFILE_FILEINFO_PRECISION']._serialized_start=4156
90
+ _globals['_MODELFILE_FILEINFO_PRECISION']._serialized_end=4360
91
+ _globals['_MODELFILE_ADDITIONALCONTENTENTRY']._serialized_start=4362
92
+ _globals['_MODELFILE_ADDITIONALCONTENTENTRY']._serialized_end=4451
93
93
  # @@protoc_insertion_point(module_scope)
@@ -187,7 +187,7 @@ class ModelFile(_message.Message):
187
187
  ocr_format: ModelFile.Output.OcrOutputFormat
188
188
  def __init__(self, image_classifiers_format: _Optional[_Union[ModelFile.Output.ImageClassifiersOutputFormat, _Mapping]] = ..., segmentation_maps_format: _Optional[_Union[ModelFile.Output.SegmentationMapsOutputFormat, _Mapping]] = ..., bounding_boxes_format: _Optional[_Union[ModelFile.Output.BoundingBoxesOutputFormat, _Mapping]] = ..., bounding_box_segmentations_format: _Optional[_Union[ModelFile.Output.BoundingBoxSegmentationsOutputFormat, _Mapping]] = ..., ocr_format: _Optional[_Union[ModelFile.Output.OcrOutputFormat, _Mapping]] = ...) -> None: ...
189
189
  class FileInfo(_message.Message):
190
- __slots__ = ("file_type", "network_name", "network_id", "network_experiment_id", "network_snapshot_id", "network_type", "network_flavor", "network_version", "runtime_version", "precision")
190
+ __slots__ = ("file_type", "network_name", "network_id", "network_experiment_id", "network_snapshot_id", "network_type", "network_flavor", "network_version", "runtime_version", "precision", "minimum_libdenkflow_version")
191
191
  class FileType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
192
192
  __slots__ = ()
193
193
  FT_ONNX_MODEL: _ClassVar[ModelFile.FileInfo.FileType]
@@ -252,6 +252,7 @@ class ModelFile(_message.Message):
252
252
  NETWORK_VERSION_FIELD_NUMBER: _ClassVar[int]
253
253
  RUNTIME_VERSION_FIELD_NUMBER: _ClassVar[int]
254
254
  PRECISION_FIELD_NUMBER: _ClassVar[int]
255
+ MINIMUM_LIBDENKFLOW_VERSION_FIELD_NUMBER: _ClassVar[int]
255
256
  file_type: ModelFile.FileInfo.FileType
256
257
  network_name: str
257
258
  network_id: str
@@ -262,7 +263,8 @@ class ModelFile(_message.Message):
262
263
  network_version: ModelFile.Version
263
264
  runtime_version: ModelFile.Version
264
265
  precision: ModelFile.FileInfo.Precision
265
- def __init__(self, file_type: _Optional[_Union[ModelFile.FileInfo.FileType, str]] = ..., network_name: _Optional[str] = ..., network_id: _Optional[str] = ..., network_experiment_id: _Optional[str] = ..., network_snapshot_id: _Optional[str] = ..., network_type: _Optional[_Union[ModelFile.FileInfo.NetworkType, str]] = ..., network_flavor: _Optional[str] = ..., network_version: _Optional[_Union[ModelFile.Version, _Mapping]] = ..., runtime_version: _Optional[_Union[ModelFile.Version, _Mapping]] = ..., precision: _Optional[_Union[ModelFile.FileInfo.Precision, str]] = ...) -> None: ...
266
+ minimum_libdenkflow_version: ModelFile.Version
267
+ def __init__(self, file_type: _Optional[_Union[ModelFile.FileInfo.FileType, str]] = ..., network_name: _Optional[str] = ..., network_id: _Optional[str] = ..., network_experiment_id: _Optional[str] = ..., network_snapshot_id: _Optional[str] = ..., network_type: _Optional[_Union[ModelFile.FileInfo.NetworkType, str]] = ..., network_flavor: _Optional[str] = ..., network_version: _Optional[_Union[ModelFile.Version, _Mapping]] = ..., runtime_version: _Optional[_Union[ModelFile.Version, _Mapping]] = ..., precision: _Optional[_Union[ModelFile.FileInfo.Precision, str]] = ..., minimum_libdenkflow_version: _Optional[_Union[ModelFile.Version, _Mapping]] = ...) -> None: ...
266
268
  class AdditionalContentEntry(_message.Message):
267
269
  __slots__ = ("key", "value")
268
270
  KEY_FIELD_NUMBER: _ClassVar[int]