Reference-aware machine-oriented image quality model

The predictor combines five-fold tree regressors, reference-level PLS/tree models, and five Qwen3-VL LoRA regressors. It reconstructs pseudo-references from the input collection, extracts visual/task-agreement features, and writes submission.zip with index and quality.

Contents

  • pipeline.py: the single entry point for inference, feature extraction, and training.
  • src/: implementation of the method.
  • weights/ensemble.zip: native LightGBM/XGBoost models, regression-tree arrays, fitted numeric preprocessing, and blend coefficients. The loader uses an explicit JSON schema.
  • weights/lora/: five adapters and regression heads in safetensors format.
  • resources/method.zip: fixed questions, caption-frequency statistics, and training folds.
  • resources/PRETRAINED_MODELS.md: pretrained model IDs and component license information.

Public pretrained backbones are obtained from their original repositories and are not duplicated here. The adapters require Qwen/Qwen3-VL-2B-Instruct. Upstream revisions were not recorded; use the listed model IDs and package versions when preparing the environment.

Setup

Use Python >=3.12 and a CUDA-compatible PyTorch installation. The export environment uses Python 3.13, PyTorch 2.14.1+cu130 and torchvision 0.29.1+cu130.

uv venv
uv pip install torch==2.14.1 torchvision==0.29.1 --index-url https://download.pytorch.org/whl/cu130
uv pip install -r requirements.txt

Inference

uv run python pipeline.py infer --images /path/to/test/images --output outputs/submission.zip

The pipeline derives reference associations from the image collection using rank-normalized thumbnail similarity and balanced clustering. It reconstructs each pseudo-reference by a pixel-wise median, computes pretrained features and LoRA predictions, and applies the saved ensemble. The bundled question resources are associated with the covered reference content; different content requires corresponding protocol questions.

For cached features, no backbone download or GPU is required:

uv run python pipeline.py infer --metadata /path/to/test.csv --cache /path/to/features --output outputs/submission.zip

The manifest contains index and ref. Features use feats_<group>_test.parquet and emb_dino_test.npz, as produced by the pipeline. Embedding archives use string identifiers and numeric arrays, with NumPy object loading disabled. Inference does not read training labels or stored submission predictions. Runtime logs are written under outputs/logs/.

Method

For each reference, the predictor adds a within-reference deviation to a reference offset. The within ensemble combines LightGBM, pairwise XGBoost, ExtraTrees, and factorized task regressors, calibrated on grouped out-of-fold predictions. The offset averages PLS, ExtraTrees on PLS features, factorized PLS models, and the mean LoRA prediction. Its multiplier is 1.0. PCA, feature normalization and caption document-frequency statistics are fixed.

Each LoRA regressor processes a pseudo-reference/distorted pair in a shared prompt. Rank-16 language adapters and an MLP head are trained with quality MSE, batch correlation loss and auxiliary MPD task losses. Inference averages the five folds.

For question-bank regeneration, the reproduction backend is a lab-self-hosted DeepSeek-V4.1-Flash deployment. The fixed question bank is bundled as a method resource; inference consumes it directly and does not require a question-generation service.

Training

uv run python pipeline.py train --source /path/to/prepared_project --weights weights

The source must contain data/all.csv, data/val.csv, data/test.csv (or equivalent manifests under metadata/) and corresponding feature caches. all.csv combines challenge training and MPD rows with index,ref,src,fold,quality and task targets vqa,cap,yon,mcq,det,seg,ret. Training-fold metadata is available as training_folds.csv inside resources/method.zip. Unlabeled manifests contain index,ref. Fitted preprocessing uses the labeled and unlabeled feature distributions without using unlabeled quality targets.

To regenerate image features, add a path column to the manifests:

uv run python pipeline.py features --manifest data/all.csv --split all --skip-lora
uv run python pipeline.py features --manifest data/val.csv --split val --skip-lora
uv run python pipeline.py features --manifest data/test.csv --split test --skip-lora
uv run python pipeline.py train-lora
uv run python pipeline.py train --source . --weights weights

LoRA training uses two epochs and seed 1. It writes held-out-fold features and validation/test predictions. Images, training caches, and runtime outputs are not included in this package. Back up supplied weights before retraining into the same directory.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for 0x-YuAN/sps-challenge

Finetuned
(324)
this model