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
06412123
Commit
06412123
authored
Oct 16, 2019
by
David Chen
Committed by
A. Unique TensorFlower
Oct 16, 2019
Browse files
Internal change
PiperOrigin-RevId: 275103426
parent
1b77cd80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
official/benchmark/retinanet_benchmark.py
official/benchmark/retinanet_benchmark.py
+6
-4
No files found.
official/benchmark/retinanet_benchmark.py
View file @
06412123
...
@@ -25,14 +25,16 @@ import os
...
@@ -25,14 +25,16 @@ import os
import
time
import
time
from
absl
import
flags
from
absl
import
flags
from
absl
import
logging
from
absl.testing
import
flagsaver
from
absl.testing
import
flagsaver
import
tensorflow
as
tf
import
tensorflow
as
tf
# pylint: enable=g-bad-import-order
# pylint: enable=g-bad-import-order
from
official.utils.flags
import
core
as
flags_core
from
official.benchmark
import
bert_benchmark_utils
as
benchmark_utils
from
official.benchmark
import
bert_benchmark_utils
as
benchmark_utils
from
official.utils.flags
import
core
as
flags_core
from
official.vision.detection
import
main
as
detection
from
official.vision.detection
import
main
as
detection
TMP_DIR
=
os
.
getenv
(
'TMPDIR'
)
FLAGS
=
flags
.
FLAGS
FLAGS
=
flags
.
FLAGS
# pylint: disable=line-too-long
# pylint: disable=line-too-long
...
@@ -143,7 +145,7 @@ class RetinanetAccuracy(RetinanetBenchmarkBase):
...
@@ -143,7 +145,7 @@ class RetinanetAccuracy(RetinanetBenchmarkBase):
`benchmark_(number of gpus)_gpu_(dataset type)` format.
`benchmark_(number of gpus)_gpu_(dataset type)` format.
"""
"""
def
__init__
(
self
,
output_dir
=
None
,
**
kwargs
):
def
__init__
(
self
,
output_dir
=
TMP_DIR
,
**
kwargs
):
super
(
RetinanetAccuracy
,
self
).
__init__
(
output_dir
=
output_dir
)
super
(
RetinanetAccuracy
,
self
).
__init__
(
output_dir
=
output_dir
)
def
_run_and_report_benchmark
(
self
,
min_ap
=
0.325
,
max_ap
=
0.35
):
def
_run_and_report_benchmark
(
self
,
min_ap
=
0.325
,
max_ap
=
0.35
):
...
@@ -208,7 +210,7 @@ class RetinanetBenchmarkReal(RetinanetAccuracy):
...
@@ -208,7 +210,7 @@ class RetinanetBenchmarkReal(RetinanetAccuracy):
`benchmark_(number of gpus)_gpu` format.
`benchmark_(number of gpus)_gpu` format.
"""
"""
def
__init__
(
self
,
output_dir
=
None
,
**
kwargs
):
def
__init__
(
self
,
output_dir
=
TMP_DIR
,
**
kwargs
):
super
(
RetinanetBenchmarkReal
,
self
).
__init__
(
output_dir
=
output_dir
)
super
(
RetinanetBenchmarkReal
,
self
).
__init__
(
output_dir
=
output_dir
)
@
flagsaver
.
flagsaver
@
flagsaver
.
flagsaver
...
...
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