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
ae5adb59
Commit
ae5adb59
authored
Nov 06, 2017
by
Neal Wu
Browse files
Fix a line over 80 chars
parent
c6479e77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/resnet/cifar10_main.py
official/resnet/cifar10_main.py
+2
-1
No files found.
official/resnet/cifar10_main.py
View file @
ae5adb59
...
...
@@ -127,7 +127,8 @@ def preprocess_image(image, is_training):
"""Preprocess a single image of layout [height, width, depth]."""
if
is_training
:
# Resize the image to add four extra pixels on each side.
image
=
tf
.
image
.
resize_image_with_crop_or_pad
(
image
,
_HEIGHT
+
8
,
_WIDTH
+
8
)
image
=
tf
.
image
.
resize_image_with_crop_or_pad
(
image
,
_HEIGHT
+
8
,
_WIDTH
+
8
)
# Randomly crop a [_HEIGHT, _WIDTH] section of the image.
image
=
tf
.
random_crop
(
image
,
[
_HEIGHT
,
_WIDTH
,
_DEPTH
])
...
...
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