aimodelshare 0.1.31__py3-none-any.whl → 0.1.33__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 aimodelshare might be problematic. Click here for more details.
- aimodelshare/aimsonnx.py +4 -14
- {aimodelshare-0.1.31.dist-info → aimodelshare-0.1.33.dist-info}/METADATA +11 -28
- {aimodelshare-0.1.31.dist-info → aimodelshare-0.1.33.dist-info}/RECORD +6 -6
- {aimodelshare-0.1.31.dist-info → aimodelshare-0.1.33.dist-info}/WHEEL +0 -0
- {aimodelshare-0.1.31.dist-info → aimodelshare-0.1.33.dist-info}/licenses/LICENSE +0 -0
- {aimodelshare-0.1.31.dist-info → aimodelshare-0.1.33.dist-info}/top_level.txt +0 -0
aimodelshare/aimsonnx.py
CHANGED
|
@@ -647,7 +647,6 @@ def _keras_to_onnx(model, transfer_learning=None,
|
|
|
647
647
|
metadata['model_weights'] = pickle.dumps(model.get_weights())
|
|
648
648
|
|
|
649
649
|
# Extract architecture
|
|
650
|
-
from aimodelshare.model import keras_unpack, model_summary_keras
|
|
651
650
|
|
|
652
651
|
keras_layers = keras_unpack(model)
|
|
653
652
|
layers = []
|
|
@@ -1105,6 +1104,7 @@ def _get_leaderboard_data(onnx_model, eval_metrics=None):
|
|
|
1105
1104
|
|
|
1106
1105
|
def _model_summary(meta_dict, from_onnx=False):
|
|
1107
1106
|
'''Creates model summary table from model metadata dict.'''
|
|
1107
|
+
import io
|
|
1108
1108
|
|
|
1109
1109
|
assert(isinstance(meta_dict, dict)), \
|
|
1110
1110
|
"Please pass valid metadata dict."
|
|
@@ -1113,9 +1113,9 @@ def _model_summary(meta_dict, from_onnx=False):
|
|
|
1113
1113
|
"Please make sure model architecture data is included."
|
|
1114
1114
|
|
|
1115
1115
|
if from_onnx == True:
|
|
1116
|
-
model_summary = pd.read_json(meta_dict['metadata_onnx']["model_summary"])
|
|
1116
|
+
model_summary = pd.read_json(io.StringIO(meta_dict['metadata_onnx']["model_summary"]))
|
|
1117
1117
|
else:
|
|
1118
|
-
model_summary = pd.read_json(meta_dict["model_summary"])
|
|
1118
|
+
model_summary = pd.read_json(io.StringIO(meta_dict["model_summary"]))
|
|
1119
1119
|
|
|
1120
1120
|
return model_summary
|
|
1121
1121
|
|
|
@@ -1793,22 +1793,12 @@ def torch_unpack(model):
|
|
|
1793
1793
|
|
|
1794
1794
|
|
|
1795
1795
|
def keras_unpack(model):
|
|
1796
|
-
|
|
1797
1796
|
layers = []
|
|
1798
|
-
|
|
1799
1797
|
for module in model.layers:
|
|
1800
|
-
|
|
1801
1798
|
if isinstance(module, (tf.keras.Model, tf.keras.Sequential)):
|
|
1802
|
-
|
|
1803
|
-
layers_out = keras_unpack(module)
|
|
1804
|
-
|
|
1805
|
-
layers = layers + layers_out
|
|
1806
|
-
|
|
1807
|
-
|
|
1799
|
+
layers += keras_unpack(module)
|
|
1808
1800
|
else:
|
|
1809
|
-
|
|
1810
1801
|
layers.append(module)
|
|
1811
|
-
|
|
1812
1802
|
return layers
|
|
1813
1803
|
|
|
1814
1804
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aimodelshare
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.33
|
|
4
4
|
Summary: Deploy locally saved machine learning models to a live rest API and web-dashboard. Share it with the world via modelshare.org
|
|
5
5
|
Home-page: https://www.modelshare.org
|
|
6
6
|
Author: Michael Parrott
|
|
@@ -11,33 +11,16 @@ Classifier: Operating System :: OS Independent
|
|
|
11
11
|
Requires-Python: >=3.7
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
|
-
Requires-Dist: boto3
|
|
15
|
-
Requires-Dist:
|
|
16
|
-
Requires-Dist:
|
|
17
|
-
Requires-Dist:
|
|
18
|
-
Requires-Dist:
|
|
19
|
-
Requires-Dist:
|
|
20
|
-
Requires-Dist:
|
|
21
|
-
Requires-Dist:
|
|
22
|
-
Requires-Dist:
|
|
23
|
-
Requires-Dist:
|
|
24
|
-
Requires-Dist: onnxruntime==1.17.1
|
|
25
|
-
Requires-Dist: torch==2.6.0
|
|
26
|
-
Requires-Dist: pydot==1.4.2
|
|
27
|
-
Requires-Dist: importlib-resources==6.1.1
|
|
28
|
-
Requires-Dist: onnxmltools==1.11.0
|
|
29
|
-
Requires-Dist: Pympler==1.0.1
|
|
30
|
-
Requires-Dist: docker==6.1.3
|
|
31
|
-
Requires-Dist: wget==3.2
|
|
32
|
-
Requires-Dist: PyJWT==2.8.0
|
|
33
|
-
Requires-Dist: seaborn==0.13.2
|
|
34
|
-
Requires-Dist: astunparse==1.6.3
|
|
35
|
-
Requires-Dist: shortuuid==1.0.11
|
|
36
|
-
Requires-Dist: psutil==5.9.5
|
|
37
|
-
Requires-Dist: pathlib
|
|
38
|
-
Requires-Dist: protobuf==3.20.3
|
|
39
|
-
Requires-Dist: dill==0.3.7
|
|
40
|
-
Requires-Dist: scikeras==0.11.0
|
|
14
|
+
Requires-Dist: boto3
|
|
15
|
+
Requires-Dist: onnx
|
|
16
|
+
Requires-Dist: onnxmltools
|
|
17
|
+
Requires-Dist: onnxruntime
|
|
18
|
+
Requires-Dist: skl2onnx
|
|
19
|
+
Requires-Dist: tf2onnx
|
|
20
|
+
Requires-Dist: wget
|
|
21
|
+
Requires-Dist: shortuuid
|
|
22
|
+
Requires-Dist: Pympler
|
|
23
|
+
Requires-Dist: scikeras
|
|
41
24
|
Dynamic: author
|
|
42
25
|
Dynamic: author-email
|
|
43
26
|
Dynamic: classifier
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
aimodelshare/README.md,sha256=_OMdUIeIYZnpFlKdafM1KNWaANO2nWdx0QpLE_ZC-Qs,2014
|
|
2
2
|
aimodelshare/__init__.py,sha256=CS0iFxgAic21gBcQE6NSZ-D_ElHw80_A3OWrEYo9Dks,539
|
|
3
|
-
aimodelshare/aimsonnx.py,sha256=
|
|
3
|
+
aimodelshare/aimsonnx.py,sha256=yNdkaZ2m-FKsr33g7d8M_DtR0ljZ6AxE2Eg8yLOhnXE,67169
|
|
4
4
|
aimodelshare/api.py,sha256=jeCIMbpBllTYi-bPvCdNvI6yHaT3JYakq9fgaz10s_E,34920
|
|
5
5
|
aimodelshare/aws.py,sha256=jn99R9-N77Qac-_eYm-LaCQUPd-RnE7oVULm9rh-3RY,15232
|
|
6
6
|
aimodelshare/aws_client.py,sha256=Ce19iwf69BwpuyyJlVN8z1da3c5jf93svsTgx1OWhaA,6784
|
|
@@ -140,11 +140,11 @@ aimodelshare/sam/codepipeline_policies.txt,sha256=267HMXMnbP7qRASkmFZYSx-2HmKf5o
|
|
|
140
140
|
aimodelshare/sam/codepipeline_trust_relationship.txt,sha256=yfPYvZlN3fnaIHs7I3ENMMveigIE89mufV9pvR8EQH8,245
|
|
141
141
|
aimodelshare/sam/spark-class.txt,sha256=chyJBxDzCzlUKXzVQYTzuJ2PXCTwg8_gd1yfnI-xbRw,217
|
|
142
142
|
aimodelshare/sam/template.txt,sha256=JKSvEOZNaaLalHSx7r9psJg_6LLCb0XLAYi1-jYPu3M,1195
|
|
143
|
-
aimodelshare-0.1.
|
|
143
|
+
aimodelshare-0.1.33.dist-info/licenses/LICENSE,sha256=JXBYLriXYgTloZs-9CJPZY76dqkuDT5df_HghMnljx8,1134
|
|
144
144
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
145
145
|
tests/test_aimsonnx.py,sha256=-GOF1_qXGQaMxHyqK0GPg7dD1meE-S7CZea4pLmBDTk,3906
|
|
146
146
|
tests/test_playground.py,sha256=vdFWPRrZNQ2poiBOoN3l7HsXB5yc3p3rrrclNYJHnaw,24574
|
|
147
|
-
aimodelshare-0.1.
|
|
148
|
-
aimodelshare-0.1.
|
|
149
|
-
aimodelshare-0.1.
|
|
150
|
-
aimodelshare-0.1.
|
|
147
|
+
aimodelshare-0.1.33.dist-info/METADATA,sha256=8lhWr27e-UtqlJ16FIAfw4kTt3HPUI9TkN_wr2Gg7NQ,2916
|
|
148
|
+
aimodelshare-0.1.33.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
|
149
|
+
aimodelshare-0.1.33.dist-info/top_level.txt,sha256=2KJgeHQ0BmZuilB75J203i7W4vri6CON2kdbwk9BNpU,19
|
|
150
|
+
aimodelshare-0.1.33.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|