Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Support ClasswiseWrapper Metrics for Classification Tasks #1497

Open
newzealandpaul opened this issue Dec 8, 2022 · 0 comments
Open

Support ClasswiseWrapper Metrics for Classification Tasks #1497

newzealandpaul opened this issue Dec 8, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@newzealandpaul
Copy link

馃殌 Feature

Currently torchmetrics ClasswiseWrapper, which allows for per-class metrics, is not supported by Lightning.

Motivation

Per-class metrics are essential for many classification tasks, to give insight into model performance.

Pitch

Currently passing ClasswiseWrapper() metrics when creating a new instance of a Lightning model causes an error in flash/core/model.py:373 because ClasswiseWrapper objects do not have a _forward_cache attribute. Fixing that, causes an error in trainer/connectors/logger_connector/result.py:548 as it expects a tensor not a dict of tensors.

Users would expect that torchmetric features are natively supported.

@newzealandpaul newzealandpaul added enhancement New feature or request help wanted Extra attention is needed labels Dec 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant