RepositoryPythonCNChina
lidq92

lidq92/CNNIQA

[unofficial] CVPR2014-Convolutional neural networks for no-reference image quality assessment

167stars
38forks
2issues
3views

CNNIQA

PyTorch 1.3 implementation of the following paper: Kang L, Ye P, Li Y, et al. Convolutional neural networks for no-reference image quality assessment[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2014: 1733-1740.

Note

  • The optimizer is chosen as Adam here, instead of the SGD with momentum in the paper.
  • the mat files in data/ are the information extracted from the datasets and the index information about the train/val/test split. The subjective scores of LIVE is from the realigned data.

Training

CUDA_VISIBLE_DEVICES=0 python main.py --exp_id=0 --database=LIVE

Before training, the im_dir in config.yaml must to be specified. Train/Val/Test split ratio in intra-database experiments can be set in config.yaml (default is 0.6/0.2/0.2).

Evaluation

Test Demo

python test_demo.py --im_path=data/I03_01_1.bmp

Cross Dataset

python test_cross_dataset.py --help

TODO: add metrics calculation. SROCC, KROCC can be easily get. PLCC, RMSE, MAE, OR should be calculated after a non-linear fitting since the quality score ranges are not the same across different IQA datasets.

Visualization

tensorboard --logdir=tensorboard_logs --port=6006 # in the server (host:port)
ssh -p port -L 6006:localhost:6006 user@host # in your PC. See the visualization in your PC

Requirements

conda create -n reproducibleresearch pip python=3.6
source activate reproducibleresearch
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
source deactive

Note: You need to install the right CUDA version.

TODO (If I have free time)

  • Simplify the code
  • Report results on some common databases
  • etc.

Similar Projects

Discover other similar projects and AI models.

Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
156.6M
Jun 1, 2026
RepositoryPython
chaofengc/IQA-PyTorch

🔎 🖼️ 🔥PyTorch Toolbox for Image Quality Assessment, including PSNR, SSIM, LPIPS, FID, NIQE, NRQM(Ma), MUSIQ, TOPIQ, NIMA, DBCNN, BRISQUE, PI and more...

3.5k
Nov 28, 2026
RepositoryPython
miccunifi/ARNIQA

[WACV 2024 Oral] - ARNIQA: Learning Distortion Manifold for Image Quality Assessment

159
Jun 18, 2026
RepositoryPython
pavancm/CONTRIQUE

Official implementation for "Image Quality Assessment using Contrastive Learning"

141
Jun 18, 2024
RepositoryPython
zwx8981/UNIQUE

The repository for 'Uncertainty-aware blind image quality assessment in the laboratory and wild' and 'Learning to blindly assess image quality in the laboratory and wild'

140
Mar 8, 2024
RepositoryPython
miccunifi/QualiCLIP

Quality-Aware Image-Text Alignment for Opinion-Unaware Image Quality Assessment

134
Mar 10, 2025
RepositoryPython
Comfy-Org/ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

149.8k
Dec 3, 2026
RepositoryTeX
chaofengc/Awesome-Image-Quality-Assessment

A comprehensive collection of IQA papers

1.6k
Nov 28, 2026
RepositoryMATLAB
dsoellinger/blind_image_quality_toolbox

Collection of Blind Image Quality Metrics in Matlab

167
Jun 27, 2020