git clone git@github.com:IAmS4n/TensorBoard_Plugin_WSI.git
cd TensorBoard_Plugin_WSI/
python setup.py install --user
import tensorflow as tf
from tensorboard_plugin_wsi import summary_v2
tf.compat.v1.enable_eager_execution()
tf = tf.compat.v2
writer = tf.summary.create_file_writer("demo_logs")
with writer.as_default():
summary_v2.wsi("wsi_1", "Path to a wsi file")
summary_v2.wsi("wsi_2", "Path to a wsi file")
The command to run a TensorBoard is normal.
tensorboard --logdir demo_logs/