Search code examples
tensorflowtensorboard

What's the right way for summary write to avoid overlapping on tensorboard when restore a model


I wrote a CNN image classifier with tensorflow and use tensorboard to monitor the training. However when I stop and restore from a checkpoint, there are overlaps like:

IMG

I followed the instruction on the Tensorboard README to write a SessionStatus.START message to the summary file, but it doesn't seem to work.


This is my code:

summary_writer.add_session_log(SessionLog(status=SessionLog.START),global_step=step)

Solution

  • i dont know if its an answer, but if you put the global_step variable into a tensorflow variable (to store it with your data) and then, when you restore the model, the global_step variable is also restored to its old value, it will go on from there in tensorboard, or? Sorry,i have not tested it.