Skip to main content

PyTorch Image Quality Assessment

Reason this release was yanked:

Broken function utils.normalize_tensor

Project description

PyTorch Image Quality Assessment

This package is a collection of measures and metrics for image quality assessment in various image processing tasks such as denoising, super-resolution, image interpolation, etc. It relies heavily on PyTorch and takes advantage of its efficiency and automatic differentiation.

It should noted that piqa is directly inspired from the piq project. However, it focuses on the conciseness, readability and understandability of its (sub-)modules, such that anyone can freely and easily reuse and/or adapt them to its needs.

piqa should be pronounced pika (like Pikachu ⚡️)

Installation

The piqa package is available on PyPI, which means it is installable with pip:

pip install piqa

Alternatively, if you need the lastest features, you can install it using

git clone https://github.com/francois-rozet/piqa
cd piqa
python setup.py install

or copy the package directly to your project, with

git clone https://github.com/francois-rozet/piqa
cd piqa
cp -R piqa <path/to/project>/piqa

Getting started

import torch
import piqa.psnr as psnr
import piqa.ssim as ssim

x = torch.rand(3, 3, 256, 256)
y = torch.rand(3, 3, 256, 256)

# PSNR function
l = psnr.psnr(x, y)

# SSIM instantiable object
criterion = ssim.SSIM().cuda()
l = criterion(x, y)

Documentation

The documentation of this package is generated automatically using pdoc.

The code follows the Google Python style and is compliant with YAPF.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

piqa-1.0.2.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

piqa-1.0.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file piqa-1.0.2.tar.gz.

File metadata

  • Download URL: piqa-1.0.2.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for piqa-1.0.2.tar.gz
Algorithm Hash digest
SHA256 42fb3d4a2515d260e41888339f63315a33aa10714373fd001a524623efe28275
MD5 212509103d5e56cf19e30132f1c53516
BLAKE2b-256 47c4e80a84f56ea7f3c51be904f8038ac3b1f3dde35815ba5e037fada6ae8b12

See more details on using hashes here.

File details

Details for the file piqa-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: piqa-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for piqa-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 653255bf0f83476d37261e93816673e6cff1b268a76245e73d8a071a355b2828
MD5 2f5dba6ab5efec1819f1dd6bd779d7e2
BLAKE2b-256 a634901a055a51faa35e75d3ba61156ab503789ca8d24c522cca6d601852676f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page