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()
Metadata
Release files for IQA-pytorch 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| IQA_pytorch-0.1.tar.gz | 38.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| IQA_pytorch-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 101.5 kB
Release files / IQA_pytorch-0.1.tar.gz
| Download URL | IQA_pytorch-0.1.tar.gz |
|---|---|
| Size | 38.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f2064815f42361ab38f84edf435bdf505a7d9862e0ab15a8e60be2bce9c7b50
|
|
BLAKE2b-256 checksum How to use checksums |
9149c8c39338c2f1c7baa581d0361c4876d3f15131fb101f8f5617c885054908
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / IQA_pytorch-0.1-py3-none-any.whl
| Download URL | IQA_pytorch-0.1-py3-none-any.whl |
|---|---|
| Size | 62.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45b12fd2ef168ec004cc09edae5491553ea82441cb840a5776219dd5366b93f9
|
|
BLAKE2b-256 checksum How to use checksums |
9feedc11f49757fac3704707ac9157e8646defa485a3daf05b6cfde28b3e1abd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|