final almost
This commit is contained in:
@@ -131,7 +131,7 @@ The \acf{L-SSIM}~\cite{wang2004image} extends \acs{SSIM} by applying it over mul
|
||||
\end{equation}
|
||||
where $K$ is the total number of windows across the image.
|
||||
|
||||
The \acf{C-SSIM}~\cite{hassan2017cssim} extends the traditional SSIM formulation by incorporating chromatic information alongside luminance, contrast, and structure. It proposes a four-component model that quantifies image distortion through a combination of local comparison functions, including a color fidelity term derived from the \acs{S-CIELAB} color space~\cite{zhang1997scielab}.
|
||||
The \acf{C-SSIM}~\cite{hassan2017cssim} extends the traditional SSIM formulation by incorporating chromatic information alongside luminance, contrast, and structure. It proposes a four-component model that quantifies image distortion through a combination of local comparison functions, including a color fidelity term derived from the \acf{S-CIELAB} color space~\cite{zhang1997scielab}.
|
||||
|
||||
\begin{equation}
|
||||
\text{\acs{C-SSIM}}(x, y) = l(x, y) \cdot C(x, y) \cdot S(x, y) \cdot \text{Cr}(x, y)
|
||||
@@ -175,6 +175,13 @@ S_{\text{\acs{FSIM}}}(x) = \frac{S_{\text{\acs{PC}}}(x) \cdot S_{\text{\acs{GM}}
|
||||
\end{equation}
|
||||
where $S_{\text{\acs{PC}}}(x)$ and $S_{\text{\acs{GM}}}(x)$ denote the \acs{PC} and \acs{GM} similarity between reference and distorted images at pixel $x$, and $\epsilon$ is a small constant to avoid division by zero. The final \acs{FSIM} score is computed as the weighted average of $S_{\text{\acs{FSIM}}}(x)$ over the image, using the \acs{PC} map as a weighting function.
|
||||
|
||||
A multi-scale variant, \acf{MS-FSIM}~\cite{zhang2011fsim}, extends \acs{FSIM} by evaluating feature similarity across a pyramid of $S$ resolutions. At each scale $s$, phase congruency and gradient magnitude maps are computed, a local similarity $S_{\text{\acs{FSIM}},s}(x)$ is formed as in \acs{FSIM}, and an image-level score $\text{\acs{FSIM}}_s$ is obtained via \acs{PC}-weighted averaging. The final \acs{MS-FSIM} combines the per-scale scores with weights $\{w_s\}_{s=1}^S$:
|
||||
\begin{equation}
|
||||
\text{MS-FSIM} \;=\; \prod_{s=1}^{S} \big(\text{\acs{FSIM}}_s\big)^{w_s}
|
||||
\quad\text{with}\quad \sum_{s=1}^{S} w_s = 1 \, .
|
||||
\end{equation}
|
||||
Pooling across scales improves sensitivity to distortions that manifest at different spatial frequencies, such as blur, ringing, and compression artifacts, while preserving \acs{FSIM}'s emphasis on perceptually salient structure.
|
||||
|
||||
The \acf{FSIMc}~\cite{zhang2011fsim} is an extension of \acs{FSIM} that integrates color information to better evaluate the perceptual quality of color images. In addition to the \acs{PC} and \acs{GM} features used in \acs{FSIM}, \acs{FSIMc} includes chrominance similarity components derived from the I and Q channels of the YIQ color space~\cite{ntsc1953yiq}. The final \acs{FSIMc} score is given by:
|
||||
\begin{equation}
|
||||
\text{\acs{FSIM}}_c = \frac{\sum_{x \in \Omega} S_{\text{\acs{FSIM}}}(x) \cdot S_I(x) \cdot S_Q(x) \cdot \text{\acs{PC}}_{\max}(x)}{\sum_{x \in \Omega} \text{\acs{PC}}_{\max}(x)}
|
||||
@@ -187,11 +194,11 @@ The \acf{SR-SIM}~\cite{zhang2012srsim} leverages visual saliency derived from th
|
||||
\end{equation}
|
||||
where $S(x)$ denotes the local structural similarity at pixel $x$, and $\text{Sal}_{\min}(x)$ is the minimum saliency value between the reference and distorted images at that pixel. By emphasizing salient regions, \acs{SR-SIM} improves correlation with human perceptual quality judgments while maintaining low computational complexity.
|
||||
|
||||
The \acf{ESSIM}~\cite{chen2006esim} improves \acs{SSIM} by emphasizing structural fidelity in edge regions, which are perceptually more sensitive to distortions. \acs{ESSIM} first extracts edge maps from the reference and distorted images using edge detectors such as Sobel or Canny, and then computes local \acs{SSIM} values restricted to these edge pixels. The final score is defined as:
|
||||
The \acf{ESIM}~\cite{chen2006esim} improves \acs{SSIM} by emphasizing structural fidelity in edge regions, which are perceptually more sensitive to distortions. \acs{ESIM} first extracts edge maps from the reference and distorted images using edge detectors such as Sobel or Canny, and then computes local \acs{SSIM} values restricted to these edge pixels. The final score is defined as:
|
||||
\begin{equation}
|
||||
\text{\acs{ESSIM}} = \frac{1}{N} \sum_{x \in \Omega_{\text{edge}}} S(x),
|
||||
\text{\acs{ESIM}} = \frac{1}{N} \sum_{x \in \Omega_{\text{edge}}} S(x),
|
||||
\end{equation}
|
||||
where $S(x)$ is the local \acs{SSIM} value at pixel $x$, $\Omega_{\text{edge}}$ is the set of edge pixels, and $N$ is the number of pixels in this set. By focusing on edges, \acs{ESSIM} improves sensitivity to blur and compression artifacts that strongly affect edge integrity.
|
||||
where $S(x)$ is the local \acs{SSIM} value at pixel $x$, $\Omega_{\text{edge}}$ is the set of edge pixels, and $N$ is the number of pixels in this set. By focusing on edges, \acs{ESIM} improves sensitivity to blur and compression artifacts that strongly affect edge integrity.
|
||||
|
||||
The \acf{UQI}~\cite{wang2002uqi} models image distortion as a combination of three factors: loss of correlation, luminance distortion, and contrast distortion. \acs{UQI} is defined as:
|
||||
\begin{equation}
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
|
||||
Fusion-based \ac{IQA} learns a regression from heterogeneous metric scores to a single perceptual estimate.
|
||||
Let the dataset be \( \mathcal{D}=\{(\mathbf{x}_i,y_i)\}_{i=1}^{n} \) with \( \mathbf{x}_i \in \mathbb{R}^{p} \) the vector of \(p\) objective scores and \( y_i \in \mathbb{R} \) the \ac{MOS}.
|
||||
We first harmonize polarity so that larger metric values indicate better quality, optionally rescale each metric to zero mean and unit variance, and map targets to a fixed range (for example 0--100).
|
||||
We then estimate a regressor \( f:\mathbb{R}^{p}\to\mathbb{R} \) by empirical risk minimization
|
||||
\[
|
||||
\min_{\theta}\; \frac{1}{n}\sum_{i=1}^{n} \ell\!\big(y_i, f(\mathbf{x}_i;\theta)\big) + \lambda\,\Omega(\theta),
|
||||
\]
|
||||
using a squared or robust loss \( \ell \) (for example Huber), and regularizer \( \Omega \) if applicable.
|
||||
To handle redundancy, we either select the top \(k\) metrics by correlation with \(y\) or project \(\mathbf{x}_i\) to a lower-dimensional subspace learned from the score matrix.
|
||||
The learned fusion \( f \) aggregates complementary cues and typically aligns with human judgments better than any single metric.
|
||||
|
||||
There are three useful categories for fusion on tabular metric vectors. Linear models assume an approximately additive mapping and control complexity via shrinkage or sparsity \cite{linearregression, ridgeregression, bayesianridge, elasticnet}. Bootstrap aggregating and gradient boosting ensembles model interactions and are robust to heterogeneous scales \cite{randomforest, ensembles, gradboost, histogram}. Modern boosted-tree frameworks optimize second order objectives with explicit regularization and efficient growth strategies \cite{xgboost, lightgbm, catboost}.
|
||||
|
||||
\section{Linear Models}\label{sec:linear}
|
||||
|
||||
Linear Regression~\cite{linearregression} fits an affine predictor by minimizing squared residuals:
|
||||
\begin{equation}
|
||||
\min_{\mathbf{w},\,b}\ \sum_{i=1}^{n}\left(y_i-\mathbf{w}^{\top}\mathbf{x}_i-b\right)^2.
|
||||
\end{equation}
|
||||
The normal equations yield a closed form when \(\mathbf{X}\) is full rank. Coefficients provide direct attribution to each metric, but estimates can be unstable under collinearity.
|
||||
|
||||
Ridge Regression~\cite{ridgeregression} stabilizes linear fusion with \(L_2\) shrinkage
|
||||
\begin{equation}
|
||||
\min_{\mathbf{w},\,b}\ \sum_{i=1}^{n}\left(y_i-\mathbf{w}^{\top}\mathbf{x}_i-b\right)^2+\lambda\|\mathbf{w}\|_2^2,\quad \lambda>0.
|
||||
\end{equation}
|
||||
The solution \(\hat{\mathbf{w}}=(\mathbf{X}^{\top}\mathbf{X}+\lambda\mathbf{I})^{-1}\mathbf{X}^{\top}\mathbf{y}\) trades small bias for reduced variance and handles correlated metrics well.
|
||||
|
||||
Bayesian Ridge~\cite{bayesianridge} is a probabilistic ridge with Gaussian prior and noise
|
||||
\begin{align}
|
||||
\mathbf{w}\mid\alpha &\sim \mathcal{N}(\mathbf{0},\,\alpha^{-1}\mathbf{I}), \quad
|
||||
y_i\mid\mathbf{x}_i,\mathbf{w},\beta \sim \mathcal{N}(\mathbf{w}^{\top}\mathbf{x}_i+b,\,\beta^{-1}),\\
|
||||
\mathbf{S} &= \left(\alpha\mathbf{I}+\beta \mathbf{X}^{\top}\mathbf{X}\right)^{-1},\quad
|
||||
\mathbf{m}=\beta\,\mathbf{S}\,\mathbf{X}^{\top}\mathbf{y}.
|
||||
\end{align}
|
||||
Posterior \(p(\mathbf{w}\mid\mathcal{D})=\mathcal{N}(\mathbf{m},\mathbf{S})\) gives predictive mean \(\hat{y}_*=\mathbf{m}^{\top}\mathbf{x}_*+b\) and variance \(\beta^{-1}+\mathbf{x}_*^{\top}\mathbf{S}\mathbf{x}_*\), useful to quantify uncertainty in fused quality.
|
||||
|
||||
ElasticNet~\cite{elasticnet} promotes sparse yet stable linear fusion with mixed penalties
|
||||
\begin{equation}
|
||||
\min_{\mathbf{w},\,b}\ \sum_{i=1}^{n}\left(y_i-\mathbf{w}^{\top}\mathbf{x}_i-b\right)^2
|
||||
+\alpha\left(\rho\|\mathbf{w}\|_{1}+\tfrac{1-\rho}{2}\|\mathbf{w}\|_{2}^{2}\right),
|
||||
\end{equation}
|
||||
with \(\alpha>0\) and \(\rho\in[0,1]\). It can drop redundant metrics while shrinking the rest to mitigate collinearity.
|
||||
|
||||
\section{Ensemble Methods}\label{sec:ensembles}
|
||||
|
||||
Random Forest~\cite{randomforest} employs bagging regression trees to reduce variance and requires minimal preprocessing. Nodes choose splits that maximize variance reduction
|
||||
\begin{equation}
|
||||
\Delta=\mathrm{Var}(S)-\frac{|S_L|}{|S|}\mathrm{Var}(S_L)-\frac{|S_R|}{|S|}\mathrm{Var}(S_R),
|
||||
\end{equation}
|
||||
and the fusion prediction averages \(T\) trees
|
||||
\begin{equation}
|
||||
\hat{y}(\mathbf{x})=\frac{1}{T}\sum_{t=1}^{T}h_t(\mathbf{x}).
|
||||
\end{equation}
|
||||
|
||||
Extremely randomized trees~\cite{ensembles} sample split thresholds at random for each feature before selecting the best split, which increases diversity and often lowers variance. Aggregation is identical to Random Forest, with similar variance reduction analysis.
|
||||
|
||||
Gradient Boosting~\cite{gradboost} employs additive modeling to fit weak learners to pseudo residuals. For squared error, residuals are \(r_{im}=y_i-f_{m-1}(\mathbf{x}_i)\). Each stage fits a tree \(b_m\) to \(\{(\mathbf{x}_i,r_{im})\}\) and updates
|
||||
\begin{equation}
|
||||
f_m(\mathbf{x})=f_{m-1}(\mathbf{x})+\nu\,b_m(\mathbf{x}),
|
||||
\end{equation}
|
||||
with learning rate \(\nu\in(0,1]\). This captures non-linear metric interactions important in perceptual fusion.
|
||||
|
||||
Histogram Gradient Boosting~\cite{histogram} is a histogram variant of gradient boosting that bins each feature into \(B\) buckets and accumulates gradient and Hessian statistics per bin to evaluate splits efficiently. It approximates standard boosting while improving speed and memory on many-metric settings.
|
||||
|
||||
\section{Boosted Trees}\label{sec:modern}
|
||||
|
||||
\acf{XGBoost}~\cite{xgboost} optimizes a second-order regularized objective with per-leaf closed-form weights:
|
||||
\begin{equation}
|
||||
\mathcal{L}=\sum_{i=1}^{n}\ell(y_i,\hat{y}_i)+\sum_{t=1}^{T}\Omega(f_t),\qquad
|
||||
\Omega(f)=\gamma T+\tfrac{\lambda}{2}\sum_{j=1}^{L}w_j^2.
|
||||
\end{equation}
|
||||
With gradients \(g_i=\partial_{\hat{y}}\ell\) and Hessians \(h_i=\partial_{\hat{y}}^2\ell\), the optimal leaf weight and split gain are
|
||||
\begin{equation}
|
||||
w_j^{*}=-\frac{\sum_{i\in I_j} g_i}{\sum_{i\in I_j} h_i+\lambda},\qquad
|
||||
\mathrm{Gain}=\tfrac{1}{2}\left(\frac{G_L^2}{H_L+\lambda}+\frac{G_R^2}{H_R+\lambda}-\frac{G^2}{H+\lambda}\right)-\gamma,
|
||||
\end{equation}
|
||||
where \(G_{\cdot}=\sum g_i\) and \(H_{\cdot}=\sum h_i\). This yields accurate and regularized fusion on small to medium labeled sets.
|
||||
|
||||
\acf{LightGBM}~\cite{lightgbm} builds trees leaf-wise (best-first) under depth or leaf constraints and uses gradient-based one-side sampling and exclusive feature bundling, selecting each split by maximizing a second-order regularized gain:
|
||||
\begin{equation}
|
||||
\mathrm{Gain}=\frac{G_L^2}{H_L+\lambda}+\frac{G_R^2}{H_R+\lambda}-\frac{G^2}{H+\lambda}-\gamma,
|
||||
\end{equation}
|
||||
where $G_\cdot=\sum g_i$ and $H_\cdot=\sum h_i$ are the sums of first and second derivatives over the node and $\gamma$ penalizes splits.
|
||||
|
||||
\acf{CatBoost}~\cite{catboost} performs ordered boosting with symmetric trees to mitigate prediction shift by computing gradients on permutation prefixes and updating leaves with second-order estimates while optimizing a standard regression loss:
|
||||
\begin{align}
|
||||
f_t(\mathbf{x}) &= f_{t-1}(\mathbf{x}) + \nu\, b_t(\mathbf{x}), \\
|
||||
w_j^{*} &= -\frac{G_j}{H_j+\lambda},
|
||||
\end{align}
|
||||
where $G_j=\sum g_i$ and $H_j=\sum h_i$ are ordered gradient and Hessian sums over leaf $j$, $\nu$ is the learning rate, and $\lambda$ is the leaf regularization.
|
||||
@@ -14,26 +14,7 @@ All experiments ran inside an NVIDIA NGC PyTorch container for CUDA/cuDNN compat
|
||||
\item PyTorch: 2.8.0a0 (NGC nv25.06), CUDA Runtime 12.9, cuDNN 9.1.2
|
||||
\item TorchVision: 0.22.0a0
|
||||
\item timm: 1.0.19
|
||||
\item NumPy: \textbf{1.26.4 (pinned)}
|
||||
\item NumPy: 1.26.4
|
||||
\item SciPy: 1.15.3,\; Pandas: 2.2.3,\; scikit-learn: 1.6.1,\; Matplotlib: 3.10.3,\; tqdm: 4.67.1
|
||||
\item OpenCV (headless): \texttt{<= 4.11.0.86} (pinned to match NumPy~1.x)
|
||||
\item Optional: Albumentations (if enabled)
|
||||
\end{itemize}
|
||||
|
||||
\paragraph{Note on NumPy.}
|
||||
The container's PyTorch is compiled against the NumPy~1.x C-API. Installing NumPy~2.x at user level will cause an ABI error during \texttt{import torch}. We therefore pin NumPy to 1.26.4.
|
||||
|
||||
\section{Launch and Setup Commands}
|
||||
\begin{verbatim}
|
||||
# Start the container with GPU access and mount the project
|
||||
docker run --gpus all --ipc=host --rm -it \
|
||||
-u $(id -u):$(id -g) \
|
||||
-v "$PWD":/workspace -w /workspace \
|
||||
nvcr.io/nvidia/pytorch:25.06-py3
|
||||
|
||||
# Inside the container: environment prep
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
python -m pip install --user "numpy==1.26.4" \
|
||||
timm albumentations opencv-python-headless tqdm
|
||||
\end{verbatim}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user