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
0f904081
Commit
0f904081
authored
Oct 14, 2016
by
Rohan Jain
Committed by
GitHub
Oct 14, 2016
Browse files
Merge pull request #543 from jart/rollback-open
Revert "Use open() instead of tf.gfile.FastGFile()"
parents
43dad800
e93fdcca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
im2txt/im2txt/data/build_mscoco_data.py
im2txt/im2txt/data/build_mscoco_data.py
+1
-1
inception/inception/data/build_image_data.py
inception/inception/data/build_image_data.py
+1
-1
inception/inception/data/build_imagenet_data.py
inception/inception/data/build_imagenet_data.py
+1
-1
No files found.
im2txt/im2txt/data/build_mscoco_data.py
View file @
0f904081
...
...
@@ -210,7 +210,7 @@ def _to_sequence_example(image, decoder, vocab):
Returns:
A SequenceExample proto.
"""
with
open
(
image
.
filename
,
"r"
)
as
f
:
with
tf
.
gfile
.
FastGFile
(
image
.
filename
,
"r"
)
as
f
:
encoded_image
=
f
.
read
()
try
:
...
...
inception/inception/data/build_image_data.py
View file @
0f904081
...
...
@@ -199,7 +199,7 @@ def _process_image(filename, coder):
width: integer, image width in pixels.
"""
# Read the image file.
with
open
(
filename
,
'r'
)
as
f
:
with
tf
.
gfile
.
FastGFile
(
filename
,
'r'
)
as
f
:
image_data
=
f
.
read
()
# Convert any PNG to JPEG's for consistency.
...
...
inception/inception/data/build_imagenet_data.py
View file @
0f904081
...
...
@@ -313,7 +313,7 @@ def _process_image(filename, coder):
width: integer, image width in pixels.
"""
# Read the image file.
with
open
(
filename
,
'r'
)
as
f
:
with
tf
.
gfile
.
FastGFile
(
filename
,
'r'
)
as
f
:
image_data
=
f
.
read
()
# Clean the dirty data.
...
...
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