learnergy.math.metrics

Metrics-related mathematical functions.

learnergy.math.metrics.calculate_ssim(v: torch.Tensor, x: torch.Tensor)

Calculates the structural similarity of images.

Parameters
  • v – Reconstructed images.

  • x – Original images.

Returns

Structural similarity between input images.

Return type

(float)

learnergy.math.metrics.logger