Tensorboard,只显示最新的tfevents

Tensorboard, only show latest tfevents

Tensboard 显示它在给定日志目录中找到的所有事件。

如果我 运行 我的训练(或其他)多次,我将在 logdir 中有多个 tfevents 文件。 Tensorboard 将在一个看起来像 st运行ge.

的图表中显示所有这些变量摘要合并在一起

在标准输出上,它会这样写:

WARNING:tensorflow:Found more than one graph event per run. Overwriting the graph with the newest event.
WARNING:tensorflow:Found more than one "run metadata" event with tag step_0000. Overwriting it with the newest event.

如何让它只显示最新 tfevents 文件中的 summaries/events,从而忽略所有旧的 tfevents 文件?

尝试将您的 tfevents 文件放入名为 运行 的唯一目录中,如 documented here