"examples/pytorch/vscode:/vscode.git/clone" did not exist on "3a2a5031e97031061674b22f91a2a328eda73718"
Commit dd983ea6 authored by Mahmoud Lababidi's avatar Mahmoud Lababidi Committed by Neal Wu
Browse files

add binary to file reading

parent 275f1446
...@@ -198,7 +198,7 @@ def _process_image(filename, coder): ...@@ -198,7 +198,7 @@ def _process_image(filename, coder):
width: integer, image width in pixels. width: integer, image width in pixels.
""" """
# Read the image file. # Read the image file.
with tf.gfile.FastGFile(filename, 'r') as f: with tf.gfile.FastGFile(filename, 'rb') as f:
image_data = f.read() image_data = f.read()
# Convert any PNG to JPEG's for consistency. # Convert any PNG to JPEG's for consistency.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment