Skip to main content

PyTorch Image Quality Assessment

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.5.tar.gz (10.8 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.5-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: piqa-1.0.5.tar.gz
  • Upload date:
  • Size: 10.8 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.5.tar.gz
Algorithm Hash digest
SHA256 9c50ea88713e80cba9fe97071c23846a06850113eab26fdc2d173e8b6c1e06a2
MD5 3ed68ebca86110fd667e2b4e1fa0bd5b
BLAKE2b-256 f1fb63ad01f5647746a754e414d7e39ddc4b77960414b33afae9f7dab010b901

See more details on using hashes here.

File details

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

File metadata

  • Download URL: piqa-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 15.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b1f9a9a5a948822196c79a7a279067d600ccedee0a68aa5161261944e3da9671
MD5 78716c67b8e5ee6dede2c16fdd46dd8f
BLAKE2b-256 32292b3f85ec9fdafcbfb339638091a0b909eeeef04ce312db855c661d183e9d

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