denkproto 1.0.94__py3-none-any.whl → 1.0.95__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.
denkproto/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.0.
|
|
1
|
+
__version__ = "1.0.95"
|
|
@@ -240,16 +240,18 @@ class NetworkExperiment:
|
|
|
240
240
|
class_labels: List[ClassLabelElement]
|
|
241
241
|
config: Config
|
|
242
242
|
flavor: str
|
|
243
|
+
id: UUID
|
|
243
244
|
network_typename: str
|
|
244
245
|
ocr_character_restrictions: Optional[List[OcrCharacterRestrictionElement]]
|
|
245
246
|
"""Only present for OCR prediction requests"""
|
|
246
247
|
|
|
247
248
|
snapshot: Snapshot
|
|
248
249
|
|
|
249
|
-
def __init__(self, class_labels: List[ClassLabelElement], config: Config, flavor: str, network_typename: str, ocr_character_restrictions: Optional[List[OcrCharacterRestrictionElement]], snapshot: Snapshot) -> None:
|
|
250
|
+
def __init__(self, class_labels: List[ClassLabelElement], config: Config, flavor: str, id: UUID, network_typename: str, ocr_character_restrictions: Optional[List[OcrCharacterRestrictionElement]], snapshot: Snapshot) -> None:
|
|
250
251
|
self.class_labels = class_labels
|
|
251
252
|
self.config = config
|
|
252
253
|
self.flavor = flavor
|
|
254
|
+
self.id = id
|
|
253
255
|
self.network_typename = network_typename
|
|
254
256
|
self.ocr_character_restrictions = ocr_character_restrictions
|
|
255
257
|
self.snapshot = snapshot
|
|
@@ -260,16 +262,18 @@ class NetworkExperiment:
|
|
|
260
262
|
class_labels = from_list(ClassLabelElement.from_dict, obj.get("class_labels"))
|
|
261
263
|
config = Config.from_dict(obj.get("config"))
|
|
262
264
|
flavor = from_str(obj.get("flavor"))
|
|
265
|
+
id = UUID(obj.get("id"))
|
|
263
266
|
network_typename = from_str(obj.get("network_typename"))
|
|
264
267
|
ocr_character_restrictions = from_union([lambda x: from_list(OcrCharacterRestrictionElement.from_dict, x), from_none], obj.get("ocr_character_restrictions"))
|
|
265
268
|
snapshot = Snapshot.from_dict(obj.get("snapshot"))
|
|
266
|
-
return NetworkExperiment(class_labels, config, flavor, network_typename, ocr_character_restrictions, snapshot)
|
|
269
|
+
return NetworkExperiment(class_labels, config, flavor, id, network_typename, ocr_character_restrictions, snapshot)
|
|
267
270
|
|
|
268
271
|
def to_dict(self) -> dict:
|
|
269
272
|
result: dict = {}
|
|
270
273
|
result["class_labels"] = from_list(lambda x: to_class(ClassLabelElement, x), self.class_labels)
|
|
271
274
|
result["config"] = to_class(Config, self.config)
|
|
272
275
|
result["flavor"] = from_str(self.flavor)
|
|
276
|
+
result["id"] = str(self.id)
|
|
273
277
|
result["network_typename"] = from_str(self.network_typename)
|
|
274
278
|
if self.ocr_character_restrictions is not None:
|
|
275
279
|
result["ocr_character_restrictions"] = from_union([lambda x: from_list(lambda x: to_class(OcrCharacterRestrictionElement, x), x), from_none], self.ocr_character_restrictions)
|
|
@@ -4,7 +4,7 @@ denkproto/DENKbuffer_pb2_grpc.py,sha256=-CPJPM4FOqwvwV8-f1iJlD18UD9juVIIHfdWUecu
|
|
|
4
4
|
denkproto/ImageAnalysis_ProtobufMessages_pb2.py,sha256=iEY0j9ySGUThnqTdYD4uAVr9P3GiC5R02iK53zEOXUQ,21015
|
|
5
5
|
denkproto/ImageAnalysis_ProtobufMessages_pb2.pyi,sha256=5LFtxrmYpJHizDDNGFTkL7-NQ_TkwqCSdq7vcv3lg-c,36243
|
|
6
6
|
denkproto/ImageAnalysis_ProtobufMessages_pb2_grpc.py,sha256=l3agtDjgu4jay6P9TRnHhyhJ-7UdoII27ywhw3k84oo,911
|
|
7
|
-
denkproto/__about__.py,sha256=
|
|
7
|
+
denkproto/__about__.py,sha256=pJbxmrSaZdlmxBIORIdVrmW_p012oX6Otld4fhk0Tnc,23
|
|
8
8
|
denkproto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
denkproto/denkcache_pb2.py,sha256=u0O26m7t4kfu4R1nx1ZcTst4n6pG32pMbhl2PGYivXE,7161
|
|
10
10
|
denkproto/denkcache_pb2.pyi,sha256=8K_Ebyy4mgXrxqJenN8f8LXLvVKOiaZxhmGeYjFZVpY,6357
|
|
@@ -32,8 +32,8 @@ denkproto/json/inference_graph_models_generated.py,sha256=GfsGk4bKbL8gyqOScA4x13
|
|
|
32
32
|
denkproto/json/object_detection_markup.py,sha256=T0hcFPq8F_galjDjRC9dbcRVwCSOYtu2jt9wpEeHlQs,4904
|
|
33
33
|
denkproto/json/ocr_markup.py,sha256=xZs321ZqOUPK-VzWhy3gKCdqt_EyKOs-6FbaJdSvEMQ,7824
|
|
34
34
|
denkproto/json/ocr_prediction_request.py,sha256=PXY_1hmPQcKpHHZyikMFG_S0HKiwbXtRv5oW5x1zHRM,17783
|
|
35
|
-
denkproto/json/prediction_request.py,sha256=
|
|
35
|
+
denkproto/json/prediction_request.py,sha256=9AE7KZgQPciRJwMIMkRUMCY85tY6zaaV_Z75XxEF2KQ,18894
|
|
36
36
|
denkproto/json/segmentation_markup.py,sha256=ZU2qYuN1IkZDCjAjr0vEn6nRVdZv24EwRYlmrGEzeVg,19841
|
|
37
|
-
denkproto-1.0.
|
|
38
|
-
denkproto-1.0.
|
|
39
|
-
denkproto-1.0.
|
|
37
|
+
denkproto-1.0.95.dist-info/METADATA,sha256=DsP02yp_tKPj9fLCDlebvs-PUZxDrDLV5w8ybOsq-SQ,110
|
|
38
|
+
denkproto-1.0.95.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
39
|
+
denkproto-1.0.95.dist-info/RECORD,,
|
|
File without changes
|