tensorboard for pytorch (and chainer, mxnet, numpy, ...)
tensorboard for pytorch (and chainer, mxnet, numpy, ...)
Write TensorBoard events with simple function call.
The current release (v2.6.5) is tested with PyTorch 2.6 / torchvision 0.21.0 / tensorboard 2.19.0 on Python 3.10 to 3.13
Support scalar, image, figure, histogram, audio, text, graph, onnx_graph, embedding, pr_curve, mesh, hyper-parameters
and video summaries.
pip install tensorboardX
or build from source:
pip install 'git+https://github.com/lanpa/tensorboardX'
You can optionally install crc32c to speed up.
pip install crc32c
Starting from tensorboardX 2.1, You need to install soundfile for the add_audio() function (200x speedup).
pip install soundfile
python examples/demo.pytensorboard --logdir runs…TensorboardX now supports logging directly to Comet. Comet is a free cloud based solution that allows you to automatically track, compare and explain your experiments. It adds a lot of functionality on top of tensorboard such as dataset management, diffing experiments, seeing the code that generated the results and more.
This works out of the box and just require an additional line of code. See a full code example in this Colab Notebook
To add more ticks for the slider (show more image history), check https://github.com/lanpa/tensorboardX/issues/44 or https://github.com/tensorflow/tensorboard/pull/1138
Temporary GIF file may not be deleted on Windows in `make_video()`
Escape strings in projector configuration files
Respect write_to_disk for embeddings and hparams
Give same-second event writers distinct file names
type hints not correctly configured
EOFerror at the end of multiprocessing
Multiple scalars in the same plot, without separate runs
Failure to upload summary to GCP
SummaryWriter segfaults python
Support add_mesh for visdom writer?