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
8fdf31d6
Commit
8fdf31d6
authored
Mar 22, 2018
by
Zhichao Lu
Committed by
pkulzc
Apr 02, 2018
Browse files
Correct the return value from ProcessBatch in the case of an exception.
PiperOrigin-RevId: 190068159
parent
60f170e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/object_detection/evaluator.py
research/object_detection/evaluator.py
+1
-1
No files found.
research/object_detection/evaluator.py
View file @
8fdf31d6
...
@@ -215,7 +215,7 @@ def evaluate(create_input_dict_fn, create_model_fn, eval_config, categories,
...
@@ -215,7 +215,7 @@ def evaluate(create_input_dict_fn, create_model_fn, eval_config, categories,
except
tf
.
errors
.
InvalidArgumentError
:
except
tf
.
errors
.
InvalidArgumentError
:
logging
.
info
(
'Skipping image'
)
logging
.
info
(
'Skipping image'
)
counters
[
'skipped'
]
+=
1
counters
[
'skipped'
]
+=
1
return
{}
return
{}
,
{}
global_step
=
tf
.
train
.
global_step
(
sess
,
tf
.
train
.
get_global_step
())
global_step
=
tf
.
train
.
global_step
(
sess
,
tf
.
train
.
get_global_step
())
if
batch_index
<
eval_config
.
num_visualizations
:
if
batch_index
<
eval_config
.
num_visualizations
:
tag
=
'image-{}'
.
format
(
batch_index
)
tag
=
'image-{}'
.
format
(
batch_index
)
...
...
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