Skip to content

PIQA v1.1.3

Compare
Choose a tag to compare
@francois-rozet francois-rozet released this 11 Mar 18:28
· 33 commits to master since this release

🚸 Type assertions

Object-oriented components (PSNR, SSIM, ...) now use type assertions to raise meaningful error messages. See the "Assert" section in the README for more information.

♻️ Refactor

In this release, the API has been heavily redesigned and simplified.

  • The "user-friendly" functionals to compute the metrics were dropped in favor of object-oriented metrics (5994e34)
  • Importing piqa now directly gives access to the object-oriented metrics (5994e34)
v1.1.0 v1.1.3
>>> from piqa import ssim
>>> criterion = ssim.SSIM()
>>> criterion(x, y)
tensor(...)
>>> import piqa
>>> criterion = piqa.SSIM()
>>> criterion(x, y)
tensor(...)
  • The piqa.utils module was divided in three sub-modules (5994e34)
    1. piqa.utils.functional regroups the convolution and kernel helpers
    2. piqa.utils.complex is an API to manipulate "factice" complex tensors
    3. piqa.utils.color handles the color-space conversions
  • JITing is now an option which can be enabled/disabled (f467070)
  • Custom normalization functionals (tensor_norm & normalize_tensor) were dropped in favor of torch.linalg.norm (f744007)