Skip to content

WandBLogger and TensorboardLogger have different APIs for logging audio #2791

@turian

Description

@turian

🚀 Feature

The following code doesn't work:

logger = WandBLogger()
logger.writer

This is how you would typically add audio with a tensorboard logger:

logger.writer.add_audio('mixture', x.t(), engine.state.epoch)

The workaround (similar to discussed in Lightning-AI/pytorch-lightning#7028) would be to use the underlying _wandb object:

logger._wandb.log({"validation": [wandb.Audio(x.t(), caption="mixture", sample_rate=44100)]})
logger._wandb.log({"validation": [wandb.Audio(x.t(), caption="vocals", sample_rate=44100)]})

Is there a proposal for a standardized media logging API?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions