wandb: [App]: define_metrics does not work with media type keys

Current Behavior

Assume the following code:

        wandb.define_metric("custom_step")
        wandb.define_metric("image_0", step_metric='custom_step')
        wandb.log(
            {
                'custom_step' : steps,
                'image_0': wandb.Image(image),
            }
        )

Then wandb can’t show the custom metric vs media type plot, it will show with default step (current wandb step) instead.

Expected Behavior

        wandb.define_metric("custom_step")
        wandb.define_metric("metric_0", step_metric='custom_step')
        wandb.log(
            {
                'custom_step' : steps,
                'metric_0' : 0,
            }
        )

this works well.

Steps To Reproduce

Define the custom metric with the code above, then try to log the images, to see plotted image against custom metrics.

Screenshots

No response

Environment

OS: Linux / Windows *all

Browsers: Chrome / Microsoft Edge

Version: 0.15.12

Additional Context

Related : https://github.com/wandb/wandb/issues/6077

About this issue

Most upvoted comments

Thank you for flagging @vmichals , we’ll definitely include this to our documentation. Is it possible for you to provide the doc link where you are referencing to?

Hello @aria1th We’re glad that this works now for you. And as for the custom steps using Media Types, we will file this as a Feature Request. For now we will mark this as resolved. Feel free to reach us out again for any concerns.