Skip to content
Discussion options

You must be logged in to vote

As an update, I managed to develop a work around by iterating over the tensor that contained multi-label metrics that are evaluated on a class level. I.e, this function coulds do it

    for idx, metric_value in enumerate(class_metrics):  # Iterate over tensor elements.
        if mode == "debugging":
            print(f"{phase}_{metric}_{class_labels[idx]}: {metric_value}")

        else:  # Note we cannot have forward slashes within class_labels when logging.
            self.log(
                f"{phase}_{metric}_{class_labels[idx]}",
                metric_value,
                on_step=False,
                on_epoch=True,
                sync_dist=self.multi_gpu,
            )

Wher…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by deepbakes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment