Comprehensive · Fair · Open · Extensible

Benchmark blind robust
image watermarking.

One evaluation pipeline for image watermarking: embed, attack, extract, score and plot — for post-generation and in-generation methods alike. Eleven models, 44 attack configurations and 34 differentiable attackers ship with it.

$pip install watermarklab

Everything a robustness study needs

From a single call to a full benchmark report — without wiring the parts together yourself.

◉

One entry point

A single wl.evaluate() call runs embedding, visual-quality measurement, the attack sweep, extraction and scoring. It reads the dataloader to decide whether your model is post-generation (images) or in-generation (prompts) and routes the run accordingly.

⚙

44 attack configurations, 7 groups

Compression (classic JPEG / JPEG2000 / WebP and learned BMSHJ2018 / MBT2018 / Cheng2020), adversarial embedding, noise, blur, geometric, colour and diffusion regeneration — each with a calibrated strength sweep, all built by AttackersWithFactorsModel().

▤

34 differentiable attackers

Drop-in DiffAttacker layers for end-to-end adversarial training, including differentiable JPEG (mask / polynomial / Fourier), screen-capture PIMoG and print-capture StegaStamp.

☼

11 watermark models

Seven post-generation (DctDwt, DctDwtSvd, RivaGAN, StegaStamp, TrustMark, InvisMark, VINE), three in-generation (Tree-Ring, GaussianShading, StableSignature) and iSteganoGAN.

▣

10 metrics, 5 dataset loaders

Robustness (BER, EA, NC, NEB, TPR@x%FPR) and imperceptibility (PSNR, SSIM, RMSE, MAE, LPIPS) metrics, plus FID for in-generation runs, over MS-COCO 2017 images and prompts, Kodak24 and USC-SIPI.

▦

21 plotting helpers, 7 base classes

Robustness curves, model and attacker rankings, visual-quality and stego comparisons. Extend BaseWatermarkModel, BaseTestAttackModel, BaseMetric and the other base classes to plug in your own method.

The framework at a glance

Symbols and signatures are generated from the source tree by static AST analysis.

8modules
11watermark models
44attack configurations
34differentiable attackers
5datasets
10metrics

What the benchmark finds

Ranked by cumulative RQ-AUC across the attack sweep. The strongest post-generation method is StegaStamp; in-generation methods lead overall.

🥇

GaussianShading

IGW

Best overall. Only five attacks reach TPR@0.1%FPR = 0.8 against it.

🥈

StegaStamp

PGW

Strongest post-generation method; weakest under flipping and rotation.

🥉

VINE

PGW

Sensitive to cropping — a 10% crop drops TPR@0.1%FPR to 0.01.

Core modules

Eight modules — jump straight into any part of the API reference.

Start benchmarking in three lines

Instantiate a model, wrap the default attackers, and call wl.evaluate(). The API reference has the full signatures for every class and method.