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/tensor.py
CHANGED
@@ -17,10 +17,11 @@
|
|
17
17
|
import abc
|
18
18
|
from typing import List, Literal, Optional, Tuple
|
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
|
import numpy as np
|
23
22
|
|
23
|
+
import gml.proto.src.api.corepb.v1.model_exec_pb2 as modelexecpb
|
24
|
+
|
24
25
|
|
25
26
|
def box_format_str_to_proto(box_format: str):
|
26
27
|
match box_format.lower():
|
@@ -76,6 +77,10 @@ def chan_format_str_to_proto(chan_format: str):
|
|
76
77
|
return (
|
77
78
|
modelexecpb.DimensionSemantics.ImageChannelParams.IMAGE_CHANNEL_FORMAT_BGR
|
78
79
|
)
|
80
|
+
case "gray":
|
81
|
+
return (
|
82
|
+
modelexecpb.DimensionSemantics.ImageChannelParams.IMAGE_CHANNEL_FORMAT_GRAYSCALE
|
83
|
+
)
|
79
84
|
case _:
|
80
85
|
raise ValueError("Invalid channel_format format: {}".format(chan_format))
|
81
86
|
|
File without changes
|