MCPcopy Create free account
hub / github.com/CompVis/zigma / log_image

Function log_image

wandb_utils.py:85–88  ·  view source on GitHub ↗
(sample, step=None)

Source from the content-addressed store, hash-verified

83
84
85def log_image(sample, step=None):
86 if is_main_process():
87 sample = array2grid(sample, to255=True)
88 wandb.log({f"samples": wandb.Image(sample), "train_step": step})
89
90
91def array2grid(x, to255=False):

Callers

nothing calls this directly

Calls 2

is_main_processFunction · 0.85
array2gridFunction · 0.85

Tested by

no test coverage detected