Skip to content

A helper script to merge tfevent files and correct the relative time. Useful when the training was interrupted and restarted.

Notifications You must be signed in to change notification settings

HeyangQin/tfevent_merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

tfevent_merger

Tensorboard calculates the "Relative" field by comparing the wallclock time of all data entries and the wallclock time of the first entry. Thus when you interrupt and restart the training, the "Relative" field includes the period that you are not actually running the training. I put together this helper script to trim the idle periods from the "Relative" field and make it show the actual time the training runs.

WARNING: This script will change the wallclock time (in order to show correct relative time).

To use it, simply change the your_tfevent_folder, output_folder and threshold(seconds). It only changes the sclars. To use on other fields, feel free to put loop over event_acc.Tags().

Requirements

tensorboard
Pytorch

About

A helper script to merge tfevent files and correct the relative time. Useful when the training was interrupted and restarted.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages