server icon indicating copy to clipboard operation
server copied to clipboard

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

Open wztdream opened this issue 3 years ago • 5 comments

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.

wztdream avatar Nov 05 '22 08:11 wztdream

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

vanpelt avatar Nov 07 '22 01:11 vanpelt

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.

wztdream avatar Nov 08 '22 11:11 wztdream

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

luisbergua avatar Nov 22 '22 12:11 luisbergua

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?

wztdream avatar Nov 23 '22 04:11 wztdream

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

luisbergua avatar Nov 23 '22 10:11 luisbergua