Skip to content

Instantly share code, notes, and snippets.

View tb-rescale-scalars.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This script rescales scalar values in TensorBoard log files.
# It does the modification in-place (so make back ups!).
#
# Example:
#
# find . -name "*.tfevents*" -exec tb-rescale-scalars.py {} "iteration-time/samples per second" 1000 \;
#