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

梦想的初衷 提交于 2019-12-22 07:54:12

问题


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.



来源:https://stackoverflow.com/questions/38636848/whats-the-right-way-for-summary-write-to-avoid-overlapping-on-tensorboard-when

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!