Created
June 16, 2020 17:23
-
-
Save sgodfrey66/dc0ed56a8d2947e235f0f57f060a1b65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a TensorBoard writer for sample images | |
image_writer=tf.summary.create_file_writer(logdir=image_log) | |
# Generate an image grid in a format that can be used by TensorBoard | |
rnd_imgs=image_funcs.create_TB_image_grid(dataset=ds, | |
no_log_images=no_log_images, | |
log_images_split=log_images_split) | |
# Add it to the TensorBoard logs | |
with image_writer.as_default(): | |
tf.summary.image(name=rnd_imgs[0], data=rnd_imgs[2], | |
max_outputs=no_log_images, step=0, | |
description=rnd_imgs[1]) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment