Pytorch Lightning WandbLogger log_audio function

Hi,
I’m trying to use WandbLogger in pytorch Lightning to log audio. Looking at this reference page

I see there is only a log_image function.

How can I log audio?

Thank you

Hello @m-mandel !

Unfortunately, our Pytorch Lightning integration does not have an explicitly stated log_audio function in it but you can still upload your audio by wrapping in log_table and our Audio class.

For example:

columns = ['audio_file', 'ground truth', 'prediction']
data = [[wandb.Audio(path), ground_truth, prediction]]
wandb_logger.log_table(key='sample_table', columns=columns, data=data)

Hi, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.