AAL Plus Image Quality Assessment

ProviderLoliRimuru
Categoryimage-quality-assessment
Licenseapache-2.0
Downloads0
Stars0

Overview

AAL Plus is a specialized Image Quality Assessment (IQA) model designed to provide objective, quantitative metrics for visual fidelity. Unlike general-purpose vision models, AAL Plus focuses on detecting artifacts, noise, and degradation, making it an essential tool for developers building automated image processing pipelines or generative AI evaluation frameworks. It is particularly useful for implementing automated A/B testing for image compression algorithms or as a reward signal in reinforcement learning for image restoration. With an Apache-2.0 license, it offers high flexibility for commercial integration into production environments where maintaining consistent visual standards is critical.

Highlights

  • Provides objective quantitative metrics for visual fidelity assessment
  • Optimized for detecting image artifacts and noise levels
  • Ideal for automated image processing and restoration pipelines
  • Permissive Apache-2.0 license for easy commercial integration

Usage

Install
# Install Hugging Face transformers
pip install transformers torch
SDK Usage
# Load model with transformers
from transformers import AutoModel, AutoTokenizer

model = AutoModel.from_pretrained("LoliRimuru/AAL-Plus_Image_Quality_Assessment")
tokenizer = AutoTokenizer.from_pretrained("LoliRimuru/AAL-Plus_Image_Quality_Assessment")

Hugging Face Download

We recommend downloading the model via the Hugging Face CLI or Hub SDK.

Guidance:Before downloading, install huggingface_hub with:

Guidance
pip install -U huggingface_hub

CLI Download

Download the full repository

Download the full repository
huggingface-cli download LoliRimuru/AAL-Plus_Image_Quality_Assessment

Download a single file to a local folder (e.g. config.json into ./dir)

Download a single file to a local folder (e.g. config.json into ./dir)
huggingface-cli download LoliRimuru/AAL-Plus_Image_Quality_Assessment config.json --local-dir ./dir

See the official docs for more CLI options

SDK Download

SDK Download
# 模型下载
from huggingface_hub import snapshot_download
model_dir = snapshot_download('LoliRimuru/AAL-Plus_Image_Quality_Assessment')

Git Download

Make sure git-lfs is installed first

Git Download
git lfs install
git clone https://huggingface.co/LoliRimuru/AAL-Plus_Image_Quality_Assessment

To skip LFS large-file downloads, use:

Skip LFS
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/LoliRimuru/AAL-Plus_Image_Quality_Assessment

Model files are hosted on the Hugging Face Hub — download directly via HF CLI / SDK / Git, not through this site.

PyTorch / Transformers Usage

Install Transformers

Install Transformers
pip install -U transformers torch

Load the model and run inference

Load the model and run inference
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained('LoliRimuru/AAL-Plus_Image_Quality_Assessment')
tokenizer = AutoTokenizer.from_pretrained('LoliRimuru/AAL-Plus_Image_Quality_Assessment')

Full Documentation

来源: HuggingFace

---
license: apache-2.0
tags:

  • image-classification

  • qualits-assessment

  • compression-artifacts

  • art

pipeline_tag: image-classification
---

AAL-Plus Image Quality Assessment

A lightweight model that predicts compression quality levels and detects artifacts across multiple image formats (JPEG, WebP, AVIF, JXL). Trained to identify subtle compression artifacts that indicate the quality level used during image encoding.

📊 Model Performance

Based on validation results from the final training epochs:

| Metric | Value |
|--------|-------|
| Overall Validation Accuracy | 97.1% |
| Overall Validation Loss | 0.0006 |
| Training Accuracy | 95.6% |

Per-Format Accuracy

| Format | Validation Acc | Training Acc | Quality Range |
|--------|----------------|--------------|---------------|
| JPEG | 99.4% | 98.9% | 0-100 |
| WebP | 97.0% | 95.5% | 0-100 |
| AVIF | 97.1% | 95.3% | 0-100 |
| JXL | 94.8% | 92.6% | 0-100 |

*Accuracy measured as predictions within ±5% range of actual quality values*

🎯 Key Features

  • Multi-format Support: Detects artifacts in JPEG, WebP, AVIF, and JXL formats
  • Lightweight Architecture: Only ~2M parameters (~8MB model size)
  • High Precision: 99.4% on JPEG
  • Fast Inference: Optimized for real-time processing even on very weak HW using either CPU or GPU
  • Format-agnostic: Single model handles all compression types

Limitations

1. Resolution Dependency: Model trained on 512x512 crops; very small images may yield reduced accuracy
2. Quality Range: Model assumes standard quality ranges; non-standard encoders may produce different results
3. Image Resizing: Trying to detect compression artifacs in images which were compressed and than converted to lossless format and resized may fail or be much less accurate as these artifacts are washed by the resizing algorithms.

Environmental Impact

  • Training: ~12 GPU hours on RTX 5090
  • Model Size: 8MB (reduces storage and bandwidth costs)
Join our Telegram