Unanswered
Convert the original dtype=int32
Convert original dtype=uint8
Is There A Way To Automatically Upload Images That Were Uploaded With
Hi Alek,
If I understand correctly, you're basically reporting images to be shown in tensorboard (with tf.summary), am I correct?
When I use this code, I get images logged:
` import tensorflow as tf
from clearml import Task
Task.init('test','test tb image')
w = tf.summary.create_file_writer('test/logs')
with w.as_default():
image1 = tf.random.uniform(shape=[8, 8, 1])
image2 = tf.random.uniform(shape=[8, 8, 1])
tf.summary.image("grayscale_noise", [image1, image2], step=0)
Convert the original dtype=int32 Tensor
into dtype=float64
.
rgb_image_float = tf.constant([
[[1000, 0, 0], [0, 500, 1000]],
]) / 1000
tf.summary.image("picture", [rgb_image_float], step=0)
Convert original dtype=uint8 Tensor
into proper range.
rgb_image_uint8 = tf.constant([
[[1, 1, 0], [0, 0, 1]],
], dtype=tf.uint8) * 255
tf.summary.image("picture", [rgb_image_uint8], step=1) `
160 Views
0
Answers
2 years ago
one year ago
Tags