koulanurag / tensorboard2seaborn

Plot Tensorflow Summary Event in a Beautiful Way 🌈

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tensorboard2seaborn 🌈

Plot Tensorflow's Summary event in a beautiful way (using seaborn actually) instead of using Tensorboard.

Installation

cd tensorboard2seaborn
python setup.py install

Usage:

Terminal:

Example: tensorboard2seaborn --logdir=/experiments/logs --smoothing=0.7

usage: tensorboard2seaborn [-h] --logdir LOGDIR [--smoothing SMOOTHING]
                           [--no_title] [--no_legend] [--no_axis_labels]

optional arguments:
  -h, --help            show this help message and exit
  --logdir LOGDIR       Path to event files
  --smoothing SMOOTHING
                        smoothing scale .It should be in [0,1] (default: 0.6)
  --no_title            Doesn't show title in any of the graphs
  --no_legend           Doesn't show legend in any of the graphs
  --no_axis_labels      Doesn't show axis labels in any of the graphs

Console:

import tensorboard2seaborn

tensorboard2seaborn.plot(logdir='/experiments/logs')

We expect following structure of the tensflow log events.

└── results
    β”œβ”€β”€ exp2
    β”‚   └── events.out.tfevents....0
    β”œβ”€β”€ exp1
    β”‚   └── events.out.tfevents....0
    β”œβ”€β”€  ....

Following structure is generated comprising of seaborn graphs

└── results
    └── seaborn
        β”œβ”€β”€ group1
        β”‚   β”œβ”€β”€ plot1.png
        β”‚   └── plot2.png
        β”‚   └──  ...
        β”œβ”€β”€ group2
        β”‚   β”œβ”€β”€ plot1.png
        β”‚   └── plot2.png
        β”‚   └──  ...

Demo

Before After
test_accuracy test_accuracy
epoch_loss epoch_loss
batch_loss batch_loss
train_epoch_loss train_epoch_loss

About

Plot Tensorflow Summary Event in a Beautiful Way 🌈

License:Other


Languages

Language:Python 100.0%