Image

Image#

A collection of different metrics for image models.

CosineSimilarity(total, count)

Calculates the Cosine Similarity between two arrays.

Dice(intersection, sum_pred, sum_true)

Computes the Dice coefficient between y_true and y_pred.

IoU(total, count)

Measures Intersection over Union (IoU) for semantic segmentation.

PSNR(total, count)

PSNR (Peak Signal-to-Noise Ratio) Metric.

SSIM(total, count)

SSIM (Structural Similarity Index Measure) Metric.