• Stars
    star
    149
  • Rank 248,619 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A library make TensorBoard working in Colab Google

TensorBoardColab

A library make TensorBoard working in Colab Google

Install

pip install tensorboardcolab

In Colab Google Jupyter, for auto install and ensure using latest version of TensorBoardColab, please add "!pip install -U tensorboardcolab" at the first line of Jupyter cell

Requirements

Tensorflow
TensorBoard
npm

Import

from tensorboardcolab import *

Initialization

tbc=TensorBoardColab()

After initialization, TensorBoard link will be shown in Colab Google Juyter output

PS: If Initialization failed and keep retrying forever, please increase startup_waiting_time larger than 8 seconds as below

tbc=TensorBoardColab(startup_waiting_time=30)

Add to Keras callback

model.fit(x,y,epochs=100000,callbacks=[TensorBoardColabCallback(tbc)])

Save picture to TensorBoard

tbc.save_image(title="test_title", image=image)

Save a value to graph of TensorBoard

tbc.save_value("graph_name", "line_name", epoch, value)
.
.
.
tbc.flush_line(line_name)
tbc.close()

Thanks

ngrok !