Skip to content

Commit

Permalink
Merge pull request tensorflow#834 from BoyuanJiang/patch-2
Browse files Browse the repository at this point in the history
Update build_image_data.py
  • Loading branch information
nealwu authored Jan 5, 2017
2 parents bfa1bb1 + 9997b25 commit 1751406
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions inception/inception/data/build_image_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ def _convert_to_example(filename, image_buffer, label, text, height, width):
example = tf.train.Example(features=tf.train.Features(feature={
'image/height': _int64_feature(height),
'image/width': _int64_feature(width),
'image/colorspace': _bytes_feature(colorspace),
'image/colorspace': _bytes_feature(tf.compat.as_bytes(colorspace)),
'image/channels': _int64_feature(channels),
'image/class/label': _int64_feature(label),
'image/class/text': _bytes_feature(text),
'image/format': _bytes_feature(image_format),
'image/filename': _bytes_feature(os.path.basename(filename)),
'image/encoded': _bytes_feature(image_buffer)}))
'image/class/text': _bytes_feature(tf.compat.as_bytes(text)),
'image/format': _bytes_feature(tf.compat.as_bytes(image_format)),
'image/filename': _bytes_feature(tf.compat.as_bytes(os.path.basename(filename))),
'image/encoded': _bytes_feature(tf.compat.as_bytes(image_buffer))}))
return example


Expand Down

0 comments on commit 1751406

Please sign in to comment.