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
549d620f
Commit
549d620f
authored
Aug 09, 2022
by
Fan Yang
Committed by
A. Unique TensorFlower
Aug 09, 2022
Browse files
Internal change
PiperOrigin-RevId: 466436335
parent
049cac4c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/vision/serving/image_classification.py
official/vision/serving/image_classification.py
+2
-1
No files found.
official/vision/serving/image_classification.py
View file @
549d620f
...
@@ -40,6 +40,7 @@ class ClassificationModule(export_base.ExportModule):
...
@@ -40,6 +40,7 @@ class ClassificationModule(export_base.ExportModule):
def
_build_inputs
(
self
,
image
):
def
_build_inputs
(
self
,
image
):
"""Builds classification model inputs for serving."""
"""Builds classification model inputs for serving."""
# Center crops and resizes image.
# Center crops and resizes image.
if
self
.
params
.
task
.
train_data
.
aug_crop
:
image
=
preprocess_ops
.
center_crop_image
(
image
)
image
=
preprocess_ops
.
center_crop_image
(
image
)
image
=
tf
.
image
.
resize
(
image
=
tf
.
image
.
resize
(
...
...
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