You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
🚀 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.
The text was updated successfully, but these errors were encountered: