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
5d854ddc
Commit
5d854ddc
authored
Mar 22, 2018
by
Raphael Zumer
Browse files
Read image data as binary
parent
7e4c66b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/compression/image_encoder/encoder.py
research/compression/image_encoder/encoder.py
+1
-1
No files found.
research/compression/image_encoder/encoder.py
View file @
5d854ddc
...
...
@@ -59,7 +59,7 @@ def main(_):
print
(
'
\n
--iteration must be between 0 and 15 inclusive.
\n
'
)
return
with
tf
.
gfile
.
FastGFile
(
FLAGS
.
input_image
)
as
input_image
:
with
tf
.
gfile
.
FastGFile
(
FLAGS
.
input_image
,
'rb'
)
as
input_image
:
input_image_str
=
input_image
.
read
()
with
tf
.
Graph
().
as_default
()
as
graph
:
...
...
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