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

Is it possible to tell wandb show my images as soon as possible? #96

Open
wztdream opened this issue Nov 5, 2022 · 5 comments
Open

Comments

@wztdream
Copy link

wztdream commented Nov 5, 2022

Hi,
I understand that wandb will not immediately sync and show the logged images(or other media data) for efficiency concern.

But there are situations that we did not concern the efficiency, we only want to see the logged images as soon as possible, for example, when you are debugging the model and what to see the logged images as soon as possible, maybe you will stop the run when see the images and find this run is useless instead of wait for while and stop it.

So I think it will be good to allow users to configure wandb and tell it show the images as soon as possible.

@vanpelt
Copy link
Contributor

vanpelt commented Nov 7, 2022

How long of a delay are you seeing? It generally shouldn't take longer than 30 seconds for any logged images to appear.

@wztdream
Copy link
Author

wztdream commented Nov 8, 2022

How long of a delay are you seeing? It generally shouldn't take longer than 30 seconds for any logged images to appear.

It usually takes about 30 seconds or so, like you said, and some times(not very often) takes much longer may be a few minutes, especially when I kill the run too often.

For normal run 30 seconds is not a problem, what I suggest is mainly for debug purpose, in that case we may need to run a lot of very short runs, and 30 seconds is a little a annoy :) Any way, it seems to have this customization is compete to some sense and may cover some edge use cases.

@luisbergua
Copy link

Hi @wztdream! Could adding os.system('wandb sync') to your code be useful?

@wztdream
Copy link
Author

Hi @wztdream! Could adding os.system('wandb sync') to your code be useful?

Thank you, do I need to add this line for each wandb.log or just add it at the top of my code?

@luisbergua
Copy link

If you'd like to synchronize just after each training epoch, you should add it for every wandb.log()

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

3 participants