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
a305455e
Commit
a305455e
authored
Mar 23, 2018
by
Raphael Zumer
Browse files
MS-SSIM: Read image data as binary
parent
b6866caa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
research/compression/image_encoder/msssim.py
research/compression/image_encoder/msssim.py
+2
-2
No files found.
research/compression/image_encoder/msssim.py
View file @
a305455e
...
...
@@ -199,9 +199,9 @@ def main(_):
return
with
tf
.
gfile
.
FastGFile
(
FLAGS
.
original_image
)
as
image_file
:
img1_str
=
image_file
.
read
()
img1_str
=
image_file
.
read
(
'rb'
)
with
tf
.
gfile
.
FastGFile
(
FLAGS
.
compared_image
)
as
image_file
:
img2_str
=
image_file
.
read
()
img2_str
=
image_file
.
read
(
'rb'
)
input_img
=
tf
.
placeholder
(
tf
.
string
)
decoded_image
=
tf
.
expand_dims
(
tf
.
image
.
decode_png
(
input_img
,
channels
=
3
),
0
)
...
...
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