leap-model-parser 0.1.226__py3-none-any.whl → 0.1.227__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.
- leap_model_parser/leap_graph_editor.py +18 -0
- {leap_model_parser-0.1.226.dist-info → leap_model_parser-0.1.227.dist-info}/METADATA +1 -1
- {leap_model_parser-0.1.226.dist-info → leap_model_parser-0.1.227.dist-info}/RECORD +6 -6
- {leap_model_parser-0.1.226.dist-info → leap_model_parser-0.1.227.dist-info}/LICENSE +0 -0
- {leap_model_parser-0.1.226.dist-info → leap_model_parser-0.1.227.dist-info}/WHEEL +0 -0
- {leap_model_parser-0.1.226.dist-info → leap_model_parser-0.1.227.dist-info}/entry_points.txt +0 -0
|
@@ -127,6 +127,22 @@ class LeapGraphEditor:
|
|
|
127
127
|
self.model_graph[new_node_id] = ground_truth_node
|
|
128
128
|
return new_node_id
|
|
129
129
|
|
|
130
|
+
def _add_input_encoder_not_connected_to_the_model_node(self, input_name: str) -> str:
|
|
131
|
+
new_node_id = self._generate_new_node_id()
|
|
132
|
+
ground_truth_node = Node(
|
|
133
|
+
new_node_id,
|
|
134
|
+
'Input',
|
|
135
|
+
position=[0, 0],
|
|
136
|
+
data={'name': input_name, 'output_name': input_name,
|
|
137
|
+
'type': 'Input', "selected": input_name},
|
|
138
|
+
inputs={},
|
|
139
|
+
outputs={
|
|
140
|
+
f'{new_node_id}-{input_name}': ConnectionOutput([])
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
self.model_graph[new_node_id] = ground_truth_node
|
|
144
|
+
return new_node_id
|
|
145
|
+
|
|
130
146
|
def _add_visualizer_node(self, visualizer_name: str, visualizer_type: str,
|
|
131
147
|
user_unique_name: str, arg_names: List[str]) -> str:
|
|
132
148
|
new_node_id = self._generate_new_node_id()
|
|
@@ -240,6 +256,8 @@ class LeapGraphEditor:
|
|
|
240
256
|
if input_node_id is None:
|
|
241
257
|
if input_node.type == NodeMappingType.GroundTruth:
|
|
242
258
|
input_node_id = self._add_ground_truth_node(input_node.name)
|
|
259
|
+
elif input_node.type == NodeMappingType.Input:
|
|
260
|
+
input_node_id = self._add_input_encoder_not_connected_to_the_model_node(input_node.name)
|
|
243
261
|
else:
|
|
244
262
|
raise Exception(f'Couldnt find input node name {input_node.name}')
|
|
245
263
|
elif 'Input' in input_node.type.value:
|
|
@@ -6,7 +6,7 @@ leap_model_parser/contract/importmodelresponse.py,sha256=GlvnKS8xrebU2Sj0dxqtEhA
|
|
|
6
6
|
leap_model_parser/contract/nodedata.py,sha256=1_ML0nzp3QUZ0_9mGSLhfO4_hqjYMwi0DWLwymUnWEs,43326
|
|
7
7
|
leap_model_parser/contract/ui_components.json,sha256=0lsxwOLElW1E-imCcdh3zKPWgzFuQ_bApG6aHvYfTvo,410591
|
|
8
8
|
leap_model_parser/keras_json_model_import.py,sha256=h9-eb41W67goutRV5c3VkStxvntgb6EmPFdPeshhtsY,17058
|
|
9
|
-
leap_model_parser/leap_graph_editor.py,sha256=
|
|
9
|
+
leap_model_parser/leap_graph_editor.py,sha256=s6iVO06xM6LJ8ZjSxkr1srYxsHhGl2KnQjQoc9g4_iE,14329
|
|
10
10
|
leap_model_parser/model_parser.py,sha256=W8FGKCBOBClIl0sdBlTdoSRT8sIdVrlbO8veNMouJ7o,8169
|
|
11
11
|
leap_model_parser/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
leap_model_parser/utils/layerpedia/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -18,8 +18,8 @@ leap_model_parser/utils/uicomponents/generatenodedata.py,sha256=LRaPlO5jJ9pUtkvL
|
|
|
18
18
|
leap_model_parser/utils/uicomponents/tensorflowinscpection.py,sha256=ym613z9iQKPDBpr0RYD35bTABdm1L-Ez86G47BYT7qw,6775
|
|
19
19
|
leap_model_parser/utils/uicomponents/ui_components.json,sha256=0lsxwOLElW1E-imCcdh3zKPWgzFuQ_bApG6aHvYfTvo,410591
|
|
20
20
|
leap_model_parser/utils/uicomponents/ui_components_config.yaml,sha256=cRH8T-c3TAL0nfefRvt9pFsjbTWNEg38NRyHR7RpJsk,19534
|
|
21
|
-
leap_model_parser-0.1.
|
|
22
|
-
leap_model_parser-0.1.
|
|
23
|
-
leap_model_parser-0.1.
|
|
24
|
-
leap_model_parser-0.1.
|
|
25
|
-
leap_model_parser-0.1.
|
|
21
|
+
leap_model_parser-0.1.227.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
|
|
22
|
+
leap_model_parser-0.1.227.dist-info/METADATA,sha256=ceu2bCLoaj3r8fBM4gUmXZr_Xh0_cElbXuSw5UqldAQ,1104
|
|
23
|
+
leap_model_parser-0.1.227.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
24
|
+
leap_model_parser-0.1.227.dist-info/entry_points.txt,sha256=ZvV6EuQt1uAqwapNg5Lo2qjJM9ZG5g2wfzZoLh_Ztyk,77
|
|
25
|
+
leap_model_parser-0.1.227.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{leap_model_parser-0.1.226.dist-info → leap_model_parser-0.1.227.dist-info}/entry_points.txt
RENAMED
|
File without changes
|