pyiqa.archs.arniqa_arch

ARNIQA: Learning Distortion Manifold for Image Quality Assessment

@inproceedings{agnolucci2024arniqa,

title={ARNIQA: Learning Distortion Manifold for Image Quality Assessment}, author={Agnolucci, Lorenzo and Galteri, Leonardo and Bertini, Marco and Del Bimbo, Alberto}, booktitle={Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision}, pages={189–198}, year={2024}

}

Reference:

Module Contents

pyiqa.archs.arniqa_arch.DATASET_INFO[source]
pyiqa.archs.arniqa_arch.default_model_urls[source]
class pyiqa.archs.arniqa_arch.ARNIQA(regressor_dataset: str = 'koniq')[source]

Bases: torch.nn.Module

ARNIQA model implementation.

This class implements the ARNIQA model for image quality assessment, which combines a ResNet50 encoder with a regressor network for predicting image quality scores.

Parameters:

regressor_dataset (str, optional) – The dataset to use for the regressor. Default is “koniq”.

regressor_dataset[source]

The dataset to use for the regressor.

Type:

str

encoder[source]

The ResNet50 encoder.

Type:

nn.Module

feat_dim[source]

The feature dimension of the encoder.

Type:

int

regressor[source]

The regressor network.

Type:

nn.Module

default_mean[source]

The mean values for normalization.

Type:

torch.Tensor

default_std[source]

The standard deviation values for normalization.

Type:

torch.Tensor

forward(x: torch.Tensor) float[source]

Forward pass of the ARNIQA model.

Parameters:

x (torch.Tensor) – The input tensor.

Returns:

The predicted quality score.

Return type:

float