Hello, I’m using Weights & Biases (W&B) to log images during my validation loops using the wandb.log_table()
function.
Specifically, after each training epoch, I log images along with some model outputs in tables during validation. I would like to programmatically download all the images I’ve logged in these tables so I can create figures representing the improvement of the generated images over time.
I can download the .json file that has the names and paths to the images but when passing the file’s names to file() :
file = run.file(key)
file.download(root=download_dir)
Where key is something like:
media/images/IMAGE_ID.png
I am getting:
404 Client Error: Not Found for url: https://api.wandb.ai/files/USER_NAME/PROJECT/RUN_ID/root/media/images/IMAGE_ID.png
My Question: How can I programmatically access and download the images that I’ve logged in tables using wandb.log_table()
? I’m looking for a way to retrieve these images using the W&B API so I can process and visualize them locally.
Any guidance or examples on how to do this would be greatly appreciated!
Thank you!