TReS
No-reference image quality model that pairs a ResNet50 with a Transformer encoder over its multi-scale features.
Image classification · 659 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Image classification
- Parameters
- 152.5M
- Operations
- 659
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- WACV 2022
- Paper
- No-Reference Image Quality Assessment via Transformers, Relative Ranking, and Self-Consistency
- Cited by
- 465 (as of 30 October 2026)
- Authors
- S. Alireza Golestaneh, Saba Dadsetan, Kris M. Kitani
- Source
- GitHub: isalirezag/TReS
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20844
- Graph hash
- a9ac0cfbc64999aa006e33f5676d6f31a0c62026705aa8c89c8135ea15cb585a
- Skeleton hash
- 0e6384c4baa024311d870720d81f92d1f95602e9510f6a1719b224e1ffebe229
- Architecture hash
- 21521bac8dd4b7e805b809cf1ae692b610d77c3113d5570d570270137d911169
- Diagram SHA-256
- 4fe3b34b315768418c479cf832eb2ae2164ba71f52e06438d35165a61625f047
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
TReS scores the perceptual quality of an image without a reference image to compare it against, the task known as No-Reference Image Quality Assessment (NR-IQA). The name comes from its three ingredients: Transformers, Relative ranking and Self consistency. A CNN supplies local features, and a Transformer's self-attention then learns a non-local representation from the multi-scale features extracted from different CNN layers. The non-local features are fused with the local ones to predict the final quality score. The CNN backbone is ResNet50 unless the paper says otherwise. The Transformer uses 2 encoder layers and 16 heads.
Two training signals are added to score regression. The relative ranking loss is a triplet loss with an adaptive margin based on the human subjective scores. The self-consistency loss makes the model's outputs agree for each image and its horizontally flipped copy, after the authors observed that NR-IQA models degrade under such transformations. The code's FAQ notes that this adds no new parameters to the network.
On seven IQA datasets, the paper reports that the model outperforms the methods it compares against by a significant margin on LIVEFB and KADID. At test time, patches of 224 × 224 pixels are sampled at random from the image and their predicted scores are averaged.
Key idea. TReS combines CNN features with a Transformer encoder over multi-scale features, and trains with relative ranking and self-consistency losses for no-reference image quality assessment.
- TReS
- no-reference image quality assessment
- NR-IQA
- blind image quality assessment
- BIQA
- relative ranking
- self-consistency
- image quality transformer
- perceptual quality score
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{golestaneh2022noreferenceimagequalityassessment,
title={No-Reference Image Quality Assessment via Transformers, Relative Ranking, and Self-Consistency},
author={S. Alireza Golestaneh and Saba Dadsetan and Kris M. Kitani},
year={2022},
eprint={2108.06858},
archivePrefix={arXiv},
primaryClass={eess.IV},
url={https://arxiv.org/abs/2108.06858},
}