Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Refresh logdir subdirectories #6352

Closed
Krasner opened this issue Apr 29, 2023 · 3 comments
Closed

[Question] Refresh logdir subdirectories #6352

Krasner opened this issue Apr 29, 2023 · 3 comments

Comments

@Krasner
Copy link

Krasner commented Apr 29, 2023

I'm unclear if this behavior is intended or not: it seems that Tensorboard will monitor and refresh events after the initial logdir is set, but if new subdirectories show up in logdir those events will not show up.

The subdirectory iterator in uploader/logdir_loader.py in function synchronize_runs() which calls io_wrapper.GetLogdirSubdirectories is only called once upon creation of TensorBoardUploader

for subdir in io_wrapper.GetLogdirSubdirectories(self._logdir):

Therefore if new subdirectories in logdir appear while Tensorboard is already running, io_wrapper.GetLogdirSubdirectories will not be called again and thus those new subdirectories are not detected.

Is this correct? If so, can a logdir subdirectory monitor be added?

@bmd3k
Copy link
Contributor

bmd3k commented May 2, 2023

Hi, in fact TensorBoard should discover new subdirectories for as long as the tensorboard process is running.

If you are experiencing different behavior then we will need additional information to help you troubleshoot.

@Krasner
Copy link
Author

Krasner commented May 2, 2023

@bmd3k this is related to issue #6349 where I am trying to access an aws s3 folder as logdir.
This is a consistent problem I am seeing with the subdirectories not being updated.

All the diagnostics are in that issue.
Thanks!

@Krasner
Copy link
Author

Krasner commented May 8, 2023

@bmd3k
We can close this - in the issue above #6349 I implemented s3fs walk to iterate through my s3 bucket since tf.io.gfile was very slow. apparently s3.walk doesn't automatically reindex the bucket if called again unless refresh flag is set explicitly:
for dir_path, _, filenames in s3.walk(top, topdown=True, refresh=True):

With this flag the subdirectories are updated. But the issue #6349 still stands and still needs addressing.

@Krasner Krasner closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants