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
e97e22df
Commit
e97e22df
authored
Oct 15, 2019
by
Yeqing Li
Committed by
A. Unique TensorFlower
Oct 15, 2019
Browse files
Internal change
PiperOrigin-RevId: 274921478
parent
32229eae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
official/benchmark/retinanet_benchmark.py
official/benchmark/retinanet_benchmark.py
+11
-4
No files found.
official/benchmark/retinanet_benchmark.py
View file @
e97e22df
...
@@ -218,14 +218,21 @@ class RetinanetBenchmarkReal(RetinanetAccuracy):
...
@@ -218,14 +218,21 @@ class RetinanetBenchmarkReal(RetinanetAccuracy):
self
.
_setup
()
self
.
_setup
()
params
=
copy
.
deepcopy
(
self
.
params_override
)
params
=
copy
.
deepcopy
(
self
.
params_override
)
params
[
'train'
][
'total_steps'
]
=
1875
# One epoch.
params
[
'train'
][
'total_steps'
]
=
1875
# One epoch.
params
[
'train'
][
'iterations_per_loop'
]
=
125
# The iterations_per_loop must be one, otherwise the number of examples per
# second would be wrong. Currently only support calling callback per batch
# when each loop only runs on one batch, i.e. host loop for one step. The
# performance of this situation might be lower than the case of
# iterations_per_loop > 1.
# Related bug: b/135933080
params
[
'train'
][
'iterations_per_loop'
]
=
1
params
[
'eval'
][
'eval_samples'
]
=
8
params
[
'eval'
][
'eval_samples'
]
=
8
FLAGS
.
params_override
=
json
.
dumps
(
params
)
FLAGS
.
params_override
=
json
.
dumps
(
params
)
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'real_benchmark_8_gpu_coco'
)
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'real_benchmark_8_gpu_coco'
)
# Sets timer_callback to None as we do not use it now.
if
self
.
timer_callback
is
None
:
self
.
timer_callback
=
None
logging
.
error
(
'Cannot measure performance without timer callback'
)
else
:
self
.
_run_and_report_benchmark
()
self
.
_run_and_report_benchmark
()
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
tf
.
test
.
main
()
tf
.
test
.
main
()
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