为什么与 rsync 一起使用时 Tensorboard 不刷新?

Fig*_*ity 5 rsync tensorflow tensorboard

我正在远程机器上运行 tensorflow 实验,不断写入同一个events.out.tfevents.xxx文件。我希望 tensorboard 每分钟左右自动刷新一次,显示新日志。当使用 sshfs 在我的笔记本电脑上安装远程机器并使用安装的目录运行 tensorboard 时,这确实有效。

但是,当使用 rsync 复制文件并在本地文件上运行 tensorboard 时,tensorboard 永远不会刷新,我必须重新启动它才能获得更新。

这是我的 rsync 命令:

rsync -aP --del -e ssh server_name:folder_on_server local_folder --exclude='*checkpoints*' --exclude='*.json' --exclude='*.DS_Store'
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激!

Les*_*rel 7

这是 Tensorboard 的一个已知问题,请在 github 上查看此问题

这是该问题的引述(重点是我的):

看起来当张量板从本地目录读取事件文件时 - 它不会注意到事件文件已被删除并重新创建(当您使用 [...] rsync 同步数据时,这是非常有效的情况)

一种解决方法是--inplace在 rsync 命令中用作选项。