TensorFlow - Importing data from a TensorBoard TFEvent file?

前端 未结 7 1729
刺人心
刺人心 2020-12-04 08:50

I\'ve run several training sessions with different graphs in TensorFlow. The summaries I set up show interesting results in the training and validation. Now, I\'d like to ta

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-04 09:40

    As Fabrizio says, TensorBoard is a great tool for visualizing the contents of your summary logs. However, if you want to perform a custom analysis, you can use tf.train.summary_iterator() function to loop over all of the tf.Event and tf.Summary protocol buffers in the log:

    for summary in tf.train.summary_iterator("/path/to/log/file"):
        # Perform custom processing in here.
    

    UPDATE for tf2:

    from tensorflow.python.summary.summary_iterator import summary_iterator
    

    You need to import it, that module level is not currently imported by default. On 2.0.0-rc2

提交回复
热议问题