I'm using Wandb logger to log some images inside the validation step of my model. Here is the code that I have used that,
if batch_idx % 100 == 0:
grid = torchvision.utils.make_grid(front_img)
imgs = [i for i in front_img[:8]]
wandb_logger.log_image(key='front_image', image=imgs)
When I remove this line Wandb logs all the other parameters.
But when I tried to log the images i get this error saying,
But the documentation sayes there is a log_image
attribute in WandbLogger
.
Anyone knows the reason for this error?