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
a32bf635
Commit
a32bf635
authored
Nov 01, 2017
by
Vivek Rathod
Browse files
change DEFINE_list to DEFINE_string.
parent
406ec641
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
research/object_detection/export_inference_graph.py
research/object_detection/export_inference_graph.py
+10
-8
No files found.
research/object_detection/export_inference_graph.py
View file @
a32bf635
...
...
@@ -77,13 +77,14 @@ flags = tf.app.flags
flags
.
DEFINE_string
(
'input_type'
,
'image_tensor'
,
'Type of input node. Can be '
'one of [`image_tensor`, `encoded_image_string_tensor`, '
'`tf_example`]'
)
flags
.
DEFINE_list
(
'input_shape'
,
None
,
'If input_type is `image_tensor`, this can explicitly set '
'the shape of this input tensor to a fixed size. The '
'dimensions are to be provided as a comma-separated list of '
'integers. A value of -1 can be used for unknown dimensions. '
'If not specified, for an `image_tensor, the default shape '
'will be partially specified as `[None, None, None, 3]`.'
)
flags
.
DEFINE_string
(
'input_shape'
,
None
,
'If input_type is `image_tensor`, this can explicitly set '
'the shape of this input tensor to a fixed size. The '
'dimensions are to be provided as a comma-separated list '
'of integers. A value of -1 can be used for unknown '
'dimensions. If not specified, for an `image_tensor, the '
'default shape will be partially specified as '
'`[None, None, None, 3]`.'
)
flags
.
DEFINE_string
(
'pipeline_config_path'
,
None
,
'Path to a pipeline_pb2.TrainEvalPipelineConfig config '
'file.'
)
...
...
@@ -104,7 +105,8 @@ def main(_):
text_format
.
Merge
(
f
.
read
(),
pipeline_config
)
if
FLAGS
.
input_shape
:
input_shape
=
[
int
(
dim
)
if
dim
!=
'-1'
else
None
for
dim
in
FLAGS
.
input_shape
int
(
dim
)
if
dim
!=
'-1'
else
None
for
dim
in
FLAGS
.
input_shape
.
split
(
','
)
]
else
:
input_shape
=
None
...
...
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