How to synchronize the steps visualized for images

Hello, I have question about visualizing image with wandb.

I want to visualize the images within the same step

I am using the code below.

    fake = wandb.Image(x_fake[0])
    real = wandb.Image(target[0])
    wandb.log({'fake': fake})
    wandb.log({'real': real})

but wandb is showing the different step of images.

how can I sync both image with same step??

Hi,

Thanks for joining the W&B community, sorry the response here was so delayed.

You can sync steps between different log calls by passing in the step argument or commit=False on the first call.