minerva.analysis.metrics.pixel_accuracy
Classes
Initializes a PixelAccuracy metric object. |
Module Contents
- class minerva.analysis.metrics.pixel_accuracy.PixelAccuracy(dist_sync_on_step=False)
Bases:
torchmetrics.Metric
Initializes a PixelAccuracy metric object.
Parameters
- dist_sync_on_step: bool, optional
Whether to synchronize metric state across processes at each step. Defaults to False.
- compute()
Computes the pixel accuracy.
- Returns:
float: The pixel accuracy.
- Return type:
float