Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
d73569c5
Commit
d73569c5
authored
Aug 03, 2020
by
Kaushik Shivakumar
Browse files
exporter
parent
f9ff935a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
research/object_detection/exporter_lib_v2.py
research/object_detection/exporter_lib_v2.py
+6
-6
No files found.
research/object_detection/exporter_lib_v2.py
View file @
d73569c5
...
...
@@ -50,12 +50,12 @@ def _zip_side_inputs(side_input_shapes="",
Returns:
a zipped list of side input tuples.
"""
side_input_shapes
=
list
(
map
(
lambda
x
:
eval
(
'['
+
x
+
']'
),
side_input_shapes
.
split
(
"/"
)))
side_input_types
=
list
(
map
(
eval
,
side_input_types
.
split
(
","
))
)
return
zip
(
side_input_
sha
pes
,
side_input_types
,
side_input_names
.
split
(
","
))
if
(
side_input_shapes
)
side_input_shapes
=
list
(
map
(
lambda
x
:
eval
(
'['
+
x
+
']'
),
side_input_shapes
.
split
(
"/"
)))
side_input_types
=
map
(
eval
,
side_input_types
.
split
(
","
))
print
(
list
(
side_input_
ty
pes
))
#side_input_types = list(map(eval,
side_input_types
.split(",")))
return
zip
(
side_input_shapes
,
side_input_types
,
side_input_names
.
split
(
","
))
class
DetectionInferenceModule
(
tf
.
Module
):
"""Detection Inference Module."""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment