PIQA v1.1.3
🚸 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)piqa.utils.functional
regroups the convolution and kernel helperspiqa.utils.complex
is an API to manipulate "factice" complex tensorspiqa.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 oftorch.linalg.norm
(f744007)