Skip to content

Instantly share code, notes, and snippets.

@ChunML
Created December 12, 2018 04:57
Show Gist options
  • Save ChunML/d68ec9bc14833523deaae115320b2af0 to your computer and use it in GitHub Desktop.
Save ChunML/d68ec9bc14833523deaae115320b2af0 to your computer and use it in GitHub Desktop.
img, label = one_shot_input_fn(filenames, labels)
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
res_imgs = []
res_labels = []
for _ in range(16):
res_img, res_label = sess.run([img, label])
res_imgs.append(res_img)
res_labels.append(res_label)
visualize_dataset(res_imgs, res_labels)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment