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
b6866caa
Commit
b6866caa
authored
Mar 22, 2018
by
Raphael Zumer
Browse files
Read code file data as binary
parent
5d854ddc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/compression/image_encoder/decoder.py
research/compression/image_encoder/decoder.py
+1
-1
No files found.
research/compression/image_encoder/decoder.py
View file @
b6866caa
...
...
@@ -71,7 +71,7 @@ def main(_):
return
contents
=
''
with
tf
.
gfile
.
FastGFile
(
FLAGS
.
input_codes
,
'r'
)
as
code_file
:
with
tf
.
gfile
.
FastGFile
(
FLAGS
.
input_codes
,
'r
b
'
)
as
code_file
:
contents
=
code_file
.
read
()
loaded_codes
=
np
.
load
(
io
.
BytesIO
(
contents
))
assert
[
'codes'
,
'shape'
]
not
in
loaded_codes
.
files
...
...
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