Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit e87e85f

Browse files
lgeigerCopybara-Service
authored and
Copybara-Service
committed
Merge of PR #1454
PiperOrigin-RevId: 236372024
1 parent f0f0948 commit e87e85f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensor2tensor/data_generators/mscoco.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def get_vocab():
125125
for image_info, labels in data:
126126
image_filename = image_info[0]
127127
image_filepath = os.path.join(tmp_dir, prefix, image_filename)
128-
with tf.gfile.Open(image_filepath, "rb") as f:
128+
with tf.gfile.Open(image_filepath, "r") as f:
129129
encoded_image_data = f.read()
130130
height, width = image_info[1], image_info[2]
131131
for label in labels:

0 commit comments

Comments
 (0)