Skip to content

Instantly share code, notes, and snippets.

@nogawanogawa
Created May 2, 2018 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nogawanogawa/e0160e90a7bbaf8942a76da450745335 to your computer and use it in GitHub Desktop.
Save nogawanogawa/e0160e90a7bbaf8942a76da450745335 to your computer and use it in GitHub Desktop.
def write_jpg(data):
sample = tf.image.encode_jpeg(data, format='rgb', quality=100)
return sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment