Skip to main content

IQA models in PyTorch

Project description

Image Quality Assessment (IQA) Models in PyTorch

This is a repository to re-implement the existing IQA models with PyTorch, including

Note: The reproduced results may be a little different from the original matlab version.

Installation:

  • pip install IQA_pytorch

Requirements:

  • Python>=3.6
  • Pytorch>=1.2

Usage:

from IQA_pytorch import SSIM, GMSD, LPIPSvgg, DISTS
D = SSIM()
# Calculate score of the image X with the reference Y
# X: (N,3,H,W) 
# Y: (N,3,H,W) 
# Tensor, data range: 0~1
score = D(X, Y, as_loss=False) 
# set 'as_loss=True' to get a value as loss for optimizations.
loss = D(X, Y)
loss.backward()

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

IQA_pytorch-0.1.tar.gz (38.9 kB view hashes)

Uploaded Source

Built Distribution

IQA_pytorch-0.1-py3-none-any.whl (62.6 kB view hashes)

Uploaded Python 3

Supported by

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