A simple yet powerful tensorboard event log parser/reader:
Allows parsing multiple tensorboard event files in a hierarchical directory structure.
Provides plotting examples for each type of events.
Stores the data in pandas.DataFrame to allow advanced filtering.
Both the documentation and code have high test coverage rate.
Follows PEP 484 with full type hints.
pip install tensorflow # or tensorflow-cpu pip install -U tbparse # requires Python >= 3.7
Note: If you don’t want to install TensorFlow, see Installing without TensorFlow.
We suggest using an additional virtual environment for parsing and plotting the tensorboard events. So no worries if your training code uses Python 3.6 or older versions.
Reading one or more event files with tbparse only requires 5 lines of code:
from tbparse import SummaryReader log_dir = "<PATH_TO_EVENT_FILE_OR_DIRECTORY>" reader = SummaryReader(log_dir) df = reader.scalars print(df)
All events above are generated and plotted in the Gallery notebook in the