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
eae72a5a
Unverified
Commit
eae72a5a
authored
Jan 29, 2018
by
Neal Wu
Committed by
GitHub
Jan 29, 2018
Browse files
Merge branch 'master' into fix-five-undefined-names
parents
e465b161
10805b06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
58 deletions
+60
-58
tutorials/image/cifar10/cifar10_input.py
tutorials/image/cifar10/cifar10_input.py
+60
-58
No files found.
tutorials/image/cifar10/cifar10_input.py
View file @
eae72a5a
...
...
@@ -157,6 +157,7 @@ def distorted_inputs(data_dir, batch_size):
# Create a queue that produces the filenames to read.
filename_queue
=
tf
.
train
.
string_input_producer
(
filenames
)
with
tf
.
name_scope
(
'data_augmentation'
):
# Read examples from files in the filename queue.
read_input
=
read_cifar10
(
filename_queue
)
reshaped_image
=
tf
.
cast
(
read_input
.
uint8image
,
tf
.
float32
)
...
...
@@ -226,6 +227,7 @@ def inputs(eval_data, data_dir, batch_size):
if
not
tf
.
gfile
.
Exists
(
f
):
raise
ValueError
(
'Failed to find file: '
+
f
)
with
tf
.
name_scope
(
'input'
):
# Create a queue that produces the filenames to read.
filename_queue
=
tf
.
train
.
string_input_producer
(
filenames
)
...
...
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