Skip to main content
QUICK REVIEW

[Paper Review] PyTorch Image Quality: Metrics for Image Quality Assessment

Sergey Kastryulin, Jamil Zakirov|arXiv (Cornell University)|Aug 31, 2022
Image Enhancement TechniquesComputer Science11 citations
TL;DR

This paper introduces PyTorch Image Quality (PIQ), an open-source, GPU-accelerated library implementing 38+ image quality assessment (IQA) metrics across full-reference, no-reference, and distribution-based categories. Built on PyTorch, PIQ ensures correctness, reliability, and high performance through rigorous testing and optimization, enabling efficient use in deep learning pipelines with strong correlation to human perception.

ABSTRACT

Image Quality Assessment (IQA) metrics are widely used to quantitatively estimate the extent of image degradation following some forming, restoring, transforming, or enhancing algorithms. We present PyTorch Image Quality (PIQ), a usability-centric library that contains the most popular modern IQA algorithms, guaranteed to be correctly implemented according to their original propositions and thoroughly verified. In this paper, we detail the principles behind the foundation of the library, describe the evaluation strategy that makes it reliable, provide the benchmarks that showcase the performance-time trade-offs, and underline the benefits of GPU acceleration given the library is used within the PyTorch backend. PyTorch Image Quality is an open source software: https://github.com/photosynthesis-team/piq/.

Motivation & Objective

  • To address the lack of reliable, community-verified, and user-friendly implementations of modern IQA metrics in Python.
  • To provide a unified, well-tested, and optimized library that ensures correct implementation of IQA algorithms according to their original formulations.
  • To enable high-performance computation of IQA metrics using GPU acceleration within PyTorch workflows.
  • To support diverse research applications, including image restoration, enhancement, and medical imaging, by offering a comprehensive and extensible IQA toolkit.
  • To reduce the burden of reimplementing or debugging IQA metrics by offering a single, validated, and actively maintained resource.

Proposed method

  • The library implements 38+ IQA metrics, including PSNR, SSIM, LPIPS, FID, KID, and DISTS, using PyTorch for differentiable, GPU-accelerated computation.
  • Each metric is rigorously tested against original implementations and formal definitions to ensure correctness and consistency.
  • The library supports three main IQA categories: Full-Reference (FR), No-Reference (NR), and Distribution-Based (DB) metrics, with DB metrics compatible with multiple feature extractors (e.g., VGG16, VGG19, InceptionNet).
  • Optimization techniques are applied selectively to balance speed and usability, following PyTorch’s principle of acceptable trade-offs between performance and ease of use.
  • The library is designed with a user-friendly API that follows the principle of least astonishment, minimizing cognitive load for researchers.
  • Benchmarking is conducted on standard datasets (KADID-10k, TID2013, PIPAL, MRI reconstructions) to evaluate performance–time trade-offs on both CPU and GPU.

Experimental results

Research questions

  • RQ1How can a unified, reliable, and user-friendly Python library for image quality assessment be designed to reduce implementation inconsistencies?
  • RQ2What is the performance–time trade-off of modern IQA metrics when computed on CPU versus GPU using a PyTorch backend?
  • RQ3To what extent does GPU acceleration improve the efficiency of IQA metric computation in deep learning pipelines?
  • RQ4How well do the implemented metrics correlate with human perception across diverse image domains, including medical imaging?
  • RQ5Can a single, well-tested library replace the need for multiple, fragmented, and potentially incorrect implementations of IQA metrics?

Key findings

  • PIQ implements 38+ IQA metrics across FR, NR, and DB categories, with rigorous validation ensuring correctness and consistency with original formulations.
  • The library achieves high performance on GPU, with significant speedups over CPU execution, making it suitable for real-time and large-scale training pipelines.
  • On the KADID-10k and MRI reconstruction datasets, metrics like DISTS and LPIPS show strong correlation with human perception (SRCC > 0.9) while maintaining low computational overhead.
  • The benchmarking results on TID2013 and PIPAL datasets demonstrate that metrics such as DISTS, LPIPS, and FID achieve high SRCC scores (>0.85) in the top-left region of performance–time plots, indicating optimal trade-offs.
  • PIQ has been adopted in multiple research projects, including medical image quality studies and neural architecture development, confirming its practical utility and reliability.
  • The library has gained over 640 GitHub stars and 57 forks, with more than 4,000 monthly views, indicating strong community adoption and active use.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.