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
57690c2a
"vscode:/vscode.git/clone" did not exist on "f7153a8c02e75fb9734d5c8b00301b03ba2d4735"
Commit
57690c2a
authored
Nov 19, 2021
by
Fan Yang
Committed by
A. Unique TensorFlower
Nov 19, 2021
Browse files
Internal change
PiperOrigin-RevId: 411136341
parent
9e9534e8
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
11 deletions
+11
-11
official/benchmark/keras_imagenet_benchmark.py
official/benchmark/keras_imagenet_benchmark.py
+1
-1
official/benchmark/models/cifar_preprocessing.py
official/benchmark/models/cifar_preprocessing.py
+1
-1
official/benchmark/models/resnet_cifar_main.py
official/benchmark/models/resnet_cifar_main.py
+1
-1
official/benchmark/models/resnet_imagenet_main.py
official/benchmark/models/resnet_imagenet_main.py
+4
-4
official/benchmark/models/resnet_imagenet_test.py
official/benchmark/models/resnet_imagenet_test.py
+1
-1
official/benchmark/models/resnet_imagenet_test_tpu.py
official/benchmark/models/resnet_imagenet_test_tpu.py
+1
-1
official/benchmark/resnet_ctl_imagenet_benchmark.py
official/benchmark/resnet_ctl_imagenet_benchmark.py
+2
-2
No files found.
official/benchmark/keras_imagenet_benchmark.py
View file @
57690c2a
...
@@ -29,7 +29,7 @@ import tensorflow as tf # pylint: disable=g-bad-import-order
...
@@ -29,7 +29,7 @@ import tensorflow as tf # pylint: disable=g-bad-import-order
from
official.benchmark
import
benchmark_wrappers
from
official.benchmark
import
benchmark_wrappers
from
official.benchmark
import
keras_benchmark
from
official.benchmark
import
keras_benchmark
from
official.benchmark.models
import
resnet_imagenet_main
from
official.benchmark.models
import
resnet_imagenet_main
from
official.
vision
.image_classification
import
classifier_trainer
from
official.
legacy
.image_classification
import
classifier_trainer
MIN_TOP_1_ACCURACY
=
0.76
MIN_TOP_1_ACCURACY
=
0.76
MAX_TOP_1_ACCURACY
=
0.77
MAX_TOP_1_ACCURACY
=
0.77
...
...
official/benchmark/models/cifar_preprocessing.py
View file @
57690c2a
...
@@ -23,7 +23,7 @@ import os
...
@@ -23,7 +23,7 @@ import os
from
absl
import
logging
from
absl
import
logging
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.
vision
.image_classification.resnet
import
imagenet_preprocessing
from
official.
legacy
.image_classification.resnet
import
imagenet_preprocessing
HEIGHT
=
32
HEIGHT
=
32
WIDTH
=
32
WIDTH
=
32
...
...
official/benchmark/models/resnet_cifar_main.py
View file @
57690c2a
...
@@ -28,9 +28,9 @@ from official.benchmark.models import cifar_preprocessing
...
@@ -28,9 +28,9 @@ from official.benchmark.models import cifar_preprocessing
from
official.benchmark.models
import
resnet_cifar_model
from
official.benchmark.models
import
resnet_cifar_model
from
official.benchmark.models
import
synthetic_util
from
official.benchmark.models
import
synthetic_util
from
official.common
import
distribute_utils
from
official.common
import
distribute_utils
from
official.legacy.image_classification.resnet
import
common
from
official.utils.flags
import
core
as
flags_core
from
official.utils.flags
import
core
as
flags_core
from
official.utils.misc
import
keras_utils
from
official.utils.misc
import
keras_utils
from
official.vision.image_classification.resnet
import
common
LR_SCHEDULE
=
[
# (multiplier, epoch to start) tuples
LR_SCHEDULE
=
[
# (multiplier, epoch to start) tuples
...
...
official/benchmark/models/resnet_imagenet_main.py
View file @
57690c2a
...
@@ -22,14 +22,14 @@ from absl import flags
...
@@ -22,14 +22,14 @@ from absl import flags
from
absl
import
logging
from
absl
import
logging
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.common
import
distribute_utils
from
official.common
import
distribute_utils
from
official.legacy.image_classification
import
test_utils
from
official.legacy.image_classification.resnet
import
common
from
official.legacy.image_classification.resnet
import
imagenet_preprocessing
from
official.legacy.image_classification.resnet
import
resnet_model
from
official.modeling
import
performance
from
official.modeling
import
performance
from
official.utils.flags
import
core
as
flags_core
from
official.utils.flags
import
core
as
flags_core
from
official.utils.misc
import
keras_utils
from
official.utils.misc
import
keras_utils
from
official.utils.misc
import
model_helpers
from
official.utils.misc
import
model_helpers
from
official.vision.image_classification
import
test_utils
from
official.vision.image_classification.resnet
import
common
from
official.vision.image_classification.resnet
import
imagenet_preprocessing
from
official.vision.image_classification.resnet
import
resnet_model
def
_cluster_last_three_conv2d_layers
(
model
):
def
_cluster_last_three_conv2d_layers
(
model
):
...
...
official/benchmark/models/resnet_imagenet_test.py
View file @
57690c2a
...
@@ -23,8 +23,8 @@ import tensorflow as tf
...
@@ -23,8 +23,8 @@ import tensorflow as tf
from
tensorflow.python.eager
import
context
from
tensorflow.python.eager
import
context
from
official.benchmark.models
import
resnet_imagenet_main
from
official.benchmark.models
import
resnet_imagenet_main
from
official.legacy.image_classification.resnet
import
imagenet_preprocessing
from
official.utils.testing
import
integration
from
official.utils.testing
import
integration
from
official.vision.image_classification.resnet
import
imagenet_preprocessing
@
parameterized
.
parameters
(
@
parameterized
.
parameters
(
...
...
official/benchmark/models/resnet_imagenet_test_tpu.py
View file @
57690c2a
...
@@ -21,8 +21,8 @@ from __future__ import print_function
...
@@ -21,8 +21,8 @@ from __future__ import print_function
from
absl.testing
import
parameterized
from
absl.testing
import
parameterized
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.benchmark.models
import
resnet_imagenet_main
from
official.benchmark.models
import
resnet_imagenet_main
from
official.legacy.image_classification.resnet
import
imagenet_preprocessing
from
official.utils.testing
import
integration
from
official.utils.testing
import
integration
from
official.vision.image_classification.resnet
import
imagenet_preprocessing
class
KerasImagenetTest
(
tf
.
test
.
TestCase
,
parameterized
.
TestCase
):
class
KerasImagenetTest
(
tf
.
test
.
TestCase
,
parameterized
.
TestCase
):
...
...
official/benchmark/resnet_ctl_imagenet_benchmark.py
View file @
57690c2a
...
@@ -23,8 +23,8 @@ from absl import flags
...
@@ -23,8 +23,8 @@ from absl import flags
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.benchmark
import
owner_utils
from
official.benchmark
import
owner_utils
from
official.
vision
.image_classification.resnet
import
common
from
official.
legacy
.image_classification.resnet
import
common
from
official.
vision
.image_classification.resnet
import
resnet_ctl_imagenet_main
from
official.
legacy
.image_classification.resnet
import
resnet_ctl_imagenet_main
from
official.benchmark.perfzero_benchmark
import
PerfZeroBenchmark
from
official.benchmark.perfzero_benchmark
import
PerfZeroBenchmark
from
official.benchmark
import
benchmark_wrappers
from
official.benchmark
import
benchmark_wrappers
from
official.utils.flags
import
core
as
flags_core
from
official.utils.flags
import
core
as
flags_core
...
...
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