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
01748b24
Commit
01748b24
authored
Mar 16, 2020
by
Allen Wang
Committed by
A. Unique TensorFlower
Mar 16, 2020
Browse files
Internal changes.
PiperOrigin-RevId: 301237793
parent
ad710aa1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
official/vision/image_classification/resnet/resnet_imagenet_main.py
...ision/image_classification/resnet/resnet_imagenet_main.py
+2
-4
official/vision/image_classification/test_utils.py
official/vision/image_classification/test_utils.py
+1
-1
No files found.
official/vision/image_classification/resnet/resnet_imagenet_main.py
View file @
01748b24
...
...
@@ -26,14 +26,13 @@ from absl import logging
import
tensorflow
as
tf
import
tensorflow_model_optimization
as
tfmot
from
official.benchmark.models
import
trivial_model
from
official.modeling
import
performance
from
official.utils.flags
import
core
as
flags_core
from
official.utils.logs
import
logger
from
official.utils.misc
import
distribution_utils
from
official.utils.misc
import
keras_utils
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
...
...
@@ -180,8 +179,7 @@ def run(flags_obj):
# TODO(hongkuny): Remove trivial model usage and move it to benchmark.
if
flags_obj
.
use_trivial_model
:
model
=
trivial_model
.
trivial_model
(
imagenet_preprocessing
.
NUM_CLASSES
)
model
=
test_utils
.
trivial_model
(
imagenet_preprocessing
.
NUM_CLASSES
)
elif
flags_obj
.
model
==
'resnet50_v1.5'
:
model
=
resnet_model
.
resnet50
(
num_classes
=
imagenet_preprocessing
.
NUM_CLASSES
)
...
...
official/
benchmark/models/trivial_model
.py
→
official/
vision/image_classification/test_utils
.py
View file @
01748b24
...
...
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""
A trivial model for Kera
s."""
"""
Test utilities for image classification task
s."""
from
__future__
import
absolute_import
from
__future__
import
division
...
...
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