pyiqa.archs.mad_arch¶
MAD Metric
Created by: https://github.com/dingkeyan93/IQA-optimization/blob/master/IQA_pytorch/MAD.py
Modified by: Jiadi Mo (https://github.com/JiadiMo)
Note
Official matlab code is not available; Pytorch version >= 1.8.0;
Module Contents¶
- pyiqa.archs.mad_arch.extract_patches_2d(img: torch.Tensor, patch_shape: list = [64, 64], step: list = [27, 27], batch_first: bool = True, keep_last_patch: bool = False) torch.Tensor[source]¶
- class pyiqa.archs.mad_arch.MAD(channels=3, test_y_channel=False)[source]¶
Bases:
torch.nn.Module- Parameters:
channel (-) – Number of input channel.
test_y_channel (-) – bool, whether to use y channel on ycbcr which mimics official matlab code.
References
Larson, Eric Cooper, and Damon Michael Chandler. “Most apparent distortion: full-reference image quality assessment and the role of strategy.” Journal of electronic imaging 19, no. 1 (2010): 011006.