Images not shown
Created by: findmyway
The following code snippet works well with v1.0.0
from visualdl import *
logdir = "tmp"
logger = LogWriter(logdir, sync_cycle=100)
# mark the components with 'train' label.
with logger.mode("train"):
image_input = logger.image("images/input", 1)
import numpy as np
for _ in range(100):
image_input.start_sampling()
image_input.add_sample([28, 28], np.random.rand(28*28) * 255)
image_input.finish_sampling()
However, with v1.2.1 the image is missing in the front end.
I'm pretty sure that data is saved to the log dir correctly by using LogReader
.
Ref #529