Use Tensorboard to generate static pages

891 views
Skip to first unread message

Rohit Girdhar

unread,
Jun 23, 2016, 3:59:10 PM6/23/16
to Discuss
Hi!
I am able to use tensorboard to run a server and display very useful plots of the training process. However I want to store the generated html/css/js files somewhere so that I can use my apache server to host them, and don't have to run an instance of tensorboard for each experiment. I searched a lot but don't seem to find any pointers in this direction. Is it possible with tensorboard, and if so, can someone point me to how to do it?

Thanks!
Rohit

Minghuang Ma

unread,
Jun 23, 2016, 4:48:41 PM6/23/16
to Discuss

Dan Mané

unread,
Jun 24, 2016, 3:32:57 AM6/24/16
to Minghuang Ma, Discuss
First, are you sure you don't want to create a single live TensorBoard for all of your data? Remember, one TensorBoard can show more than one experiment, because it can show arbitrarily many "runs", and will show you charts comparing them, will let you turn them on and off, etc. You can do this by making a directory structure where each of your experiments is in a separate subdirectory.

If you really want a static TensorBoard, this is possible too, although it is not supported. To see an example, go to tensorflow.org/tensorboard

Here is what you need to do:
- You need to transform the data from .tfevents. into json. There is a script that does this: tensorboard/scripts/serialize_tensorboard.py. (You will need to use Bazel to run it.)
- You'll want to use a demo mode of tf-tensorboard  configured to load data from the folder where you've put the json data.
- You'll want to package all the html, the simplest way to do this is to use vulcanize with --inline-scripts, --inline-css, etc. (To get started, I would get the TensorBoard development environment set up, and the tensorboard/demo/index.html loaded so you can learn from it.)

FYI, I am making some changes to this code, specifically removing tf-tensorboard-demo.html and folding it into tf-tensorboard.html, so you may want to wait a day or two so the code doesn't move under you. 

--
You received this message because you are subscribed to the Google Groups "Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+u...@tensorflow.org.
To post to this group, send email to dis...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/discuss/609d2513-c80c-46a5-853d-44ee2316322c%40tensorflow.org.

Harshvardhan Gupta

unread,
Jun 6, 2018, 2:59:09 AM6/6/18
to Discuss
Hi, I want to generate static hostable tensor board data (mainly embeddings, but standalone embedding projector is now old compared to tensorboard ). 
Most of the files you mentioned seem to have changed. Could you post a more recent example to achieve the same thing? 
I mantain https://github.com/harveyslash/TSNE-Embedding-Visualisation and would to present the newest (and useful) features of tensorflow in a standalone package. 

thanks
Reply all
Reply to author
Forward
0 new messages