Skip to content

zhaoxianhe/Swiss-Army-Tensorboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swiss Army Tensorboard

A tool which helps you to release the true potential of Tensorboard.

tfboard sample

Loggers

You can keep almost everything under a single Tensorboard, which can be really useful for presentations, tutorials, experiment results.

  • Text logger
  • Continuous text logger
  • Scalar logger
  • Histogram logger
  • Image logger

Setup

pip install git+https://github.com/gaborvecsei/Swiss-Army-Tensorboard.git

(Or you can clone the repo and python setup.py install)

Example

There is an example for every logger inside logger_examples.py.

Just a quick snippet how easy to use this package:

import numpy as np
from swiss_army_tensorboard import tfboard_loggers


scalar_logger = tfboard_loggers.TFBoardScalarLogger("./log_folder")

for i, t in enumerate(np.arange(0.0, 1.0, 0.01)):
    val = np.sin(2 * np.pi * t)
    scalar_logger.log_scalar("scalar_tag", val, i)

Text logger output (inside Tensorboard):

text log sample

Reference

Image and Histogram loggers are made based on the following gist:

[1] https://gist.github.com/gyglim/1f8dfb1b5c82627ae3efcfbbadb9f514

Keras train-validation callbacks is based on this stackoverflow answer:

[2] https://stackoverflow.com/a/48393723/5108062

About

Gábor Vecsei

About

A tool which helps you to release the true potential of Tensorboard

Resources

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Python 100.0%