What's the right way for summary write to avoi

2019-05-07 16:31发布

问题:

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:

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)

回答1:

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.