Spaces:
Sleeping
Sleeping
Update SynthScope Space from the GitHub repository
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .github/workflows/ci.yml+2
- .gitignore+3
- AGENTS.md+79-4
- CLAUDE.mdAdded+1
- LEADERBOARD.md+19-19
- LICENSES.md+18-14
- accelerate_config_ddp.yamlAdded+15
- benchmark/README.md+8-4
- benchmark/aggregate_results.py+2-1
- benchmark/bench_eval_video.py+2-2
- benchmark/evaluate.py+3-2
- benchmark/generator_bench.py+3-2
- benchmark/generator_runs/flux2_klein_4b/RESULTS.md+8-8
- benchmark/generator_runs/flux2_klein_4b/results.json+17-17
- benchmark/generator_runs/flux2_klein_9b/RESULTS.md+8-8
- benchmark/generator_runs/flux2_klein_9b/results.json+17-17
- benchmark/generator_runs/qwen_image_2_1/RESULTS.md+4-4
- benchmark/generator_runs/qwen_image_2_1/results.json+17-17
- benchmark/leaderboard.py+11-7
- benchmark/seed_reference_results.py+181-55
- benchmark/submissions/aide.json+48-7
- benchmark/submissions/clip.json+48-7
- benchmark/submissions/cnn.json+48-7
- benchmark/submissions/co_spy_official.json+48-7
- benchmark/submissions/co_spy_scratch.json+49-8
- benchmark/submissions/d3.json+2-2
- benchmark/submissions/dinov2.json+48-7
- benchmark/submissions/fat_former.json+46-5
- benchmark/submissions/npr.json+48-7
- benchmark/submissions/restrav.json+2-2
- benchmark/submissions/safe.json+48-7
- benchmark/submissions/spai_official.json+14-8
- benchmark/submissions/spai_scratch.json+13-7
- benchmark/submissions/split.json+1-1
- benchmark/submissions/stall.json+2-2
- benchmark/submissions/vib_net.json+13-7
- conf/model/image/fat_former.yaml+9-5
- conf/model/image/mirror.yamlAdded+19
- conf/model/image/vina.yamlAdded+21
- conf/trainer/image/fat_former.yaml+20-6
- docs/BENCHMARKS.md+14
- docs/CAPABILITIES.md+4-1
- docs/WILD_BENCHMARKS.md+10-2
- experiments/image/fat_former.sh+43-11
- interface/backend/app.py+9-2
- interface/backend/build_repro_full.py+69-10
- interface/backend/engine.py+32
- interface/backend/media.py+81-5
- interface/backend/registry.py+98-13
- interface/backend/repro_full.json+332-28
30 unmodified lines31323334353630 unmodified linespython-version: "3.11"# Pure-stdlib check: validates every submissions/*.json and that LEADERBOARD.md is current.- run: python benchmark/leaderboard.py --checklint:name: Ruff (errors only)30 unmodified lines313233343536373830 unmodified linespython-version: "3.11"# Pure-stdlib check: validates every submissions/*.json and that LEADERBOARD.md is current.- run: python benchmark/leaderboard.py --check# Pure-stdlib check: SynthScope's own submissions still match their repro/bench_results evidence.- run: python benchmark/seed_reference_results.py --checklint:name: Ruff (errors only)
27 unmodified lines28293027 unmodified lines# generator benchmark runs: keep manifest/results/RESULTS.md, not the (large) image setsbenchmark/generator_runs/*/real/benchmark/generator_runs/*/fake/27 unmodified lines28293031323327 unmodified lines# generator benchmark runs: keep manifest/results/RESULTS.md, not the (large) image setsbenchmark/generator_runs/*/real/benchmark/generator_runs/*/fake/# Subagent-driven-development workspaces (local only).superpowers/
12345# Codex Project Rules- For this SynthScope project, always run Python/project commands inside the `SynthScope` conda environment, for example:`/home/ssalehi/miniconda3/bin/conda run -n SynthScope <command>`.- For this SynthScope project, discuss the intended approach and changes first. Only apply file/code changes after the user explicitly asks to run or make the changes.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980# Working with SynthScope (guide for coding agents)SynthScope wraps published AI-generated image and video detectors behind one registry, one inference engine and onebenchmark harness. This file tells coding agents (Claude Code, Codex, Copilot, ...) how to use and extend it. Humans:start with [README.md](README.md).## Setup```bashpip install -e . # library + CLI; extras: ".[web]" web demo, ".[train]" training, ".[dev]" tests/lint```- Install the PyTorch build that matches the machine's CUDA first. `clip` and `fat_former` also need OpenAI CLIP:`pip install git+https://github.com/openai/CLIP.git`.- Weights are read from `$SYNTHSCOPE_CKPT_DIR/<key>.pth` (default `~/.cache/synthscope/checkpoints`). Each detector's`models/<image|video>/<key>/README.md` links the official download. Training-free detectors (`d3`, `split`, `stall`)need no checkpoint.## Run a detector```pythonimport synthscopesynthscope.list_models() # detector keys + whether their weights are presentdet = synthscope.load("npr") # any key from list_models()det.predict("photo.png") # {'fake_probability': ..., 'verdict': 'fake' | 'real', ...}``````bashsynthscope listsynthscope detect photo.png --model npr --json```Pass a file path or bytes rather than an already-decoded image when you can: some detectors' official preprocessingdepends on the source format (e.g. a PNG is re-saved as JPEG before scoring), and the loaders record it.## Evaluate on a benchmark```bashpython benchmark/bench_eval.py --model npr --dataset synthwildx # downloads + organises the dataset if neededpython benchmark/bench_eval.py --help # protocols (--benchmark), --ckpt, --model-config, ...python benchmark/bench_eval_video.py --help # video detectors```Results go to `repro/bench_results/<tag>.json` and one line in `repro/MASTER_RESULTS.jsonl`. Report numbers only fromthose files, and state the protocol (subsets, threshold, metric) with every number.## Add a detectorFollow [docs/ADD_DETECTOR.md](docs/ADD_DETECTOR.md) exactly. In short:- `models/<image|video>/<key>/` with the model class (vendor official code with its licence header) and a `README.md`;- `conf/model/<image|video>/<key>.yaml` whose `eval_transform_list` is the official test-time preprocessing;- the dispatch in both `trainer.py` and `interface/backend/engine.py` (`_build_model`);- a `ModelSpec` in `interface/backend/registry.py` using `model_transform()`;- `tests/test_<key>_smoke.py` and a `LICENSES.md` row.Prove fidelity before claiming results: identical state dict and identical outputs to the official code on raw files,then reproduce the paper's tables with `bench_eval.py` on full data.## Checks before a pull request```bashpython -m compileall -q synthscope interface models benchmark *.pyruff check synthscopepython benchmark/leaderboard.py --checkpython tests/test_model_transforms.py # plus tests/test_<key>_smoke.py for any detector you touched```## Conventions- Imports at the top of the file; helpers and classes at module level; short comments in the style of the surroundingcode.- Never commit weights, datasets, `.env` or API keys. Third-party detectors, weights and datasets keep their ownlicences ([LICENSES.md](LICENSES.md)); do not redistribute weights whose licence does not allow it.- Keep the official preprocessing exact: a transform that "looks equivalent" can move a benchmark by several points.## CitingIf SynthScope helped the user's work, point them to [CITATION.cff](CITATION.cff) (GitHub's "Cite this repository"button) and to the original papers of the detectors they used.
1@AGENTS.md3 unmodified lines45678910111213141516171819202122232425262728293031323334353637383 unmodified linesThis is the **standardized, versioned** table: a few tracks with a fixed protocol that anyone can submit to. The web page's **Leaderboard** tab is broader (every paper benchmark, 30+ groups) and the repo supports many more datasets, which download and organize themselves: see [docs/BENCHMARKS.md](docs/BENCHMARKS.md).Metrics are percentages. **mAP** = mean AP over generators. Each track is ranked by its primary metric (in bold).## ForenSynths — image (ProGAN-trained, cross-generator)| Rank | Method | Eval | Acc | **mAP** | AP | AUROC | Verified | Notes || --- | --- | --- | --- | --- | --- | --- | --- | --- || 1 | FatFormer | official-weights | 98.39 | 99.70 | — | — | ✓ | ForenSynths-8 subset; official released weights || 2 | CO-SPY (official weights) | official-weights | 95.12 | 98.71 | — | — | ✓ | ForenSynths-8; vendored official architecture || 3 | UnivFD / CLIP | frozen-probe | — | 97.20 | — | 97.00 | ✓ | ForenSynths; frozen CLIP ViT-L/14 probe (ProGAN) || 4 | CO-SPY (from scratch) | from-scratch | — | 96.98 | — | 96.79 | ✓ | ForenSynths; SynthScope re-implementation trained on ProGAN || 5 | CNNDetection | from-scratch | — | 96.80 | — | 96.60 | ✓ | ForenSynths; ResNet-50 fine-tune (ProGAN) || 6 | DINOv2 probe | frozen-probe | — | 95.03 | — | 94.86 | ✓ | ForenSynths; frozen DINOv2 ViT-L/14 probe || 7 | SAFE | from-scratch | — | 94.13 | — | 93.68 | ✓ | ForenSynths; trained from scratch || 8 | AIDE | official-weights | — | 92.08 | — | — | ✓ | ForenSynths-8; mAP reproduces, acc@0.5 miscalibrated (single-view vs official 5-view DCT) || 9 | NPR | official-weights | 91.83 | 87.09 | — | — | ✓ | ForenSynths-8; official ProGAN weights |## GenImage SD-v1.4 — image| Rank | Method | Eval | Acc | mAP | AP | **AUROC** | Verified | Notes || --- | --- | --- | --- | --- | --- | --- | --- | --- || 1 | VIB-Net | from-scratch | — | 99.33 | — | 99.33 | ✓ | GenImage SD-v1.4 single real/fake pool (mAP == AUROC by construction) || 2 | SPAI (official weights) | official-weights | — | — | 94.01 | 98.45 | ✓ | GenImage SD-v1.4; vendored official architecture, fixed-res 2x2x224 || 3 | SPAI (from scratch) | from-scratch | — | — | — | 97.66 | ✓ | DMID Latent-Diffusion vs COCO; SynthScope fixed-resolution variant |## GenVideo-Val — video (all 10,000 MSR-VTT reals vs every fake, per generator)| Rank | Method | Eval | Acc | mAP | AP | **AUROC** | Verified | Notes || --- | --- | --- | --- | --- | --- | --- | --- | --- || 1 | SPLIT | training-free | 99.41 | 99.79 | — | 99.97 | ✓ | Training-free X-CLIP patch roughness x motion incoherence; Acc at the real-only FPR-1% calibration || 2 | D3 | training-free | 95.53 | 68.84 | — | 98.45 | ✓ | Training-free X-CLIP 2nd-order feature volatility (official preprocessing) || 3 | STALL | training-free | 56.89 | 32.05 | — | 82.59 | ✓ | Training-free DINOv3 spatio-temporal likelihood under VATEX real-video statistics || 4 | ReStraV | frozen-probe | 30.01 | 33.60 | — | 43.06 | ✓ | Frozen DINOv2 trajectory geometry + MLP trained on GenVidBench; does not transfer to GenVideo-Val (AUROC below 50) |3 unmodified lines45678910111213141516171819202122232425262728293031323334353637383 unmodified linesThis is the **standardized, versioned** table: a few tracks with a fixed protocol that anyone can submit to. The web page's **Leaderboard** tab is broader (every paper benchmark, 30+ groups) and the repo supports many more datasets, which download and organize themselves: see [docs/BENCHMARKS.md](docs/BENCHMARKS.md).Metrics are percentages. **mAP** = mean AP over generators. Each track is ranked by its primary metric (in bold). Unverified rows are listed after the ranked ones, without a rank.## ForenSynths-8 (8 generators) — image (ProGAN-trained, cross-generator)| Rank | Method | Eval | Acc | **mAP** | AP | AUROC | Verified | Notes || --- | --- | --- | --- | --- | --- | --- | --- | --- || 1 | FatFormer | official-weights | 98.39 | 99.70 | — | 99.57 | ✓ | ForenSynths-8; official 4-class ProGAN weights (the served fat_former.pth) || 2 | CO-SPY (official weights) | official-weights | 94.64 | 98.50 | — | 98.80 | ✓ | ForenSynths-8; official CO-SPY ProGAN checkpoint in the vendored official architecture (not the served co_spy.pth) || 3 | SAFE | from-scratch | 95.11 | 97.79 | — | 97.86 | ✓ | ForenSynths-8; trained in SynthScope on ProGAN, 40-epoch crop recipe (safe_full_v2/model_38, the served safe.pth) || 4 | UnivFD / CLIP | frozen-probe | 88.28 | 97.22 | — | 97.11 | ✓ | ForenSynths-8; frozen CLIP ViT-L/14 + linear head trained in SynthScope on ProGAN (the served clip.pth) || 5 | AIDE | official-weights | 88.38 | 96.03 | — | 95.60 | ✓ | ForenSynths-8; official ProGAN weights progan_train.pth, vendored official eval (native-resolution 5-view DCT); the served aide.pth is the SD-v1.4 release || 6 | CNNDetection | from-scratch | 76.36 | 94.42 | — | 94.42 | ✓ | ForenSynths-8; ImageNet ResNet-50 fine-tuned in SynthScope on ProGAN (the served cnn.pth) || 7 | NPR | official-weights | 92.30 | 94.22 | — | 96.08 | ✓ | ForenSynths-8; official ProGAN weights NPR.pth (the served npr.pth) || 8 | DINOv2 probe | frozen-probe | 78.98 | 90.61 | — | 90.83 | ✓ | ForenSynths-8; frozen DINOv2 ViT-L/14 + linear head trained in SynthScope on ProGAN (the served dinov2.pth) || — | CO-SPY (from scratch) | from-scratch | 89.21 | 97.18 | — | 97.62 | | Unverified: ForenSynths-8 score of the co_spy.pth of 2026-06-04, then labelled ProGAN-trained, whose training run is not recorded; not the served co_spy.pth (a GenImage SD-v1.4 retrain, not scored here) |## GenImage SD-v1.4 — image (diffusion-trained; in-distribution only for SD-v1.4-trained rows)| Rank | Method | Eval | Acc | mAP | AP | **AUROC** | Verified | Notes || --- | --- | --- | --- | --- | --- | --- | --- | --- || 1 | VIB-Net | from-scratch | 99.29 | 99.98 | — | 99.98 | ✓ | GenImage SD-v1.4, 6000 real + 6000 fake; trained in SynthScope on GenImage SD-v1.4 with the reconstructed recipe (job 267846, the served vib_net.pth); one generator, so mAP = AP || 2 | SPAI (from scratch) | from-scratch | 97.17 | 99.93 | — | 99.94 | ✓ | 300+300 subsample; trained on latent-diffusion (LDM) data, not SD-v1.4. GenImage SD-v1.4; trained in SynthScope with the official recipe (LDM vs COCO/LSUN, job 267192, epoch 8 by validation loss), native resolution || 3 | SPAI (official weights) | official-weights | 95.67 | 99.22 | — | 99.57 | ✓ | 300+300 subsample; trained on latent-diffusion (LDM) data, not SD-v1.4. GenImage SD-v1.4 (the run's per-generator cap); official weights remapped into the SynthScope class, native resolution (the served spai.pth) |## GenVideo-Val — video (all 10,000 MSR-VTT reals vs every fake, per generator)| Rank | Method | Eval | Acc | mAP | AP | **AUROC** | Verified | Notes || --- | --- | --- | --- | --- | --- | --- | --- | --- || 1 | SPLIT | training-free | 99.41 | 99.79 | — | 99.97 | ✓ | Training-free X-CLIP patch roughness x motion incoherence; Acc at the real-only FPR-1% calibration || 2 | D3 | training-free | 95.53 | 68.84 | — | 98.45 | ✓ | Training-free X-CLIP 2nd-order feature volatility (official preprocessing). AP here is fake-as-positive against all 10k reals; the README's 99.0 AP is the paper protocol (real-as-positive, first 1000 clips) || 3 | STALL | training-free | 56.89 | 32.05 | — | 82.59 | ✓ | Training-free DINOv3 spatio-temporal likelihood under VATEX real-video statistics. Full run; the README's 83.5 AUROC is the June subsample run || 4 | ReStraV | frozen-probe | 30.01 | 33.60 | — | 43.06 | ✓ | Frozen DINOv2 trajectory geometry + MLP trained in SynthScope (the served restrav.pth; its training set is not recorded); does not transfer to GenVideo-Val (AUROC below 50) |
19 unmodified lines2021222324252627282930313233343536373839404142434445464748494 unmodified lines54555657585960616219 unmodified lines| `model_type` | Method (venue) | Upstream code | Code license | Released weights SynthScope can load | Weights license || --- | --- | --- | --- | --- | --- || `cnn` | CNNDetection (CVPR'20) | PeterWang512/CNNDetection | ⚠ verify | ProGAN-trained (SynthScope-trained here) | ⚠ verify || `clip` | UnivFD (CVPR'23) | WisconsinAIVision/UniversalFakeDetect | ⚠ verify | — (SynthScope-trained probe) | n/a || `npr` | NPR (CVPR'24) | chuangchuangtan/NPR-DeepfakeDetection | no license in the repo; **written permission** from the first author (C. Tan, 2026-10-11) to include SynthScope's implementation under Apache-2.0, with credit and citation | **official** ProGAN weights (`NPR.pth`) | same permission: benchmarking and the free, non-commercial public demo, crediting the paper and repository || `fat_former` | FatFormer (CVPR'24) | Michel-liu/FatFormer (verify) | ⚠ verify | **official** weights | ⚠ verify || `aide` | AIDE (ICLR'25) | ⚠ verify (official repo) | ⚠ verify | **official** weights | ⚠ verify || `co_spy` | CO-SPY (CVPR'25) | ⚠ verify (official repo) | ⚠ verify | **official** weights | ⚠ verify || `spai` | SPAI (CVPR'25) | mever-team/spai (verify) | ⚠ verify | **official** weights | ⚠ verify || `vib_net` | VIB-Net (CVPR'25) | ⚠ verify (official repo) | ⚠ verify | — (SynthScope-trained) | n/a || `safe` | SAFE (KDD'25) | ⚠ verify (official repo) | ⚠ verify | — (SynthScope-trained) | n/a || `pgc` | PGC | ⚠ verify (official repo) | ⚠ verify | — (SynthScope-trained) | n/a || `cure` | CuRe (arXiv 2609.14316) | manic-cui/CuRe | Apache-2.0 (repo `LICENSE`) | **official** 25 MB adapter (`cure_adapter.pt`, loads as `cure.pth`) | Apache-2.0 (shipped in the repo; verify before redistributing) || `d3qe` | D3QE (ICCV'25) | Zhangyr2022/D3QE | MIT (repo `LICENSE`); `official/` vendors its network code — see the file headers | **official** checkpoint (`model_epoch_best.pth` from HF `Yanran21/D3QE`, loads as `d3qe.pth`) | MIT (HF model card license tag) || `ltf` | LTF (arXiv 2611.04529) | HuiGuanLab/LTF | MIT (repo `LICENSE`, `NOTICE`); `official/` vendors `ltf/model.py`, `ltf/token_ops.py`, `ltf/mil/*.py` and `ltf/data/images.py` with the license in `official/LICENSE` — see the file headers | **official** GenImage checkpoint (`weights/epoch_20.pth` from HF `MuskAI/LTF-v3.3` @ `a2a2e29c`, loads as `ltf.pth`) | **no license tag** on the HF model card (`MuskAI/LTF-v3.3`, checked 2026-11-05); only the code repo is MIT. The weights are not uploaded to the zoo and `ltf` is not on the Space until the authors confirm the weights terms || `dda` | DDA (NeurIPS'25) | roy-ch/Dual-Data-Alignment | Apache-2.0 (repo `LICENSE`); `official_arch.py` vendors its `lora.py` — see its header | **official** checkpoint (`DDA_ckpt.pth` from HF `Junwei-Xi/Dual-Data-Alignment`, loads as `dda.pth`) | Apache-2.0 (HF model card license tag) || `omniaid`, `omniaid_v1`, `omniaid_genimage` | OmniAID (arXiv 2511.08423) | yunncheng/OmniAID | MIT (README badge; no LICENSE file in the repo); `official_arch.py` vendors `models/OmniAID.py` — see its header | **official** checkpoints (`ckpt/checkpoint_omniaid_{v2,v1,genimage_sd14}.pth` from HF `Yunncheng/OmniAID`, loaded as `<key>.pth`) | MIT (HF model card license tag) || `bfree` | B-Free (CVPR'25) | grip-unina/B-Free | GRIP-UNINA license: informational and **nonprofit use only** (notices kept); `official_arch.py` vendors `code/networks/wrapper5crops.py` — see its header | **official** checkpoint (`BFREE_dino2reg4/model_epoch_best.pth` from grip.unina.it, loaded as `bfree.pth`) | GRIP-UNINA license (nonprofit use only) || `moejepa` | MoE-JEPA (ECCV'26 W) | ALCOR-Lab-DIAG/MoE-JEPA | MIT; `official_arch.py` vendors the blocks of `model/model.py` — see its header | **official** checkpoint (`moejepa_sidset.safetensors`, v1.0 GitHub release, loaded as `moejepa.safetensors`) | MIT || `effort`, `effort_chameleon` | Effort (ICML'25) | YZY-stack/Effort-AIGI-Detection | CC BY-NC 4.0 (README badge); `official_arch.py` vendors the SVD-residual layers of `DeepfakeBench/training/detectors/effort_detector.py` — see its header | **official** checkpoints (`effort_clip_L14_trainOn_{sdv14,chameleon}.pth` from the authors' Google Drive, loaded as `<key>.pth`) | CC BY-NC 4.0 (non-commercial) || `dinov2` | DINOv2 probe | facebookresearch/dinov2 | Apache-2.0 (verify) | DINOv2 backbone | Apache-2.0 (verify) || `dinov3` | DINOv3 probe | facebookresearch/dinov3 | DINOv3 License (gated) | DINOv3 backbone | **gated** — DINOv3 License || `adapted_dino` | Adapter-tuned DINOv2 (SynthScope) | this repo | Apache-2.0 | — (SynthScope-trained) | n/a || `d3` | D3 (ICCV'25) | ⚠ verify (official repo) | ⚠ verify | training-free (no weights) | n/a || `split` | SPLIT (ECCV'26) | mldljyh/SPLIT | MIT (LICENSE added 2026-11-02); no code copied: `models/video/split/split.py` is SynthScope's own implementation of the paper's equations | training-free (no weights) | n/a || `restrav` | ReStraV | ⚠ verify (official repo) | ⚠ verify | — (SynthScope-trained) | n/a || `stall` | STALL (CVPR'26) | OmerBenHayun/STALL | CC BY-NC 4.0 (`LICENSE.txt`) | training-free; needs the DINOv3 backbone (and ships the VATEX calibration `.npz`) | DINOv3 License (gated download) |## Backbones / foundation models (downloaded on first use)4 unmodified lines| OpenAI CLIP ViT-L/14@336 (HF `openai/clip-vit-large-patch14-336`) | `omniaid`, `omniaid_v1`, `omniaid_genimage` | MIT || OpenCLIP (ConvNeXt-XXL, LAION) | `aide` | code MIT; weights per LAION / model card (verify) || DINOv2 (ViT-L/14, ViT-S/14) | `dinov2`, `adapted_dino`, `restrav`, `dda` | Apache-2.0 (verify) || DINOv3 (ViT-L/16) | `dinov3`, `stall` | **gated** download — DINOv3 License (use and redistribution allowed with the license and attribution; trade-control restrictions) || SigLIP | `co_spy` | Apache-2.0 (verify) || MFM ViT-B/16 | `spai` | ⚠ verify || Stable Diffusion VAE | `co_spy` | CreativeML Open RAIL-M (verify) || V-JEPA 2 ViT-L (`facebook/vjepa2-vitl-fpc64-256`) | `moejepa` | MIT (HF model card) || X-CLIP B/16 (`microsoft/xclip-base-patch16`) | `d3`, `split` | MIT (HF model card) |19 unmodified lines2021222324252627282930313233343536373839404142434445464748495051524 unmodified lines5758596061626364656619 unmodified lines| `model_type` | Method (venue) | Upstream code | Code license | Released weights SynthScope can load | Weights license || --- | --- | --- | --- | --- | --- || `cnn` | CNNDetection (CVPR'20) | PeterWang512/CNNDetection | ⚠ verify | — (SynthScope-trained on ProGAN) | n/a (backbone: see below) || `clip` | UnivFD (CVPR'23) | WisconsinAIVision/UniversalFakeDetect | MIT (repo `LICENSE`) | — (SynthScope-trained probe) | n/a (backbone: see below) || `npr` | NPR (CVPR'24) | chuangchuangtan/NPR-DeepfakeDetection | no license in the repo; **written permission** from the first author (C. Tan, 2026-10-11) to include SynthScope's implementation under Apache-2.0, with credit and citation | **official** ProGAN weights (`NPR.pth`) | same permission: benchmarking and the free, non-commercial public demo, crediting the paper and repository || `fat_former` | FatFormer (CVPR'24) | Michel-liu/FatFormer | Apache-2.0 (repo `LICENSE`) | **official** weights | ⚠ verify || `aide` | AIDE (ICLR'25) | shilinyan99/AIDE | MIT (repo `LICENSE`) | **official** weights | ⚠ verify || `co_spy` | CO-SPY (CVPR'25) | Megum1/CO-SPY | ⚠ verify | — (SynthScope-trained on GenImage SD v1.4; the official checkpoints are used only as references) | n/a (backbones: see below) || `spai` | SPAI (CVPR'25) | mever-team/spai | Apache-2.0 (repo `LICENSE`) | **official** weights | Apache-2.0 (repo README: code and weights); its MFM backbone is under the S-Lab License (below) || `vib_net` | VIB-Net (CVPR'25) | ⚠ verify (official repo) | ⚠ verify | — (SynthScope-trained) | n/a (backbone: see below) || `vib_net_official` | VIB-Net, official model (CVPR'25) | ⚠ verify (official repo) | ⚠ verify | **official** checkpoints (restricted Google Drive; access requested), or a SynthScope-trained one | ⚠ verify; not redistributed || `safe` | SAFE (KDD'25) | ⚠ verify (official repo) | ⚠ verify | — (SynthScope-trained) | n/a || `pgc` | PGC | xiaoyu6868/PGC | ⚠ verify | **official** ProGAN checkpoint (`PGC_train_progan_ckpt.pth`, loaded as `pgc.pth`) | ⚠ verify || `cure` | CuRe (arXiv 2609.14316) | manic-cui/CuRe | Apache-2.0 (repo `LICENSE`) | **official** 25 MB adapter (`cure_adapter.pt`, loads as `cure.pth`) | Apache-2.0 (shipped in the repo; verify before redistributing) || `d3qe` | D3QE (ICCV'25) | Zhangyr2022/D3QE | MIT (repo `LICENSE`); `official/` vendors its network code — see the file headers | **official** checkpoint (`model_epoch_best.pth` from HF `Yanran21/D3QE`, loads as `d3qe.pth`) | MIT (HF model card license tag) || `ltf` | LTF (arXiv 2611.04529) | HuiGuanLab/LTF | MIT (repo `LICENSE`, `NOTICE`); `official/` vendors `ltf/model.py`, `ltf/token_ops.py`, `ltf/mil/*.py` and `ltf/data/images.py` with the license in `official/LICENSE` — see the file headers | **official** GenImage checkpoint (`weights/epoch_20.pth` from HF `MuskAI/LTF-v3.3` @ `a2a2e29c`, loads as `ltf.pth`) | **no license tag** on the HF model card (`MuskAI/LTF-v3.3`, checked 2026-11-05); only the code repo is MIT. The weights are not uploaded to the zoo and `ltf` is not on the Space until the authors confirm the weights terms || `dda` | DDA (NeurIPS'25) | roy-ch/Dual-Data-Alignment | Apache-2.0 (repo `LICENSE`); `official_arch.py` vendors its `lora.py` — see its header | **official** checkpoint (`DDA_ckpt.pth` from HF `Junwei-Xi/Dual-Data-Alignment`, loads as `dda.pth`) | Apache-2.0 (HF model card license tag) || `omniaid`, `omniaid_v1`, `omniaid_genimage` | OmniAID (arXiv 2511.08423) | yunncheng/OmniAID | MIT (README badge; no LICENSE file in the repo); `official_arch.py` vendors `models/OmniAID.py` — see its header | **official** checkpoints (`ckpt/checkpoint_omniaid_{v2,v1,genimage_sd14}.pth` from HF `Yunncheng/OmniAID`, loaded as `<key>.pth`) | MIT (HF model card license tag) || `bfree` | B-Free (CVPR'25) | grip-unina/B-Free | GRIP-UNINA license: informational and **nonprofit use only** (notices kept); `official_arch.py` vendors `code/networks/wrapper5crops.py` — see its header | **official** checkpoint (`BFREE_dino2reg4/model_epoch_best.pth` from grip.unina.it, loaded as `bfree.pth`) | GRIP-UNINA license (nonprofit use only) || `mirror` | MIRROR (NeurIPS'26) | handsome-rich/MIRROR | **unclear**: the README badge says MIT, but the repo has no LICENSE file (the badge's link 404s); `official_arch.py` vendors `models/mirror.py`, and `preprocess.py` vendors the eval transform of `data/datasets.py` (see the file headers) | **official** phase-2 checkpoint (`checkpoint-h-cur.pth`, authors' Google Drive, loaded as `mirror.pth`; it contains the DINOv3 ViT-H+ weights) | **unclear** (no licence stated); not redistributed: not in the model zoo or on the Space || `vina`, `vina_video` | VINA (arXiv 2605.21977) | mgiant/VINA | **unclear**: the repo (commit 225d331) has no LICENSE file and the README states no licence; `official_arch.py` vendors the `DINOv3` class of `models/DINOv3.py` (see its header) | **official** checkpoint (`VINA_DINOv3-L_140k+DDA.pth` from HF `mgiant/VINA_checkpoints` @ f258349, loaded as `vina.pth`; it contains the DINOv3 ViT-L/16 weights) | **unclear** (no licence tag on the HF repo, empty model card); not redistributed: not in the model zoo or on the Space || `moejepa` | MoE-JEPA (ECCV'26 W) | ALCOR-Lab-DIAG/MoE-JEPA | MIT; `official_arch.py` vendors the blocks of `model/model.py` — see its header | **official** checkpoint (`moejepa_sidset.safetensors`, v1.0 GitHub release, loaded as `moejepa.safetensors`) | MIT || `effort`, `effort_chameleon` | Effort (ICML'25) | YZY-stack/Effort-AIGI-Detection | CC BY-NC 4.0 (README badge); `official_arch.py` vendors the SVD-residual layers of `DeepfakeBench/training/detectors/effort_detector.py` — see its header | **official** checkpoints (`effort_clip_L14_trainOn_{sdv14,chameleon}.pth` from the authors' Google Drive, loaded as `<key>.pth`); the SynthScope-trained ProGAN model (config `image/effort_ufd`) is not a served key and stays on the shared filesystem | CC BY-NC 4.0 (non-commercial) || `dinov2` | DINOv2 probe | facebookresearch/dinov2 | Apache-2.0 (verify) | DINOv2 backbone | Apache-2.0 (verify) || `dinov3` | DINOv3 probe | facebookresearch/dinov3 | DINOv3 License (gated) | DINOv3 backbone | **gated** — DINOv3 License || `adapted_dino` | Adapter-tuned DINOv2 (SynthScope) | this repo | Apache-2.0 | — (SynthScope-trained) | n/a (backbone: see below) || `d3` | D3 (ICCV'25) | Zig-HS/D3 | MIT (repo `LICENSE`) | training-free (no weights) | n/a || `split` | SPLIT (ECCV'26) | mldljyh/SPLIT | MIT (LICENSE added 2026-11-02); no code copied: `models/video/split/split.py` is SynthScope's own implementation of the paper's equations | training-free (no weights) | n/a || `restrav` | ReStraV | ⚠ verify (official repo) | ⚠ verify | — (SynthScope-trained) | n/a (backbone: see below) || `stall` | STALL (CVPR'26) | OmerBenHayun/STALL | CC BY-NC 4.0 (`LICENSE.txt`) | training-free; needs the DINOv3 backbone (and ships the VATEX calibration `.npz`) | DINOv3 License (gated download) |## Backbones / foundation models (downloaded on first use)4 unmodified lines| OpenAI CLIP ViT-L/14@336 (HF `openai/clip-vit-large-patch14-336`) | `omniaid`, `omniaid_v1`, `omniaid_genimage` | MIT || OpenCLIP (ConvNeXt-XXL, LAION) | `aide` | code MIT; weights per LAION / model card (verify) || DINOv2 (ViT-L/14, ViT-S/14) | `dinov2`, `adapted_dino`, `restrav`, `dda` | Apache-2.0 (verify) || DINOv3 (ViT-L/16) | `dinov3`, `stall`, `vina` / `vina_video` (its weights are inside the VINA checkpoint; the gated HF `facebook/dinov3-vitl16-pretrain-lvd1689m` is only needed for training) | **gated** download — DINOv3 License (use and redistribution allowed with the license and attribution; trade-control restrictions) || DINOv3 ViT-H+/16 (HF `facebook/dinov3-vith16plus-pretrain-lvd1689m`) | `mirror` (its weights are inside the MIRROR checkpoint; the gated download is only needed for training) | **gated** - DINOv3 License || SigLIP | `co_spy` | Apache-2.0 (verify) || MFM ViT-B/16 | `spai` | S-Lab License 1.0 (non-commercial use; shipped as `mfm/LICENSE_S-Lab.txt` in the weights repo) || Stable Diffusion VAE | `co_spy` | CreativeML Open RAIL-M (verify) || V-JEPA 2 ViT-L (`facebook/vjepa2-vitl-fpc64-256`) | `moejepa` | MIT (HF model card) || X-CLIP B/16 (`microsoft/xclip-base-patch16`) | `d3`, `split` | MIT (HF model card) |
123456789101112131415# Plain multi-GPU data parallel (DDP), fp32: no DeepSpeed, hence no gradient clipping. For the recipes whose official code# trains without clipping (e.g. experiments/image/fat_former.sh); accelerate_config.yaml is the DeepSpeed ZeRO-2 config# with clipping 1.0. num_processes is set by `accelerate launch --num_processes`.compute_environment: LOCAL_MACHINEdistributed_type: MULTI_GPUmixed_precision: "no"num_machines: 1num_processes: 1machine_rank: 0main_training_function: mainrdzv_backend: staticsame_network: trueuse_cpu: falsedowncast_bf16: "no"dynamo_backend: "NO"14 unmodified lines151617181920212215 unmodified lines383940414243444514 unmodified lines| Track id | Modality | Test set | Train signal | Primary metric || --- | --- | --- | --- | --- || `forensynths` | image | ForenSynths real/fake, scored **per generator** | ProGAN-trained (cross-generator generalization) | **mAP** (mean AP over generators) || `genimage-sdv1.4` | image | GenImage SD-v1.4 real/fake | in-distribution diffusion | **AUROC** || `genvideo-val` | video | GenVideo-Val: all 10,000 MSR-VTT reals against every fake, per generator | mixed | **AUROC** (AP with fake as positive is unstable here: as few as 56 fakes against 10,000 reals) |**These three tracks are only the start.** The repo supports 20 image and 8 video benchmark datasets (see the table in the15 unmodified lines3. **Declare provenance** via `evaluation`: `official-weights`, `from-scratch`, `frozen-probe`,`training-free`, or `external` (numbers produced outside SynthScope).4. **Verified numbers trace to a run.** `verified: true` means the result came from a logged SynthScopeevaluation (set `source` to the log/run path). Reference seed entries are transcribed from therepo's reproduction table.## Data layout14 unmodified lines151617181920212215 unmodified lines38394041424344454647484914 unmodified lines| Track id | Modality | Test set | Train signal | Primary metric || --- | --- | --- | --- | --- || `forensynths` | image | ForenSynths-8: the 8 GAN test sets (ProGAN, StyleGAN, StyleGAN2, BigGAN, CycleGAN, StarGAN, GauGAN, Deepfake), real/fake, scored **per generator** | ProGAN-trained (cross-generator generalization) | **mAP** (mean AP over generators) || `genimage-sdv1.4` | image | the SD-v1.4 subset of the GenImage test set, real/fake (one generator, so mAP = AP; each row's notes give its image count) | diffusion-trained (in-distribution only for SD-v1.4-trained rows) | **AUROC** || `genvideo-val` | video | GenVideo-Val: all 10,000 MSR-VTT reals against every fake, per generator | mixed | **AUROC** (AP with fake as positive is unstable here: as few as 56 fakes against 10,000 reals) |**These three tracks are only the start.** The repo supports 20 image and 8 video benchmark datasets (see the table in the15 unmodified lines3. **Declare provenance** via `evaluation`: `official-weights`, `from-scratch`, `frozen-probe`,`training-free`, or `external` (numbers produced outside SynthScope).4. **Verified numbers trace to a run.** `verified: true` means the result came from a logged SynthScopeevaluation of the registry-default checkpoint at the date given (or the checkpoint the row names); set`source` to the log/run path. SynthScope's own entriesare built by [`seed_reference_results.py`](seed_reference_results.py) from the committed`repro/bench_results/*.json` of each run, with the job id in `source`; `--check` confirms they stillmatch. An entry whose checkpoint cannot be confirmed to fit the track is kept with `verified: false`;unverified rows are listed unranked, after the ranked ones.## Data layout
123456"""Aggregate the self-recorded bench_eval results into a master reproduced-results table.Reads every repro/bench_results/<tag>.json (latest run per tag), prints a compact summary, writesrepro/RESULTS_TABLE.md (model | weights | benchmark | n_gen | acc / mAP / mAUROC), and supportscomputing a paper-matching subset mean from a run's per-generator dict:1234567"""Aggregate the self-recorded bench_eval results into a master reproduced-results table.Reads every repro/bench_results/<tag>.json (latest run per tag; the _superseded/ subfolder is not read, it holds runsreplaced by a corrected rerun, see its README), prints a compact summary, writesrepro/RESULTS_TABLE.md (model | weights | benchmark | n_gen | acc / mAP / mAUROC), and supportscomputing a paper-matching subset mean from a run's per-generator dict:
1234124 unmodified lines129130131132133134135"""Unified VIDEO benchmark eval for SynthScope video detectors (d3, restrav, stall).Scores each video through the SAME verified synthscope engine path the web app uses(engine.predict_video_clip -> native clip pipeline + per-model norm + fake-prob), computes124 unmodified linesdef main(argv=None) -> int:ap = argparse.ArgumentParser()ap.add_argument("-m", "--model", required=True, choices=["d3", "split", "restrav", "stall"])ap.add_argument("--benchmark", choices=["genvideo", "fakeonly", "pergen"], help="layout (not needed with --dataset)")ap.add_argument("--data", help="benchmark root (not needed with --dataset)")ap.add_argument("--dataset", help="a supported video dataset (genvideo, videophy, vidprom, evalcrafter, ...): downloads "1234124 unmodified lines129130131132133134135"""Unified VIDEO benchmark eval for SynthScope video detectors (d3, split, restrav, stall, vina_video).Scores each video through the SAME verified synthscope engine path the web app uses(engine.predict_video_clip -> native clip pipeline + per-model norm + fake-prob), computes124 unmodified linesdef main(argv=None) -> int:ap = argparse.ArgumentParser()ap.add_argument("-m", "--model", required=True, choices=["d3", "split", "restrav", "stall", "vina_video"])ap.add_argument("--benchmark", choices=["genvideo", "fakeonly", "pergen"], help="layout (not needed with --dataset)")ap.add_argument("--data", help="benchmark root (not needed with --dataset)")ap.add_argument("--dataset", help="a supported video dataset (genvideo, videophy, vidprom, evalcrafter, ...): downloads "
21 unmodified lines22232425262728293043 unmodified lines7475767778798021 unmodified linesfrom pathlib import Pathimport torchfrom PIL import Image, ImageFileimport synthscopeImageFile.LOAD_TRUNCATED_IMAGES = True43 unmodified linesfor i in range(0, len(paths), batch_size):batch = []for p in paths[i:i + batch_size]:batch.append(spec.transform(Image.open(p).convert("RGB")))x = torch.stack(batch).to(device)probs.append(det._engine._fake_prob(model, spec, x).detach().float().cpu())return torch.cat(probs) if probs else torch.empty(0)21 unmodified lines2223242526272829303143 unmodified lines7576777879808121 unmodified linesfrom pathlib import Pathimport torchfrom PIL import ImageFileimport synthscopefrom interface.backend import mediaImageFile.LOAD_TRUNCATED_IMAGES = True43 unmodified linesfor i in range(0, len(paths), batch_size):batch = []for p in paths[i:i + batch_size]:batch.append(spec.transform(media.open_rgb(p))) # keeps the source-format hint (CuRe, MIRROR)x = torch.stack(batch).to(device)probs.append(det._engine._fake_prob(model, spec, x).detach().float().cpu())return torch.cat(probs) if probs else torch.empty(0)
34 unmodified lines35363738394083 unmodified lines12412512612712812913013134 unmodified linesfrom PIL import Imagefrom interface.backend import generators as Gfrom interface.backend.registry import list_specsIMG_EXT = (".jpg", ".jpeg", ".png", ".webp")83 unmodified linesfrom sklearn.metrics import average_precision_score, roc_auc_scorefrom interface.backend.engine import get_engineengine = get_engine()reals = [Image.open(p).convert("RGB") for p in sorted(glob.glob(str(real_dir / "*.png")))]fakes = [Image.open(p).convert("RGB") for p in sorted(glob.glob(str(fake_dir / "*.png")))]log(f"[score] {len(reals)} real + {len(fakes)} fake")y = np.array([0] * len(reals) + [1] * len(fakes))keys = args.detectors.split(",") if args.detectors else None34 unmodified lines3536373839404183 unmodified lines12512612712812913013113234 unmodified linesfrom PIL import Imagefrom interface.backend import generators as Gfrom interface.backend import mediafrom interface.backend.registry import list_specsIMG_EXT = (".jpg", ".jpeg", ".png", ".webp")83 unmodified linesfrom sklearn.metrics import average_precision_score, roc_auc_scorefrom interface.backend.engine import get_engineengine = get_engine()reals = [media.open_rgb(p) for p in sorted(glob.glob(str(real_dir / "*.png")))] # keeps the PNG hint (CuRe, MIRROR)fakes = [media.open_rgb(p) for p in sorted(glob.glob(str(fake_dir / "*.png")))]log(f"[score] {len(reals)} real + {len(fakes)} fake")y = np.array([0] * len(reals) + [1] * len(fakes))keys = args.detectors.split(",") if args.detectors else None
5 unmodified lines6789101112131415161718195 unmodified lines|---|---|---|---|---|---|---|| 1 | CO-SPY | 99.31 | 99.27 | 98.0 | 99.0 | 3.0 || 2 | DDA | 99.19 | 99.2 | 93.0 | 90.0 | 4.0 || 3 | CuRe | 98.62 | 98.92 | 93.0 | 86.0 | 0.0 || 4 | PGC | 97.33 | 96.57 | 53.5 | 7.0 | 0.0 || 5 | VIB-Net | 97.16 | 97.27 | 88.0 | 81.0 | 5.0 || 6 | OmniAID (GenImage) | 96.8 | 95.77 | 89.5 | 86.0 | 7.0 || 7 | OmniAID (v1) | 96.26 | 95.36 | 93.5 | 97.0 | 10.0 || 8 | Effort | 96.08 | 95.31 | 85.5 | 81.0 | 10.0 || 9 | AIDE | 94.08 | 90.5 | 81.0 | 69.0 | 7.0 || 10 | SAFE | 92.04 | 82.32 | 87.0 | 84.0 | 10.0 || 11 | NPR | 89.18 | 82.53 | 78.0 | 99.0 | 43.0 || 12 | OmniAID | 84.95 | 86.48 | 64.5 | 31.0 | 2.0 || 13 | SPAI | 78.08 | 75.23 | 65.0 | 38.0 | 8.0 |5 unmodified lines6789101112131415161718195 unmodified lines|---|---|---|---|---|---|---|| 1 | CO-SPY | 99.31 | 99.27 | 98.0 | 99.0 | 3.0 || 2 | DDA | 99.19 | 99.2 | 93.0 | 90.0 | 4.0 || 3 | CuRe | 99.02 | 99.2 | 94.0 | 88.0 | 0.0 || 4 | VIB-Net | 97.16 | 97.27 | 88.0 | 81.0 | 5.0 || 5 | OmniAID (GenImage) | 96.8 | 95.77 | 89.5 | 86.0 | 7.0 || 6 | OmniAID (v1) | 96.26 | 95.36 | 93.5 | 97.0 | 10.0 || 7 | Effort | 96.08 | 95.31 | 85.5 | 81.0 | 10.0 || 8 | AIDE | 94.08 | 90.5 | 81.0 | 69.0 | 7.0 || 9 | SAFE | 92.04 | 82.32 | 87.0 | 84.0 | 10.0 || 10 | PGC | 90.7 | 83.29 | 52.5 | 7.0 | 2.0 || 11 | NPR | 89.18 | 82.53 | 78.0 | 99.0 | 43.0 || 12 | OmniAID | 84.95 | 86.48 | 64.5 | 31.0 | 2.0 || 13 | SPAI | 78.08 | 75.23 | 65.0 | 38.0 | 8.0 |
23 unmodified lines24252627282930313233343536373839404142434445464761 unmodified lines10911011111211311423 unmodified lines{"detector": "cure","name": "CuRe","auroc": 98.62,"ap": 98.92,"acc": 93.0,"fake_detect_rate": 86.0,"real_false_pos": 0.0,"mean_p_fake_on_fakes": 0.848,"mean_p_fake_on_reals": 0.0129},{"detector": "pgc","name": "PGC","auroc": 97.33,"ap": 96.57,"acc": 53.5,"fake_detect_rate": 7.0,"real_false_pos": 0.0,"mean_p_fake_on_fakes": 0.438,"mean_p_fake_on_reals": 0.2672},{"detector": "vib_net",61 unmodified lines"mean_p_fake_on_fakes": 0.7562,"mean_p_fake_on_reals": 0.1425},{"detector": "npr","name": "NPR",23 unmodified lines2425262728293031323334353661 unmodified lines989910010110210310410510610710810911011111211311423 unmodified lines{"detector": "cure","name": "CuRe","auroc": 99.02,"ap": 99.2,"acc": 94.0,"fake_detect_rate": 88.0,"real_false_pos": 0.0,"mean_p_fake_on_fakes": 0.8733,"mean_p_fake_on_reals": 0.0115},{"detector": "vib_net",61 unmodified lines"mean_p_fake_on_fakes": 0.7562,"mean_p_fake_on_reals": 0.1425},{"detector": "pgc","name": "PGC","auroc": 90.7,"ap": 83.29,"acc": 52.5,"fake_detect_rate": 7.0,"real_false_pos": 2.0,"mean_p_fake_on_fakes": 0.4145,"mean_p_fake_on_reals": 0.2596},{"detector": "npr","name": "NPR",
5 unmodified lines6789101112131415161718195 unmodified lines|---|---|---|---|---|---|---|| 1 | CO-SPY | 99.34 | 99.3 | 98.0 | 99.0 | 3.0 || 2 | DDA | 98.52 | 98.65 | 92.0 | 88.0 | 4.0 || 3 | PGC | 97.35 | 96.45 | 53.5 | 7.0 | 0.0 || 4 | CuRe | 96.23 | 97.07 | 88.5 | 77.0 | 0.0 || 5 | VIB-Net | 96.12 | 96.19 | 84.5 | 74.0 | 5.0 || 6 | Effort | 95.46 | 94.17 | 84.5 | 79.0 | 10.0 || 7 | OmniAID (GenImage) | 94.25 | 91.19 | 80.5 | 68.0 | 7.0 || 8 | AIDE | 93.73 | 88.94 | 81.0 | 69.0 | 7.0 || 9 | OmniAID (v1) | 93.39 | 91.36 | 89.5 | 89.0 | 10.0 || 10 | SAFE | 92.32 | 84.09 | 88.5 | 87.0 | 10.0 || 11 | NPR | 88.61 | 81.74 | 78.5 | 100.0 | 43.0 || 12 | OmniAID | 76.57 | 79.4 | 60.0 | 22.0 | 2.0 || 13 | SPAI | 66.54 | 63.78 | 56.0 | 20.0 | 8.0 |5 unmodified lines6789101112131415161718195 unmodified lines|---|---|---|---|---|---|---|| 1 | CO-SPY | 99.34 | 99.3 | 98.0 | 99.0 | 3.0 || 2 | DDA | 98.52 | 98.65 | 92.0 | 88.0 | 4.0 || 3 | CuRe | 97.08 | 97.68 | 90.0 | 80.0 | 0.0 || 4 | VIB-Net | 96.12 | 96.19 | 84.5 | 74.0 | 5.0 || 5 | Effort | 95.46 | 94.17 | 84.5 | 79.0 | 10.0 || 6 | OmniAID (GenImage) | 94.25 | 91.19 | 80.5 | 68.0 | 7.0 || 7 | AIDE | 93.73 | 88.94 | 81.0 | 69.0 | 7.0 || 8 | OmniAID (v1) | 93.39 | 91.36 | 89.5 | 89.0 | 10.0 || 9 | SAFE | 92.32 | 84.09 | 88.5 | 87.0 | 10.0 || 10 | PGC | 90.72 | 83.54 | 52.5 | 7.0 | 2.0 || 11 | NPR | 88.61 | 81.74 | 78.5 | 100.0 | 43.0 || 12 | OmniAID | 76.57 | 79.4 | 60.0 | 22.0 | 2.0 || 13 | SPAI | 66.54 | 63.78 | 56.0 | 20.0 | 8.0 |
20 unmodified lines21222324252627282930313233343536373839404142434445464761 unmodified lines10911011111211311420 unmodified lines"mean_p_fake_on_fakes": 0.8548,"mean_p_fake_on_reals": 0.0934},{"detector": "pgc","name": "PGC","auroc": 97.35,"ap": 96.45,"acc": 53.5,"fake_detect_rate": 7.0,"real_false_pos": 0.0,"mean_p_fake_on_fakes": 0.4389,"mean_p_fake_on_reals": 0.2672},{"detector": "cure","name": "CuRe","auroc": 96.23,"ap": 97.07,"acc": 88.5,"fake_detect_rate": 77.0,"real_false_pos": 0.0,"mean_p_fake_on_fakes": 0.739,"mean_p_fake_on_reals": 0.0129},{"detector": "vib_net",61 unmodified lines"mean_p_fake_on_fakes": 0.7988,"mean_p_fake_on_reals": 0.1425},{"detector": "npr","name": "NPR",20 unmodified lines2122232425262728293031323334353661 unmodified lines989910010110210310410510610710810911011111211311420 unmodified lines"mean_p_fake_on_fakes": 0.8548,"mean_p_fake_on_reals": 0.0934},{"detector": "cure","name": "CuRe","auroc": 97.08,"ap": 97.68,"acc": 90.0,"fake_detect_rate": 80.0,"real_false_pos": 0.0,"mean_p_fake_on_fakes": 0.7736,"mean_p_fake_on_reals": 0.0115},{"detector": "vib_net",61 unmodified lines"mean_p_fake_on_fakes": 0.7988,"mean_p_fake_on_reals": 0.1425},{"detector": "pgc","name": "PGC","auroc": 90.72,"ap": 83.54,"acc": 52.5,"fake_detect_rate": 7.0,"real_false_pos": 2.0,"mean_p_fake_on_fakes": 0.4177,"mean_p_fake_on_reals": 0.2596},{"detector": "npr","name": "NPR",
5 unmodified lines6789101112131415165 unmodified lines|---|---|---|---|---|---|---|| 1 | VIB-Net | 99.82 | 99.83 | 97.5 | 99.0 | 4.0 || 2 | CO-SPY | 98.87 | 98.7 | 95.5 | 94.0 | 3.0 || 3 | PGC | 98.5 | 98.3 | 60.0 | 20.0 | 0.0 || 4 | Effort | 97.14 | 96.74 | 90.0 | 90.0 | 10.0 || 5 | SPAI | 96.71 | 96.1 | 92.0 | 92.0 | 8.0 || 6 | OmniAID (v1) | 92.81 | 90.39 | 90.0 | 90.0 | 10.0 || 7 | CuRe | 92.67 | 94.29 | 82.0 | 64.0 | 0.0 || 8 | DDA | 91.51 | 92.19 | 78.0 | 60.0 | 4.0 || 9 | OmniAID (GenImage) | 91.08 | 89.67 | 73.5 | 54.0 | 7.0 || 10 | SAFE | 90.85 | 81.07 | 76.5 | 63.0 | 10.0 |5 unmodified lines6789101112131415165 unmodified lines|---|---|---|---|---|---|---|| 1 | VIB-Net | 99.82 | 99.83 | 97.5 | 99.0 | 4.0 || 2 | CO-SPY | 98.87 | 98.7 | 95.5 | 94.0 | 3.0 || 3 | Effort | 97.14 | 96.74 | 90.0 | 90.0 | 10.0 || 4 | SPAI | 96.71 | 96.1 | 92.0 | 92.0 | 8.0 || 5 | PGC | 94.43 | 92.19 | 62.5 | 27.0 | 2.0 || 6 | OmniAID (v1) | 92.81 | 90.39 | 90.0 | 90.0 | 10.0 || 7 | CuRe | 92.37 | 94.05 | 83.0 | 66.0 | 0.0 || 8 | DDA | 91.51 | 92.19 | 78.0 | 60.0 | 4.0 || 9 | OmniAID (GenImage) | 91.08 | 89.67 | 73.5 | 54.0 | 7.0 || 10 | SAFE | 90.85 | 81.07 | 76.5 | 63.0 | 10.0 |
20 unmodified lines212223242526272829303132333435363716 unmodified lines5455565758598 unmodified lines6869707172737475767778798020 unmodified lines"mean_p_fake_on_fakes": 0.8087,"mean_p_fake_on_reals": 0.116},{"detector": "pgc","name": "PGC","auroc": 98.5,"ap": 98.3,"acc": 60.0,"fake_detect_rate": 20.0,"real_false_pos": 0.0,"mean_p_fake_on_fakes": 0.4666,"mean_p_fake_on_reals": 0.2672},{"detector": "effort","name": "Effort",16 unmodified lines"mean_p_fake_on_fakes": 0.8983,"mean_p_fake_on_reals": 0.0778},{"detector": "omniaid_v1","name": "OmniAID (v1)",8 unmodified lines{"detector": "cure","name": "CuRe","auroc": 92.67,"ap": 94.29,"acc": 82.0,"fake_detect_rate": 64.0,"real_false_pos": 0.0,"mean_p_fake_on_fakes": 0.629,"mean_p_fake_on_reals": 0.0129},{"detector": "dda",20 unmodified lines21222324252616 unmodified lines43444546474849505152535455565758598 unmodified lines6869707172737475767778798020 unmodified lines"mean_p_fake_on_fakes": 0.8087,"mean_p_fake_on_reals": 0.116},{"detector": "effort","name": "Effort",16 unmodified lines"mean_p_fake_on_fakes": 0.8983,"mean_p_fake_on_reals": 0.0778},{"detector": "pgc","name": "PGC","auroc": 94.43,"ap": 92.19,"acc": 62.5,"fake_detect_rate": 27.0,"real_false_pos": 2.0,"mean_p_fake_on_fakes": 0.4723,"mean_p_fake_on_reals": 0.2596},{"detector": "omniaid_v1","name": "OmniAID (v1)",8 unmodified lines{"detector": "cure","name": "CuRe","auroc": 92.37,"ap": 94.05,"acc": 83.0,"fake_detect_rate": 66.0,"real_false_pos": 0.0,"mean_p_fake_on_fakes": 0.6506,"mean_p_fake_on_reals": 0.0115},{"detector": "dda",
18 unmodified lines192021222324252627282952 unmodified lines82838485868788894 unmodified lines94959697989910010 unmodified lines11111211311411511611711811918 unmodified lines# Track order, titles, and the metric each track ranks by.TRACKS = {"forensynths": {"title": "ForenSynths — image (ProGAN-trained, cross-generator)","primary": "map", "modality": "image",},"genimage-sdv1.4": {"title": "GenImage SD-v1.4 — image", "primary": "auroc", "modality": "image",},"genvideo-val": {"title": "GenVideo-Val — video (all 10,000 MSR-VTT reals vs every fake, per generator)", "primary": "auroc",52 unmodified linesdef _sort_key(sub, primary):v = sub.get("metrics", {}).get(primary)# rank desc by primary; missing primary sorts lastreturn (0, -v) if isinstance(v, (int, float)) else (1, 0.0)def render() -> str:4 unmodified lines"See [benchmark/README.md](benchmark/README.md) for the protocol and how to submit.","", "This is the **standardized, versioned** table: a few tracks with a fixed protocol that anyone can submit to. The web page's **Leaderboard** tab is broader (every paper benchmark, 30+ groups) and the repo supports many more datasets, which download and organize themselves: see [docs/BENCHMARKS.md](docs/BENCHMARKS.md).", "","Metrics are percentages. **mAP** = mean AP over generators. Each track is ranked by ""its primary metric (in bold).", "",]for track_id, cfg in TRACKS.items():rows = [s for s in subs if s.get("track") == track_id]10 unmodified linesrows.sort(key=lambda s: _sort_key(s, primary))lines.append("| " + " | ".join(header_cells) + " |")lines.append("| " + " | ".join(["---"] * len(header_cells)) + " |")for i, s in enumerate(rows, 1):m = s.get("metrics", {})cells = [str(i), s["method"], s["evaluation"]]cells += [_fmt(m.get(key)) for key, _ in METRIC_COLS]cells.append("✓" if s.get("verified") else "")note = s.get("protocol_notes") or ""18 unmodified lines19202122232425262728293052 unmodified lines83848586878889904 unmodified lines959697989910010110 unmodified lines11211311411511611711811912012112212318 unmodified lines# Track order, titles, and the metric each track ranks by.TRACKS = {"forensynths": {"title": "ForenSynths-8 (8 generators) — image (ProGAN-trained, cross-generator)","primary": "map", "modality": "image",},"genimage-sdv1.4": {"title": "GenImage SD-v1.4 — image (diffusion-trained; in-distribution only for SD-v1.4-trained rows)","primary": "auroc", "modality": "image",},"genvideo-val": {"title": "GenVideo-Val — video (all 10,000 MSR-VTT reals vs every fake, per generator)", "primary": "auroc",52 unmodified linesdef _sort_key(sub, primary):v = sub.get("metrics", {}).get(primary)# verified rows first, each group desc by primary; missing primary sorts last within its groupreturn (0 if sub.get("verified") else 1,) + ((0, -v) if isinstance(v, (int, float)) else (1, 0.0))def render() -> str:4 unmodified lines"See [benchmark/README.md](benchmark/README.md) for the protocol and how to submit.","", "This is the **standardized, versioned** table: a few tracks with a fixed protocol that anyone can submit to. The web page's **Leaderboard** tab is broader (every paper benchmark, 30+ groups) and the repo supports many more datasets, which download and organize themselves: see [docs/BENCHMARKS.md](docs/BENCHMARKS.md).", "","Metrics are percentages. **mAP** = mean AP over generators. Each track is ranked by ""its primary metric (in bold). Unverified rows are listed after the ranked ones, without a rank.", "",]for track_id, cfg in TRACKS.items():rows = [s for s in subs if s.get("track") == track_id]10 unmodified linesrows.sort(key=lambda s: _sort_key(s, primary))lines.append("| " + " | ".join(header_cells) + " |")lines.append("| " + " | ".join(["---"] * len(header_cells)) + " |")rank = 0for s in rows:m = s.get("metrics", {})if s.get("verified"):rank += 1cells = [str(rank) if s.get("verified") else "—", s["method"], s["evaluation"]]cells += [_fmt(m.get(key)) for key, _ in METRIC_COLS]cells.append("✓" if s.get("verified") else "")note = s.get("protocol_notes") or ""
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970"""Generate the reference (already-reproduced) leaderboard submissions.Every number here is **transcribed from the verified reproduction table in the repo README**(each traces to a logged `Test Metrics` evaluation; see `repro/FINAL_RESULTS.md`). No number isestimated. Re-run to regenerate `submissions/*.json`:python benchmark/seed_reference_results.py"""import jsonfrom pathlib import PathSUB = Path(__file__).resolve().parent / "submissions"REPO = "https://github.com/SMSD75/SynthScope"SOURCE = "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md"DATE = "2026-06-02"# (slug, method, track, modality, model_type, paper, evaluation, metrics, protocol_notes)ROWS = [# --- ForenSynths (image) ---("fat_former", "FatFormer", "forensynths", "image", "fat_former", "Liu et al., CVPR'24","official-weights", {"acc": 98.39, "map": 99.70}, "ForenSynths-8 subset; official released weights"),("co_spy_official", "CO-SPY (official weights)", "forensynths", "image", "co_spy", "Cheng et al., CVPR'25","official-weights", {"acc": 95.12, "map": 98.71}, "ForenSynths-8; vendored official architecture"),("npr", "NPR", "forensynths", "image", "npr", "Tan et al., CVPR'24","official-weights", {"acc": 91.83, "map": 87.09}, "ForenSynths-8; official ProGAN weights"),("aide", "AIDE", "forensynths", "image", "aide", "Yan et al., ICLR'25","official-weights", {"map": 92.08}, "ForenSynths-8; mAP reproduces, acc@0.5 miscalibrated (single-view vs official 5-view DCT)"),("clip", "UnivFD / CLIP", "forensynths", "image", "clip", "Ojha et al., CVPR'23","frozen-probe", {"map": 97.2, "auroc": 97.0}, "ForenSynths; frozen CLIP ViT-L/14 probe (ProGAN)"),("cnn", "CNNDetection", "forensynths", "image", "cnn", "Wang et al., CVPR'20","from-scratch", {"map": 96.8, "auroc": 96.6}, "ForenSynths; ResNet-50 fine-tune (ProGAN)"),("dinov2", "DINOv2 probe", "forensynths", "image", "dinov2", "Oquab et al., 2023","frozen-probe", {"map": 95.03, "auroc": 94.86}, "ForenSynths; frozen DINOv2 ViT-L/14 probe"),("safe", "SAFE", "forensynths", "image", "safe", "Li et al., KDD'25","from-scratch", {"map": 94.13, "auroc": 93.68}, "ForenSynths; trained from scratch"),("co_spy_scratch", "CO-SPY (from scratch)", "forensynths", "image", "co_spy", "Cheng et al., CVPR'25","from-scratch", {"map": 96.98, "auroc": 96.79}, "ForenSynths; SynthScope re-implementation trained on ProGAN"),# --- GenImage SD-v1.4 (image) ---("spai_official", "SPAI (official weights)", "genimage-sdv1.4", "image", "spai", "Karageorgiou et al., CVPR'25","official-weights", {"auroc": 98.45, "ap": 94.01}, "GenImage SD-v1.4; vendored official architecture, fixed-res 2x2x224"),("vib_net", "VIB-Net", "genimage-sdv1.4", "image", "vib_net", "Zhang et al., CVPR'25","from-scratch", {"map": 99.33, "auroc": 99.33}, "GenImage SD-v1.4 single real/fake pool (mAP == AUROC by construction)"),("spai_scratch", "SPAI (from scratch)", "genimage-sdv1.4", "image", "spai", "Karageorgiou et al., CVPR'25","from-scratch", {"auroc": 97.66}, "DMID Latent-Diffusion vs COCO; SynthScope fixed-resolution variant"),# --- GenVideo-Val (video) ---("d3", "D3", "genvideo-val", "video", "d3", "ICCV'25","training-free", {"ap": 95.6, "auroc": 93.6}, "Training-free frozen CLIP 2nd-order trajectory"),("restrav", "ReStraV", "genvideo-val", "video", "restrav", "2025","frozen-probe", {"ap": 96.67, "auroc": 97.06}, "Frozen DINOv2 trajectory geometry + MLP"),]METRIC_KEYS = ["acc", "map", "ap", "auroc"]def main() -> None:SUB.mkdir(parents=True, exist_ok=True)for slug, method, track, modality, model_type, paper, evaluation, metrics, notes in ROWS:full_metrics = {k: metrics.get(k) for k in METRIC_KEYS}sub = {"method": method, "track": track, "modality": modality, "model_type": model_type,"paper": paper, "url": REPO, "evaluation": evaluation, "metrics": full_metrics,"per_generator": None, "submitted_by": "SynthScope", "date": DATE,"verified": True, "source": SOURCE, "protocol_notes": notes, "synthscope_version": "0.1.0",}(SUB / f"{slug}.json").write_text(json.dumps(sub, indent=2) + "\n")print(f"Wrote {len(ROWS)} reference submissions to {SUB}")if __name__ == "__main__":main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196"""Build SynthScope's own leaderboard submissions from the logged evaluations in ``repro/bench_results``.Each entry below names one committed ``repro/bench_results/*.json`` (written by a logged ``bench_eval.py`` /``bench_eval_video.py`` run), the generators its track scores, and the job that wrote it. The metrics are readfrom that file: the run's own means when the track scores every generator in it, otherwise the unweighted meanof its per-generator values over the track's generators. No number is typed in by hand, so every SynthScoperow of LEADERBOARD.md can be recomputed from the repo:python benchmark/seed_reference_results.py # rewrite submissions/<slug>.json for these entriespython benchmark/seed_reference_results.py --check # fail if a submission no longer matches its evidence,# or a SynthScope submission has no entry herepython benchmark/leaderboard.py # then refresh LEADERBOARD.mdEntries with ``verified=False`` have a logged evaluation whose checkpoint cannot be confirmed to fit the track;their notes say why. Submissions from other people are not touched."""from __future__ import annotationsimport argparseimport jsonimport sysfrom pathlib import Pathfrom typing import NamedTupleBENCH_DIR = Path(__file__).resolve().parentSUB = BENCH_DIR / "submissions"RESULTS = BENCH_DIR.parent / "repro" / "bench_results"REPO = "https://github.com/SMSD75/SynthScope"METRIC_KEYS = ["acc", "map", "ap", "auroc"]# The ForenSynths track scores the 8 GAN test sets (ForenSynths-8). Runs over all 13 sets are subset to these.FS8 = ["biggan", "cyclegan", "deepfake", "gaugan", "progan", "stargan", "stylegan", "stylegan2"]# The GenImage SD-v1.4 track scores the SD-v1.4 subset of the GenImage test set.SD14 = ["sdv1.4"]JUNE_LOG = "job log not kept on the shared filesystem; MASTER_RESULTS.jsonl row of the same tag"class Entry(NamedTuple):method: strtrack: strmodel_type: strpaper: strevaluation: strresults_file: str # repro/bench_results/<file>generators: list[str] | None # None = every generator in the filejob: strverified: boolnotes: str# slug (= submissions/<slug>.json) -> its evidenceENTRIES = {# --- ForenSynths-8 (image) ---"fat_former": Entry("FatFormer", "forensynths", "fat_former", "Liu et al., CVPR'24", "official-weights","fatformer_official_forensynths.json", None, JUNE_LOG, True,"ForenSynths-8; official 4-class ProGAN weights (the served fat_former.pth)"),"co_spy_official": Entry("CO-SPY (official weights)", "forensynths", "co_spy", "Cheng et al., CVPR'25", "official-weights","cospy_official_forensynths.json", FS8, JUNE_LOG, True,"ForenSynths-8; official CO-SPY ProGAN checkpoint in the vendored official architecture ""(not the served co_spy.pth)"),"npr": Entry("NPR", "forensynths", "npr", "Tan et al., CVPR'24", "official-weights","npr_official_nprpth_forensynths8.json", None, "job 265808 (repro/logs/nprevt_265808.out)", True,"ForenSynths-8; official ProGAN weights NPR.pth (the served npr.pth)"),"aide": Entry("AIDE", "forensynths", "aide", "Yan et al., ICLR'25", "official-weights","aide_official_forensynths.json", FS8, "repro/eval_logs/fixup_aide_gpu7_bs8.log (2026-06-05 rerun)", True,"ForenSynths-8; official ProGAN weights progan_train.pth, vendored official eval (native-resolution ""5-view DCT); the served aide.pth is the SD-v1.4 release"),"clip": Entry("UnivFD / CLIP", "forensynths", "clip", "Ojha et al., CVPR'23", "frozen-probe","clip_synthscope_forensynths.json", FS8, JUNE_LOG, True,"ForenSynths-8; frozen CLIP ViT-L/14 + linear head trained in SynthScope on ProGAN (the served clip.pth)"),"cnn": Entry("CNNDetection", "forensynths", "cnn", "Wang et al., CVPR'20", "from-scratch","cnn_synthscope_forensynths.json", FS8, JUNE_LOG, True,"ForenSynths-8; ImageNet ResNet-50 fine-tuned in SynthScope on ProGAN (the served cnn.pth)"),"dinov2": Entry("DINOv2 probe", "forensynths", "dinov2", "Oquab et al., 2023", "frozen-probe","dinov2_synthscope_forensynths.json", FS8, JUNE_LOG, True,"ForenSynths-8; frozen DINOv2 ViT-L/14 + linear head trained in SynthScope on ProGAN (the served dinov2.pth)"),"safe": Entry("SAFE", "forensynths", "safe", "Li et al., KDD'25", "from-scratch","safe_v2_forensynths8.json", None, "job 186235 (repro/logs/safe_v2_fs8_186235.out)", True,"ForenSynths-8; trained in SynthScope on ProGAN, 40-epoch crop recipe (safe_full_v2/model_38, ""the served safe.pth)"),"co_spy_scratch": Entry("CO-SPY (from scratch)", "forensynths", "co_spy", "Cheng et al., CVPR'25", "from-scratch","cospy_synthscope_forensynths.json", FS8, JUNE_LOG, False,"Unverified: ForenSynths-8 score of the co_spy.pth of 2026-06-04, then labelled ProGAN-trained, whose ""training run is not recorded; not the served co_spy.pth (a GenImage SD-v1.4 retrain, not scored here)"),# --- GenImage SD-v1.4 (image) ---"vib_net": Entry("VIB-Net", "genimage-sdv1.4", "vib_net", "Zhang et al., CVPR'25", "from-scratch","vib_net_trained_noresize_genimage7.json", SD14, "eval job 267928 (repro/logs/vibevt_267928.out)", True,"GenImage SD-v1.4, 6000 real + 6000 fake; trained in SynthScope on GenImage SD-v1.4 with the ""reconstructed recipe (job 267846, the served vib_net.pth); one generator, so mAP = AP"),"spai_official": Entry("SPAI (official weights)", "genimage-sdv1.4", "spai", "Karageorgiou et al., CVPR'25", "official-weights","spai_official_genimage8.json", SD14, "job 273444 (repro/logs/spaiev_official_273444.out)", True,"300+300 subsample; trained on latent-diffusion (LDM) data, not SD-v1.4. GenImage SD-v1.4 (the run's ""per-generator cap); official weights remapped into the SynthScope class, native resolution (the served spai.pth)"),"spai_scratch": Entry("SPAI (from scratch)", "genimage-sdv1.4", "spai", "Karageorgiou et al., CVPR'25", "from-scratch","spai_ep8_genimage8.json", SD14, "job 273445 (repro/logs/spaiev_ep8_273445.out)", True,"300+300 subsample; trained on latent-diffusion (LDM) data, not SD-v1.4. GenImage SD-v1.4; trained in ""SynthScope with the official recipe (LDM vs COCO/LSUN, job 267192, epoch 8 by validation loss), native resolution"),# --- GenVideo-Val (video) ---"d3": Entry("D3", "genvideo-val", "d3", "Zheng et al., ICCV'25", "training-free","d3_genvideo_fpr.json", None, "job 270384 (repro/logs/spliteval_270384.out)", True,"Training-free X-CLIP 2nd-order feature volatility (official preprocessing). AP here is fake-as-positive ""against all 10k reals; the README's 99.0 AP is the paper protocol (real-as-positive, first 1000 clips)"),"split": Entry("SPLIT", "genvideo-val", "split", "Hyun & Kim, ECCV'26", "training-free","split_genvideo_fpr.json", None, "job 270384 (repro/logs/spliteval_270384.out)", True,"Training-free X-CLIP patch roughness x motion incoherence; Acc at the real-only FPR-1% calibration"),"stall": Entry("STALL", "genvideo-val", "stall", "Ben Hayun et al., CVPR'26", "training-free","stall_genvideo_full.json", None, "job 271899 (repro/logs/stallgv_271899.out)", True,"Training-free DINOv3 spatio-temporal likelihood under VATEX real-video statistics. Full run; the ""README's 83.5 AUROC is the June subsample run"),"restrav": Entry("ReStraV", "genvideo-val", "restrav", "Interno et al., 2025", "frozen-probe","restrav_genvideo_full.json", None, "job 271898 (repro/logs/restravgv_271898.out)", True,"Frozen DINOv2 trajectory geometry + MLP trained in SynthScope (the served restrav.pth; its training ""set is not recorded); does not transfer to GenVideo-Val (AUROC below 50)"),}def _mean(xs: list[float]) -> float:return round(sum(xs) / len(xs), 2)def build(slug: str) -> dict:"""Return the submission for one entry, with metrics read from its bench_results file."""e = ENTRIES[slug]fname, gens = e.results_file, e.generatorsres = json.loads((RESULTS / fname).read_text())pg = res["per_generator"]video = e.track == "genvideo-val"if gens is None:gens = sorted(pg)means = res["means"]metrics = {"acc": means["acc"], "map": means["map"], "auroc": means["mauroc"]}else:missing = [g for g in gens if g not in pg]if missing:raise KeyError(f"{fname} has no per-generator result for {missing}")metrics = {"acc": _mean([pg[g]["acc"] for g in gens]), "map": _mean([pg[g]["ap"] for g in gens]),"auroc": _mean([pg[g]["auroc"] for g in gens])}keep = ("auroc", "ap") if video else ("ap", "auroc", "acc")scope = "all generators" if len(gens) == len(pg) else f"{len(gens)} of its {len(pg)} generators"return {"method": e.method, "track": e.track, "modality": "video" if video else "image", "model_type": e.model_type,"paper": e.paper, "url": REPO, "evaluation": e.evaluation,"metrics": {k: metrics.get(k) for k in METRIC_KEYS},"per_generator": {g: {k: pg[g][k] for k in keep} for g in gens},"submitted_by": "SynthScope", "date": res["date"][:10], "verified": e.verified,"source": f"repro/bench_results/{fname} (tag {res['tag']}, {scope}); {e.job}","protocol_notes": e.notes, "synthscope_version": "0.1.0",}def main(argv=None) -> int:ap = argparse.ArgumentParser(description="Rebuild SynthScope's leaderboard submissions from repro/bench_results.")ap.add_argument("--check", action="store_true", help="fail if a submission differs from its evidence")args = ap.parse_args(argv)stale = []for slug in ENTRIES:text = json.dumps(build(slug), indent=2) + "\n"path = SUB / f"{slug}.json"if args.check:if not path.exists() or path.read_text() != text:stale.append(path.name)else:path.write_text(text)if args.check:# A SynthScope-authored submission must have an entry here, or its numbers have no recorded evidence.for path in sorted(SUB.glob("*.json")):if path.stem not in ENTRIES and json.loads(path.read_text()).get("submitted_by") == "SynthScope":stale.append(f"{path.name} (SynthScope submission with no ENTRIES entry)")if stale:print("Out of date with repro/bench_results: " + ", ".join(stale), file=sys.stderr)return 1print(f"OK: {len(ENTRIES)} SynthScope submissions match their bench_results evidence.")return 0print(f"Wrote {len(ENTRIES)} SynthScope submissions to {SUB}")return 0if __name__ == "__main__":raise SystemExit(main())
6 unmodified lines789101112131415161718192021226 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "official-weights","metrics": {"acc": null,"map": 92.08,"ap": null,"auroc": null},"per_generator": null,"submitted_by": "SynthScope","date": "2026-06-02","verified": true,"source": "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md","protocol_notes": "ForenSynths-8; mAP reproduces, acc@0.5 miscalibrated (single-view vs official 5-view DCT)","synthscope_version": "0.1.0"}6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "official-weights","metrics": {"acc": 88.38,"map": 96.03,"ap": null,"auroc": 95.6},"per_generator": {"biggan": {"ap": 94.44,"auroc": 94.43,"acc": 83.95},"cyclegan": {"ap": 99.89,"auroc": 99.9,"acc": 98.49},"deepfake": {"ap": 76.22,"auroc": 72.73,"acc": 53.91},"gaugan": {"ap": 97.69,"auroc": 97.77,"acc": 73.24},"progan": {"ap": 100.0,"auroc": 100.0,"acc": 99.99},"stargan": {"ap": 100.0,"auroc": 100.0,"acc": 99.9},"stylegan": {"ap": 99.99,"auroc": 99.99,"acc": 99.62},"stylegan2": {"ap": 99.97,"auroc": 99.96,"acc": 97.94}},"submitted_by": "SynthScope","date": "2026-06-05","verified": true,"source": "repro/bench_results/aide_official_forensynths.json (tag aide_official_forensynths, 8 of its 13 generators); repro/eval_logs/fixup_aide_gpu7_bs8.log (2026-06-05 rerun)","protocol_notes": "ForenSynths-8; official ProGAN weights progan_train.pth, vendored official eval (native-resolution 5-view DCT); the served aide.pth is the SD-v1.4 release","synthscope_version": "0.1.0"}
6 unmodified lines789101112131415161718192021226 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "frozen-probe","metrics": {"acc": null,"map": 97.2,"ap": null,"auroc": 97.0},"per_generator": null,"submitted_by": "SynthScope","date": "2026-06-02","verified": true,"source": "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md","protocol_notes": "ForenSynths; frozen CLIP ViT-L/14 probe (ProGAN)","synthscope_version": "0.1.0"}6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "frozen-probe","metrics": {"acc": 88.28,"map": 97.22,"ap": null,"auroc": 97.11},"per_generator": {"biggan": {"ap": 99.11,"auroc": 99.03,"acc": 95.07},"cyclegan": {"ap": 99.71,"auroc": 99.7,"acc": 95.53},"deepfake": {"ap": 87.82,"auroc": 86.6,"acc": 79.0},"gaugan": {"ap": 99.98,"auroc": 99.98,"acc": 99.02},"progan": {"ap": 99.99,"auroc": 99.99,"acc": 99.52},"stargan": {"ap": 99.72,"auroc": 99.68,"acc": 93.22},"stylegan": {"ap": 96.02,"auroc": 96.14,"acc": 76.3},"stylegan2": {"ap": 95.44,"auroc": 95.74,"acc": 68.6}},"submitted_by": "SynthScope","date": "2026-06-04","verified": true,"source": "repro/bench_results/clip_synthscope_forensynths.json (tag clip_synthscope_forensynths, 8 of its 13 generators); job log not kept on the shared filesystem; MASTER_RESULTS.jsonl row of the same tag","protocol_notes": "ForenSynths-8; frozen CLIP ViT-L/14 + linear head trained in SynthScope on ProGAN (the served clip.pth)","synthscope_version": "0.1.0"}
6 unmodified lines789101112131415161718192021226 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "from-scratch","metrics": {"acc": null,"map": 96.8,"ap": null,"auroc": 96.6},"per_generator": null,"submitted_by": "SynthScope","date": "2026-06-02","verified": true,"source": "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md","protocol_notes": "ForenSynths; ResNet-50 fine-tune (ProGAN)","synthscope_version": "0.1.0"}6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "from-scratch","metrics": {"acc": 76.36,"map": 94.42,"ap": null,"auroc": 94.42},"per_generator": {"biggan": {"ap": 94.05,"auroc": 94.18,"acc": 67.95},"cyclegan": {"ap": 97.06,"auroc": 96.9,"acc": 83.69},"deepfake": {"ap": 72.84,"auroc": 73.86,"acc": 55.92},"gaugan": {"ap": 99.28,"auroc": 99.35,"acc": 88.65},"progan": {"ap": 100.0,"auroc": 100.0,"acc": 100.0},"stargan": {"ap": 95.89,"auroc": 95.29,"acc": 82.97},"stylegan": {"ap": 98.3,"auroc": 98.09,"acc": 69.51},"stylegan2": {"ap": 97.91,"auroc": 97.7,"acc": 62.21}},"submitted_by": "SynthScope","date": "2026-06-04","verified": true,"source": "repro/bench_results/cnn_synthscope_forensynths.json (tag cnn_synthscope_forensynths, 8 of its 13 generators); job log not kept on the shared filesystem; MASTER_RESULTS.jsonl row of the same tag","protocol_notes": "ForenSynths-8; ImageNet ResNet-50 fine-tuned in SynthScope on ProGAN (the served cnn.pth)","synthscope_version": "0.1.0"}
6 unmodified lines789101112131415161718192021226 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "official-weights","metrics": {"acc": 95.12,"map": 98.71,"ap": null,"auroc": null},"per_generator": null,"submitted_by": "SynthScope","date": "2026-06-02","verified": true,"source": "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md","protocol_notes": "ForenSynths-8; vendored official architecture","synthscope_version": "0.1.0"}6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "official-weights","metrics": {"acc": 94.64,"map": 98.5,"ap": null,"auroc": 98.8},"per_generator": {"biggan": {"ap": 97.76,"auroc": 98.18,"acc": 93.95},"cyclegan": {"ap": 99.43,"auroc": 99.74,"acc": 99.25},"deepfake": {"ap": 93.4,"auroc": 93.91,"acc": 75.6},"gaugan": {"ap": 97.49,"auroc": 98.62,"acc": 95.05},"progan": {"ap": 100.0,"auroc": 100.0,"acc": 100.0},"stargan": {"ap": 100.0,"auroc": 100.0,"acc": 99.4},"stylegan": {"ap": 99.94,"auroc": 99.93,"acc": 93.85},"stylegan2": {"ap": 100.0,"auroc": 100.0,"acc": 100.0}},"submitted_by": "SynthScope","date": "2026-06-04","verified": true,"source": "repro/bench_results/cospy_official_forensynths.json (tag cospy_official_forensynths, 8 of its 13 generators); job log not kept on the shared filesystem; MASTER_RESULTS.jsonl row of the same tag","protocol_notes": "ForenSynths-8; official CO-SPY ProGAN checkpoint in the vendored official architecture (not the served co_spy.pth)","synthscope_version": "0.1.0"}
6 unmodified lines789101112131415161718192021226 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "from-scratch","metrics": {"acc": null,"map": 96.98,"ap": null,"auroc": 96.79},"per_generator": null,"submitted_by": "SynthScope","date": "2026-06-02","verified": true,"source": "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md","protocol_notes": "ForenSynths; SynthScope re-implementation trained on ProGAN","synthscope_version": "0.1.0"}6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "from-scratch","metrics": {"acc": 89.21,"map": 97.18,"ap": null,"auroc": 97.62},"per_generator": {"biggan": {"ap": 99.35,"auroc": 99.32,"acc": 91.75},"cyclegan": {"ap": 99.56,"auroc": 99.52,"acc": 96.8},"deepfake": {"ap": 80.22,"auroc": 83.88,"acc": 72.75},"gaugan": {"ap": 99.98,"auroc": 99.98,"acc": 99.05},"progan": {"ap": 100.0,"auroc": 99.99,"acc": 99.75},"stargan": {"ap": 99.6,"auroc": 99.62,"acc": 92.9},"stylegan": {"ap": 99.22,"auroc": 99.17,"acc": 79.45},"stylegan2": {"ap": 99.48,"auroc": 99.47,"acc": 81.25}},"submitted_by": "SynthScope","date": "2026-06-04","verified": false,"source": "repro/bench_results/cospy_synthscope_forensynths.json (tag cospy_synthscope_forensynths, 8 of its 13 generators); job log not kept on the shared filesystem; MASTER_RESULTS.jsonl row of the same tag","protocol_notes": "Unverified: ForenSynths-8 score of the co_spy.pth of 2026-06-04, then labelled ProGAN-trained, whose training run is not recorded; not the served co_spy.pth (a GenImage SD-v1.4 retrain, not scored here)","synthscope_version": "0.1.0"}
56 unmodified lines5758596061626356 unmodified lines"submitted_by": "SynthScope","date": "2026-10-31","verified": true,"source": "repro/bench_results/d3_genvideo_fpr.json (benchmark/bench_eval_video.py --dataset genvideo, no --limit)","protocol_notes": "Training-free X-CLIP 2nd-order feature volatility (official preprocessing)","synthscope_version": "0.1.0"}56 unmodified lines5758596061626356 unmodified lines"submitted_by": "SynthScope","date": "2026-10-31","verified": true,"source": "repro/bench_results/d3_genvideo_fpr.json (tag d3_genvideo_fpr, all generators); job 270384 (repro/logs/spliteval_270384.out)","protocol_notes": "Training-free X-CLIP 2nd-order feature volatility (official preprocessing). AP here is fake-as-positive against all 10k reals; the README's 99.0 AP is the paper protocol (real-as-positive, first 1000 clips)","synthscope_version": "0.1.0"}
6 unmodified lines789101112131415161718192021226 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "frozen-probe","metrics": {"acc": null,"map": 95.03,"ap": null,"auroc": 94.86},"per_generator": null,"submitted_by": "SynthScope","date": "2026-06-02","verified": true,"source": "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md","protocol_notes": "ForenSynths; frozen DINOv2 ViT-L/14 probe","synthscope_version": "0.1.0"}6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "frozen-probe","metrics": {"acc": 78.98,"map": 90.61,"ap": null,"auroc": 90.83},"per_generator": {"biggan": {"ap": 93.65,"auroc": 93.36,"acc": 83.92},"cyclegan": {"ap": 97.08,"auroc": 96.92,"acc": 90.08},"deepfake": {"ap": 76.42,"auroc": 79.0,"acc": 58.46},"gaugan": {"ap": 99.08,"auroc": 98.98,"acc": 94.86},"progan": {"ap": 99.74,"auroc": 99.73,"acc": 97.35},"stargan": {"ap": 88.99,"auroc": 88.36,"acc": 73.44},"stylegan": {"ap": 85.23,"auroc": 85.44,"acc": 66.1},"stylegan2": {"ap": 84.7,"auroc": 84.84,"acc": 67.66}},"submitted_by": "SynthScope","date": "2026-06-04","verified": true,"source": "repro/bench_results/dinov2_synthscope_forensynths.json (tag dinov2_synthscope_forensynths, 8 of its 13 generators); job log not kept on the shared filesystem; MASTER_RESULTS.jsonl row of the same tag","protocol_notes": "ForenSynths-8; frozen DINOv2 ViT-L/14 + linear head trained in SynthScope on ProGAN (the served dinov2.pth)","synthscope_version": "0.1.0"}
9 unmodified lines101112131415161718192021229 unmodified lines"acc": 98.39,"map": 99.7,"ap": null,"auroc": null},"per_generator": null,"submitted_by": "SynthScope","date": "2026-06-02","verified": true,"source": "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md","protocol_notes": "ForenSynths-8 subset; official released weights","synthscope_version": "0.1.0"}9 unmodified lines1011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162639 unmodified lines"acc": 98.39,"map": 99.7,"ap": null,"auroc": 99.57},"per_generator": {"biggan": {"ap": 99.98,"auroc": 99.97,"acc": 99.5},"cyclegan": {"ap": 100.0,"auroc": 100.0,"acc": 99.36},"deepfake": {"ap": 97.99,"auroc": 97.01,"acc": 93.26},"gaugan": {"ap": 100.0,"auroc": 100.0,"acc": 99.43},"progan": {"ap": 100.0,"auroc": 100.0,"acc": 99.89},"stargan": {"ap": 100.0,"auroc": 100.0,"acc": 99.75},"stylegan": {"ap": 99.75,"auroc": 99.69,"acc": 97.13},"stylegan2": {"ap": 99.92,"auroc": 99.9,"acc": 98.8}},"submitted_by": "SynthScope","date": "2026-06-04","verified": true,"source": "repro/bench_results/fatformer_official_forensynths.json (tag fatformer_official_forensynths, all generators); job log not kept on the shared filesystem; MASTER_RESULTS.jsonl row of the same tag","protocol_notes": "ForenSynths-8; official 4-class ProGAN weights (the served fat_former.pth)","synthscope_version": "0.1.0"}
6 unmodified lines789101112131415161718192021226 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "official-weights","metrics": {"acc": 91.83,"map": 87.09,"ap": null,"auroc": null},"per_generator": null,"submitted_by": "SynthScope","date": "2026-06-02","verified": true,"source": "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md","protocol_notes": "ForenSynths-8; official ProGAN weights","synthscope_version": "0.1.0"}6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "official-weights","metrics": {"acc": 92.3,"map": 94.22,"ap": null,"auroc": 96.08},"per_generator": {"biggan": {"ap": 87.8,"auroc": 92.36,"acc": 84.35},"cyclegan": {"ap": 98.45,"auroc": 99.04,"acc": 96.1},"deepfake": {"ap": 82.4,"auroc": 86.85,"acc": 80.24},"gaugan": {"ap": 85.49,"auroc": 90.75,"acc": 82.5},"progan": {"ap": 99.99,"auroc": 99.99,"acc": 99.79},"stargan": {"ap": 99.94,"auroc": 99.96,"acc": 99.35},"stylegan": {"ap": 99.78,"auroc": 99.75,"acc": 97.7},"stylegan2": {"ap": 99.94,"auroc": 99.94,"acc": 98.38}},"submitted_by": "SynthScope","date": "2026-10-27","verified": true,"source": "repro/bench_results/npr_official_nprpth_forensynths8.json (tag npr_official_nprpth_forensynths8, all generators); job 265808 (repro/logs/nprevt_265808.out)","protocol_notes": "ForenSynths-8; official ProGAN weights NPR.pth (the served npr.pth)","synthscope_version": "0.1.0"}
56 unmodified lines5758596061626356 unmodified lines"submitted_by": "SynthScope","date": "2026-11-02","verified": true,"source": "repro/bench_results/restrav_genvideo_full.json (benchmark/bench_eval_video.py --dataset genvideo, no --limit)","protocol_notes": "Frozen DINOv2 trajectory geometry + MLP trained on GenVidBench; does not transfer to GenVideo-Val (AUROC below 50)","synthscope_version": "0.1.0"}56 unmodified lines5758596061626356 unmodified lines"submitted_by": "SynthScope","date": "2026-11-02","verified": true,"source": "repro/bench_results/restrav_genvideo_full.json (tag restrav_genvideo_full, all generators); job 271898 (repro/logs/restravgv_271898.out)","protocol_notes": "Frozen DINOv2 trajectory geometry + MLP trained in SynthScope (the served restrav.pth; its training set is not recorded); does not transfer to GenVideo-Val (AUROC below 50)","synthscope_version": "0.1.0"}
6 unmodified lines789101112131415161718192021226 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "from-scratch","metrics": {"acc": null,"map": 94.13,"ap": null,"auroc": 93.68},"per_generator": null,"submitted_by": "SynthScope","date": "2026-06-02","verified": true,"source": "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md","protocol_notes": "ForenSynths; trained from scratch","synthscope_version": "0.1.0"}6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "from-scratch","metrics": {"acc": 95.11,"map": 97.79,"ap": null,"auroc": 97.86},"per_generator": {"biggan": {"ap": 96.42,"auroc": 97.18,"acc": 91.15},"cyclegan": {"ap": 99.82,"auroc": 99.85,"acc": 98.6},"deepfake": {"ap": 86.74,"auroc": 86.37,"acc": 77.37},"gaugan": {"ap": 99.37,"auroc": 99.48,"acc": 94.39},"progan": {"ap": 100.0,"auroc": 100.0,"acc": 100.0},"stargan": {"ap": 100.0,"auroc": 100.0,"acc": 100.0},"stylegan": {"ap": 100.0,"auroc": 100.0,"acc": 99.62},"stylegan2": {"ap": 100.0,"auroc": 100.0,"acc": 99.72}},"submitted_by": "SynthScope","date": "2026-06-16","verified": true,"source": "repro/bench_results/safe_v2_forensynths8.json (tag safe_v2_forensynths8, all generators); job 186235 (repro/logs/safe_v2_fs8_186235.out)","protocol_notes": "ForenSynths-8; trained in SynthScope on ProGAN, 40-epoch crop recipe (safe_full_v2/model_38, the served safe.pth)","synthscope_version": "0.1.0"}
6 unmodified lines789101112131415161718192021226 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "official-weights","metrics": {"acc": null,"map": null,"ap": 94.01,"auroc": 98.45},"per_generator": null,"submitted_by": "SynthScope","date": "2026-06-02","verified": true,"source": "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md","protocol_notes": "GenImage SD-v1.4; vendored official architecture, fixed-res 2x2x224","synthscope_version": "0.1.0"}6 unmodified lines789101112131415161718192021222324252627286 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "official-weights","metrics": {"acc": 95.67,"map": 99.22,"ap": null,"auroc": 99.57},"per_generator": {"sdv1.4": {"ap": 99.22,"auroc": 99.57,"acc": 95.67}},"submitted_by": "SynthScope","date": "2026-11-03","verified": true,"source": "repro/bench_results/spai_official_genimage8.json (tag spai_official_genimage8, 1 of its 8 generators); job 273444 (repro/logs/spaiev_official_273444.out)","protocol_notes": "300+300 subsample; trained on latent-diffusion (LDM) data, not SD-v1.4. GenImage SD-v1.4 (the run's per-generator cap); official weights remapped into the SynthScope class, native resolution (the served spai.pth)","synthscope_version": "0.1.0"}
6 unmodified lines789101112131415161718192021226 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "from-scratch","metrics": {"acc": null,"map": null,"ap": null,"auroc": 97.66},"per_generator": null,"submitted_by": "SynthScope","date": "2026-06-02","verified": true,"source": "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md","protocol_notes": "DMID Latent-Diffusion vs COCO; SynthScope fixed-resolution variant","synthscope_version": "0.1.0"}6 unmodified lines789101112131415161718192021222324252627286 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "from-scratch","metrics": {"acc": 97.17,"map": 99.93,"ap": null,"auroc": 99.94},"per_generator": {"sdv1.4": {"ap": 99.93,"auroc": 99.94,"acc": 97.17}},"submitted_by": "SynthScope","date": "2026-11-03","verified": true,"source": "repro/bench_results/spai_ep8_genimage8.json (tag spai_ep8_genimage8, 1 of its 8 generators); job 273445 (repro/logs/spaiev_ep8_273445.out)","protocol_notes": "300+300 subsample; trained on latent-diffusion (LDM) data, not SD-v1.4. GenImage SD-v1.4; trained in SynthScope with the official recipe (LDM vs COCO/LSUN, job 267192, epoch 8 by validation loss), native resolution","synthscope_version": "0.1.0"}
56 unmodified lines5758596061626356 unmodified lines"submitted_by": "SynthScope","date": "2026-10-31","verified": true,"source": "repro/bench_results/split_genvideo_fpr.json (benchmark/bench_eval_video.py --dataset genvideo, no --limit)","protocol_notes": "Training-free X-CLIP patch roughness x motion incoherence; Acc at the real-only FPR-1% calibration","synthscope_version": "0.1.0"}56 unmodified lines5758596061626356 unmodified lines"submitted_by": "SynthScope","date": "2026-10-31","verified": true,"source": "repro/bench_results/split_genvideo_fpr.json (tag split_genvideo_fpr, all generators); job 270384 (repro/logs/spliteval_270384.out)","protocol_notes": "Training-free X-CLIP patch roughness x motion incoherence; Acc at the real-only FPR-1% calibration","synthscope_version": "0.1.0"}
56 unmodified lines5758596061626356 unmodified lines"submitted_by": "SynthScope","date": "2026-11-02","verified": true,"source": "repro/bench_results/stall_genvideo_full.json (benchmark/bench_eval_video.py --dataset genvideo, no --limit)","protocol_notes": "Training-free DINOv3 spatio-temporal likelihood under VATEX real-video statistics","synthscope_version": "0.1.0"}56 unmodified lines5758596061626356 unmodified lines"submitted_by": "SynthScope","date": "2026-11-02","verified": true,"source": "repro/bench_results/stall_genvideo_full.json (tag stall_genvideo_full, all generators); job 271899 (repro/logs/stallgv_271899.out)","protocol_notes": "Training-free DINOv3 spatio-temporal likelihood under VATEX real-video statistics. Full run; the README's 83.5 AUROC is the June subsample run","synthscope_version": "0.1.0"}
6 unmodified lines789101112131415161718192021226 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "from-scratch","metrics": {"acc": null,"map": 99.33,"ap": null,"auroc": 99.33},"per_generator": null,"submitted_by": "SynthScope","date": "2026-06-02","verified": true,"source": "SynthScope reproduction (logged Test Metrics); see repro/FINAL_RESULTS.md","protocol_notes": "GenImage SD-v1.4 single real/fake pool (mAP == AUROC by construction)","synthscope_version": "0.1.0"}6 unmodified lines789101112131415161718192021222324252627286 unmodified lines"url": "https://github.com/SMSD75/SynthScope","evaluation": "from-scratch","metrics": {"acc": 99.29,"map": 99.98,"ap": null,"auroc": 99.98},"per_generator": {"sdv1.4": {"ap": 99.98,"auroc": 99.98,"acc": 99.29}},"submitted_by": "SynthScope","date": "2026-10-29","verified": true,"source": "repro/bench_results/vib_net_trained_noresize_genimage7.json (tag vib_net_trained_noresize_genimage7, 1 of its 7 generators); eval job 267928 (repro/logs/vibevt_267928.out)","protocol_notes": "GenImage SD-v1.4, 6000 real + 6000 fake; trained in SynthScope on GenImage SD-v1.4 with the reconstructed recipe (job 267846, the served vib_net.pth); one generator, so mAP = AP","synthscope_version": "0.1.0"}
3 unmodified lines45678910111213141 unmodified line161718192021223 unmodified linesmodel_type: fat_formerbackbone_name: CLIP:ViT-L/14num_vit_adapter: 8num_context_embedding: 8init_context_embedding: ""num_classes: 2classnames: [real, fake]freeze_backbone: trueforce_fp32: true1 unmodified line# official-weights eval reproduces 98.39 acc / 99.70 mAP with it).# Test-time preprocessing (official): inference, benchmarks and the end-of-training test.eval_transform_list: [resize_256, center_crop_224, to_dtype, normalize_imagenet]# Training augmentation.train_transform_list: [resize_short_256, gaussian_blur, jpeg_compression, random_crop_224, random_horizontal_flip, to_dtype, normalize_imagenet]# Validation during training (differs from the test-time preprocessing above).val_transform_list: [resize_short_256, center_crop_224, to_dtype, normalize_imagenet]3 unmodified lines4567891011121314151617181 unmodified line202122232425263 unmodified linesmodel_type: fat_formerbackbone_name: CLIP:ViT-L/14# The released checkpoint has the forgery-aware adapter at blocks 7, 15, 23 (README: --num_vit_adapter 3# --num_context_embedding 8); the official code's argparse default would be 8.num_vit_adapter: 3num_context_embedding: 8init_context_embedding: ""num_classes: 2classnames: [real, fake]# Trained: the forgery-aware adapters (FAA), the language-guided alignment (context tokens + patch-based enhancer), and the# text-guided interactor; the whole CLIP (both towers, logit scale) is frozen.freeze_backbone: trueforce_fp32: true1 unmodified line# official-weights eval reproduces 98.39 acc / 99.70 mAP with it).# Test-time preprocessing (official): inference, benchmarks and the end-of-training test.eval_transform_list: [resize_256, center_crop_224, to_dtype, normalize_imagenet]# Training (paper: resize to 256, random crop 224 and random horizontal flip, "no other augmentations": no blur or JPEG).train_transform_list: [resize_256, random_crop_224, random_horizontal_flip, to_dtype, normalize_imagenet]# Validation during training: the test-time preprocessing.val_transform_list: [resize_256, center_crop_224, to_dtype, normalize_imagenet]
12345678910111213141516171819defaults: - /model/default - _self_
# MIRROR (NeurIPS 2026, arXiv 2602.02222): DINOv3 ViT-H+/16 + LoRA (r 8, alpha 16) on q/k/v, a frozen 4096-slot# memory bank of real prototypes (sparse top-128 attention, 8 heads) and a dual-branch head; P(fake) = softmax[:, 1].# The official phase-2 checkpoint-h-cur.pth holds the full model and loads key-for-key as mirror.pth.model_type: mirrorbackbone_name: dinov3_vith16plusbackbone_path: null # null: build the backbone from its config (mirror.pth has the weights); a HF-format directory # (config.json + model.safetensors) loads pretrained DINOv3 weights, e.g. for trainingmemory_path: null # optional phase-1 memory bank (mirror_phase1.pth); the phase-2 checkpoint already holds ituse_amp: false # fp32, the official default (inference.py --use_amp is opt-in; the checkpoint trained with # use_amp=False). true = CUDA fp16 autocast, as the README quick-start command; never in traininglabel_smoothing: 0.1 # official phase-2 loss (timm LabelSmoothingCrossEntropy, --smoothing 0.1)
# Test-time preprocessing (official data/datasets.py): short side > 512 -> 512 (bicubic), center crop 224, JPEG q96# for PNG/BMP/TIFF sources ("format-aligned inputs"), ToTensor; ImageNet normalization is inside the model.eval_transform_list: [mirror_eval, to_dtype]123456789101112131415161718192021defaults: - /model/default - _self_
# VINA (arXiv 2605.21977): DINOv3 ViT-L/16 fine-tuned end to end + a linear head on the CLS (pooler) output, one model# for images and videos; P(fake) = sigmoid(logit), a video's logit = the mean over its frames. The official# VINA_DINOv3-L_140k+DDA.pth (HF mgiant/VINA_checkpoints) holds the full model and loads key-for-key as vina.pth.model_type: vinabackbone_name: dinov3_vitl16backbone_path: null # null: build the backbone from its config (vina.pth has the weights); a HF-format # directory (config.json + model.safetensors) loads pretrained DINOv3 weightsattn_implementation: eager # the official default (models/DINOv3.py)use_bf16: false # fp32, the official default (configs/VINA_DINOv3.yaml leaves use_bf16 unset)
# Test-time preprocessing (official dataset/dataloader.py, eval processing 'default' with width = height = 256):# Resize(256, bicubic) on the short side, CenterCrop(256), ToImage, ToDtype(float32, scale=True), ImageNet# normalization.eval_transform_list: [resize_short_256_bicubic, center_crop_256, to_image, to_dtype, normalize_imagenet]# The official dataloader's 'default' train processing (the VINA training recipe itself is not released).train_transform_list: [resize_short_256_bicubic, random_crop_256, random_horizontal_flip, to_image, to_dtype, normalize_imagenet]1 unmodified line234567891011121314151617181 unmodified line- /trainer/default- _self_trainer_type: fat_formerepochs: 25lr: 0.0001weight_decay: 0.0001label_smoothing: 0.0val_interval: 1test_interval: 1save_interval: 1save: falsesave_policy: maxwarmup:mode: onwarmup_ratio: 0.05lr_scheduler: cosine1 unmodified line2345678910111213141516171819202122232425262728293031321 unmodified line- /trainer/default- _self_# FatFormer's training recipe as the paper states it (CVPR 2024, Sec. 4.1 "Implementation details"; the authors released no# training code): Adam (betas 0.9/0.999), initial learning rate 4e-4, 25 epochs, total batch size 256, learning rate x0.9# every 10 epochs. Adam without weight decay == AdamW with weight decay 0; no gradient clipping (so no DeepSpeed config).# The total batch is micro-batch x GPUs x grad_accum_steps (experiments/image/fat_former.sh: 32 x 4 x 2 by default).# The released checkpoint is taken as the last epoch's model (model_last.pth); model_best.pth (best validation accuracy) is kept# for reference.trainer_type: fat_formerepochs: 25lr: 4.0e-4weight_decay: 0.0label_smoothing: 0.0val_interval: 1test_interval: 1save_interval: 1save: truesave_policy: maxsave_path: /ssdstore/ssalehi/SynthScope/models/fat_formerseed: 42 # unspecified in the paperwarmup:mode: "off" # quoted: a bare off is YAML boolean Falsewarmup_ratio: 0.0lr_scheduler: linearlr_step:every: 10factor: 0.9phase: 1 # StepLR(step_size=10): epochs 1-10 at 4e-4, 11-20 at 3.6e-4, 21-25 at 3.24e-4 (1-based)grad_accum_steps: 2log_every: 100
191 unmodified lines192193194195196197191 unmodified lines(git-ignored). The Generator benchmarks tab picks up every folder under `benchmark/generator_runs/` automatically; reloadthe page after a run.**What the numbers mean.** AUROC is threshold-free (50 is chance, 100 perfect). *Fakes caught* and *Reals flagged* use thedetectors' 0.5 threshold, which is not tuned per generator, so accuracy can look poor even when AUROC is high. Real photosare JPEG-origin and of varying size, while the generated images are 1024x1024 PNGs, which can help size- or191 unmodified lines192193194195196197198199200201202203204205206207208209210211191 unmodified lines(git-ignored). The Generator benchmarks tab picks up every folder under `benchmark/generator_runs/` automatically; reloadthe page after a run.**Rescore note (CuRe).** CuRe's rows in `benchmark/generator_runs/*` and `repro/ideogram_bench*` were first scoredbefore the scorers passed the source-format hint, so CuRe's official PNG to JPEG q96 step was skipped for the PNG inputs.They were rescored on 2026-11-08 with the hint (same images and weights; only the CuRe row changed, ranks unchanged).AUROC old -> new: FLUX.2 klein 4B 98.62 -> 99.02, 9B 96.23 -> 97.08, Qwen-Image-2.1 92.67 -> 92.37, Ideogram 86.88 -> 84.82,Ideogram 1024 92.10 -> 91.35.**Rescore note (PGC).** PGC's rows in `benchmark/generator_runs/*` and `repro/ideogram_bench*` were first scored while the servedPGC dropped its trained LoRA (the official checkpoint's `rgb_stream.` prefix was not remapped; 2026-06-15 to 2026-11-09). They wererescored on 2026-11-09 with the fixed load (same images; only the PGC row's values changed; the other detectors' values are identical, but their ranks shift where PGC moved).AUROC old -> new (rank among 23): FLUX.2 klein 4B 97.33 -> 90.70 (4 -> 10), 9B 97.35 -> 90.72 (3 -> 10), Qwen-Image-2.198.50 -> 94.43 (3 -> 5), Ideogram 97.53 -> 94.76 (1 -> 2), Ideogram 1024 98.67 -> 96.02 (1 -> 5). The broken model had the higherAUROC; accuracy and fake-detection rate rose on Qwen-Image and Ideogram (Qwen 60.0 -> 62.5 and 20.0 -> 27.0, Ideogram 61.5 -> 72.5 and23.0 -> 47.0; Ideogram 1024 64.5 -> 70.2 and 29.0 -> 43.6) and stayed about the same on FLUX.2 klein (acc 53.5 -> 52.5).**What the numbers mean.** AUROC is threshold-free (50 is chance, 100 perfect). *Fakes caught* and *Reals flagged* use thedetectors' 0.5 threshold, which is not tuned per generator, so accuracy can look poor even when AUROC is high. Real photosare JPEG-origin and of varying size, while the generated images are 1024x1024 PNGs, which can help size- or
28 unmodified lines293031323334353637382 unmodified lines41424344454628 unmodified lines| `co_spy` | image | bce | synthscope* | – | Semantic + artifact fusion (SigLIP + SD-VAE) || `pgc` | image | bce | official | pgc_peak | LoRA-DINOv2 + YCbCr residual, peak-guided || `cure` | image | ce | official | – | Frozen PE-Core L/14 + Q/V LoRA + source-response subspace (mixing-ratio regression) || `d3qe` | image | bce | official | – | LlamaGen VQ quantization error + codebook-aware transformer + CLIP ViT-L/14 (autoregressive images) || `omniaid` (+ `omniaid_v1`, `omniaid_genimage`) | image | ce | official | – | Hybrid MoE on CLIP ViT-L/14@336: routed semantic experts + an always-on artifact expert || `dda` | image | bce | official | – | DINOv2 ViT-L/14 + LoRA, pixel- and frequency-aligned training data (center-crop 336) || `bfree` | image | bce | official | – | DINOv2 ViT-B/14 + registers, bias-free training data; five 504 crops at native resolution || `moejepa` | image | ce | official | – | Frozen V-JEPA 2 ViT-L + residual MoE + gated-attention MIL + BayarConv noise branch (3-way head) || `effort` (+ `effort_chameleon`) | image | ce | official | – | CLIP ViT-L/14 + SVD-residual attention (orthogonal subspace decomposition) || `ltf` | image | ce | official | – | Native-resolution 224 tiles + global view, frozen CLIP ViT-L/14, hierarchical MIL + gated fusion (evaluation only) |2 unmodified lines| `split` | video | video | training-free | – | Temporal roughness x spatial patch-level motion incoherence (X-CLIP) || `restrav` | video | video | synthscope | – | Representation-trajectory geometry (DINOv2) || `stall` | video | video | training-free | – | Spatio-temporal whitened log-likelihoods (DINOv3) |`*` served via official weights remapped into the SynthScope class. **`predict_kind`** sets the scoreconvention the engine applies to `forward()` logits: `ce`→`softmax[:,1]`, `bce`→`sigmoid`,28 unmodified lines2930313233343536373839402 unmodified lines4344454647484928 unmodified lines| `co_spy` | image | bce | synthscope* | – | Semantic + artifact fusion (SigLIP + SD-VAE) || `pgc` | image | bce | official | pgc_peak | LoRA-DINOv2 + YCbCr residual, peak-guided || `cure` | image | ce | official | – | Frozen PE-Core L/14 + Q/V LoRA + source-response subspace (mixing-ratio regression) || `d3qe` | image | bce | official | – | LlamaGen VQ quantization error + transformer (codebook-frequency bias zero in the released weights) + CLIP ViT-L/14 (autoregressive images) || `omniaid` (+ `omniaid_v1`, `omniaid_genimage`) | image | ce | official | – | Hybrid MoE on CLIP ViT-L/14@336: routed semantic experts + an always-on artifact expert || `dda` | image | bce | official | – | DINOv2 ViT-L/14 + LoRA, pixel- and frequency-aligned training data (center-crop 336) || `bfree` | image | bce | official | – | DINOv2 ViT-B/14 + registers, bias-free training data; five 504 crops at native resolution || `mirror` | image | ce | official | – | Frozen DINOv3 ViT-H+/16 + LoRA + memory bank (seeded default initialization in the released checkpoint): reconstruction of an "ideal reference" (center-crop 224, JPEG q96 for PNG/BMP/TIFF) || `vina` | image | bce | official | – | DINOv3 ViT-L/16 + linear head trained on images and video frames together (short side 256, center-crop 256) || `moejepa` | image | ce | official | – | Frozen V-JEPA 2 ViT-L + residual MoE + gated-attention MIL + BayarConv noise branch (3-way head) || `effort` (+ `effort_chameleon`) | image | ce | official | – | CLIP ViT-L/14 + SVD-residual attention (orthogonal subspace decomposition) || `ltf` | image | ce | official | – | Native-resolution 224 tiles + global view, frozen CLIP ViT-L/14, hierarchical MIL + gated fusion (evaluation only) |2 unmodified lines| `split` | video | video | training-free | – | Temporal roughness x spatial patch-level motion incoherence (X-CLIP) || `restrav` | video | video | synthscope | – | Representation-trajectory geometry (DINOv2) || `stall` | video | video | training-free | – | Spatio-temporal whitened log-likelihoods (DINOv3) || `vina_video` | video | video | official | – | The `vina` model with the paper's video protocol: ffmpeg 2 fps JPEG frames, the central frame, sigmoid of the mean logit (needs ffmpeg) |`*` served via official weights remapped into the SynthScope class. **`predict_kind`** sets the scoreconvention the engine applies to `forward()` logits: `ce`→`softmax[:,1]`, `bce`→`sigmoid`,
6 unmodified lines789101112139 unmodified lines232425262728293031323323 unmodified lines5758596061626 unmodified linesAll six datasets download and lay themselves out on first use, for example`python benchmark/bench_eval.py --model cure --dataset realchain --root /data/RealChain`.Each number comes from `repro/bench_results/<model>_<dataset>.json`; regenerate this page with`python repro/build_wild_table.py`.| Detector | RealChain | EvalGEN | SynthWildX | WildRF | BFree-Online | RRDataset | Mean acc |9 unmodified lines| MoE-JEPA | 66.4 / 73.2 | 70.8 / 86.4 | 73.7 / 80.3 | 68.2 / 73.5 | 58.0 / 85.2 | 59.7 / 64.2 | 66.1 || DINOv3 probe | 50.3 / 49.7 | 66.6 / 81.7 | 72.8 / 82.5 | **77.3 / 87.7** | 57.1 / 76.5 | 62.6 / 69.5 | 64.4 || AIDE | 55.5 / 72.4 | 59.7 / 92.7 | 57.4 / 65.7 | 63.6 / 68.6 | 52.8 / 63.1 | 61.1 / 65.2 | 58.4 || FatFormer | 48.9 / 38.7 | 62.1 / 62.7 | 53.5 / 58.6 | 59.5 / 72.8 | 50.0 / 52.7 | 53.0 / 53.4 | 54.5 || SAFE | 49.8 / 53.7 | 50.8 / 60.0 | 50.0 / 51.1 | 58.5 / 58.5 | 50.2 / 48.7 | 62.9 / 65.7 | 53.7 || NPR | 47.2 / 51.7 | 52.6 / 50.6 | 50.4 / 51.7 | 65.0 / 70.9 | 44.1 / 32.2 | 61.1 / 64.1 | 53.4 || D3QE | 49.5 / 43.5 | 62.2 / 83.9 | 49.6 / 45.5 | 53.0 / 63.9 | 47.0 / 64.0 | 55.0 / 55.1 | 52.7 || PGC | 49.9 / 36.0 | 50.2 / 77.7 | 50.9 / 56.3 | 60.1 / 76.8 | 50.0 / 46.5 | 52.3 / 57.8 | 52.2 || DINOv2 probe | 47.9 / 38.8 | 52.6 / 57.6 | 51.1 / 49.6 | 58.9 / 63.6 | 50.0 / 19.4 | 50.6 / 43.0 | 51.8 || UnivFD / CLIP | 49.2 / 40.9 | 51.8 / 55.9 | 49.3 / 48.1 | 53.4 / 64.8 | 50.4 / 43.9 | 52.7 / 54.7 | 51.1 || Adapted DINOv2 | 50.0 / 46.0 | 50.9 / 64.9 | 50.0 / 48.5 | 50.4 / 63.4 | 50.0 / 19.0 | 53.0 / 60.0 | 50.7 |23 unmodified linesevery fake real (fake recall mostly under 15%), a new measurement that its paper does not report.- The other detectors were never evaluated on these sets by their authors, so their rows are new measurements, notreproductions.- Balanced accuracy uses a fixed 0.5 threshold. A detector with a high AUROC but a balanced accuracy near 50separates real from fake but is miscalibrated for this data (it calls nearly everything one class).- An AUROC well below 50 means the detector ranks real images as more fake than the generated ones. We traced6 unmodified lines78910111213149 unmodified lines242526272829303132333423 unmodified lines585960616263646566676869706 unmodified linesAll six datasets download and lay themselves out on first use, for example`python benchmark/bench_eval.py --model cure --dataset realchain --root /data/RealChain`.Each number comes from `repro/bench_results/<model>_<dataset>.json` (or `<model>_<dataset>_fixed.json` when a correctedrerun exists); regenerate this page with`python repro/build_wild_table.py`.| Detector | RealChain | EvalGEN | SynthWildX | WildRF | BFree-Online | RRDataset | Mean acc |9 unmodified lines| MoE-JEPA | 66.4 / 73.2 | 70.8 / 86.4 | 73.7 / 80.3 | 68.2 / 73.5 | 58.0 / 85.2 | 59.7 / 64.2 | 66.1 || DINOv3 probe | 50.3 / 49.7 | 66.6 / 81.7 | 72.8 / 82.5 | **77.3 / 87.7** | 57.1 / 76.5 | 62.6 / 69.5 | 64.4 || AIDE | 55.5 / 72.4 | 59.7 / 92.7 | 57.4 / 65.7 | 63.6 / 68.6 | 52.8 / 63.1 | 61.1 / 65.2 | 58.4 || PGC | 49.3 / 37.1 | 55.4 / 83.0 | 58.1 / 68.0 | 67.7 / 82.9 | 50.3 / 59.8 | 55.5 / 57.8 | 56.0 || FatFormer | 48.9 / 38.7 | 62.1 / 62.7 | 53.5 / 58.6 | 59.5 / 72.8 | 50.0 / 52.7 | 53.0 / 53.4 | 54.5 || SAFE | 49.8 / 53.7 | 50.8 / 60.0 | 50.0 / 51.1 | 58.5 / 58.5 | 50.2 / 48.7 | 62.9 / 65.7 | 53.7 || NPR | 47.2 / 51.7 | 52.6 / 50.6 | 50.4 / 51.7 | 65.0 / 70.9 | 44.1 / 32.2 | 61.1 / 64.1 | 53.4 || D3QE | 49.5 / 43.5 | 62.2 / 83.9 | 49.6 / 45.5 | 53.0 / 63.9 | 47.0 / 64.0 | 55.0 / 55.1 | 52.7 || DINOv2 probe | 47.9 / 38.8 | 52.6 / 57.6 | 51.1 / 49.6 | 58.9 / 63.6 | 50.0 / 19.4 | 50.6 / 43.0 | 51.8 || UnivFD / CLIP | 49.2 / 40.9 | 51.8 / 55.9 | 49.3 / 48.1 | 53.4 / 64.8 | 50.4 / 43.9 | 52.7 / 54.7 | 51.1 || Adapted DINOv2 | 50.0 / 46.0 | 50.9 / 64.9 | 50.0 / 48.5 | 50.4 / 63.4 | 50.0 / 19.0 | 53.0 / 60.0 | 50.7 |23 unmodified linesevery fake real (fake recall mostly under 15%), a new measurement that its paper does not report.- The other detectors were never evaluated on these sets by their authors, so their rows are new measurements, notreproductions.- **Correction (2026-11-09), PGC.** From 2026-06-15 to 2026-11-09 the served PGC dropped the `rgb_stream.*` tensors ofthe official checkpoint, including its trained LoRA (the checkpoint prefix was not remapped and the load did not fail),so the PGC row of this table was scored with a model without its LoRA. The row now comes from the rescored`pgc_<dataset>_fixed` runs (RealChain 49.9 -> 49.3, EvalGEN 50.2 -> 55.4, SynthWildX 50.9 -> 58.1, WildRF 60.1 -> 67.7,BFree-Online 50.0 -> 50.3, RRDataset 52.3 -> 55.5 balanced accuracy; mean 52.2 -> 56.0, so PGC moves from 16th to12th of 20). It still does not generalize to these sets. Details:[PGC investigation](../repro/investigate/pgc_gap_investigation.md).- Balanced accuracy uses a fixed 0.5 threshold. A detector with a high AUROC but a balanced accuracy near 50separates real from fake but is miscalibrated for this data (it calls nearly everything one class).- An AUROC well below 50 means the detector ranks real images as more fake than the generated ones. We traced
1234567891011121314151617#!/bin/bashexport TRITON_CACHE_DIR=/nvmestore/ssalehi/.tritonexport HF_HOME=/nvmestore/ssalehi/.cache/huggingfaceexport TORCH_HOME=/nvmestore/ssalehi/.cache/torchexport CUDA_VISIBLE_DEVICES=1,2export OMP_NUM_THREADS=1/home/ssalehi/miniconda3/bin/conda run --no-capture-output -n SynthScope accelerate launch --config_file accelerate_config.yaml --num_processes 2 main.py \trainer@TrainerConfig=image/fat_former \model@ModelConfig=image/fat_former \dataset@DatasetConfig=image/aigibench \DatasetConfig.train_batch_size=32 \DatasetConfig.val_batch_size=32 \DatasetConfig.test_batch_size=32 \logger.name=fat_former \logger.mode=online \logger.tags=[SynthScope,FatFormer,aigibench]12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849#!/bin/bash# FatFormer (CVPR 2024): the training recipe of the paper (Sec. 4.1; the authors released no training code), in SynthScope.# data ForenSynths / CNNDetection ProGAN train + val, the released 4-class setting (car, cat, chair, horse; 144k train images)# model CLIP ViT-L/14 (both towers frozen) + forgery-aware adapters at blocks 7/15/23 (num_vit_adapter 3), language-guided# alignment (8 context tokens + patch-based enhancer) and text-guided interactor: only those are trained# train Resize((256, 256)) -> RandomCrop 224 -> flip -> ImageNet normalization ("no other augmentations": no blur/JPEG)# val Resize((256, 256)) -> CenterCrop 224 -> ImageNet normalization# loss cross-entropy on the summed logits (Eq. 10), fp32# optimizer Adam (AdamW with weight decay 0), lr 4e-4, total batch 256, 25 epochs, lr x0.9 every 10 epochs, no clipping# batch 256 = NGPU x MICRO x ACCUM; the defaults 4 x 32 x 2 fit 24 GB GPUs (ACCUM is derived from NGPU and MICRO)# checkpoint model_last.pth (the last epoch, taken as the released model); model_best.pth (best validation accuracy) for reference# Evaluate with: python benchmark/bench_eval.py --model fat_former --ckpt <save_path>/model_last.pth --benchmark forensynths --data <CNNDetection/test>export TRITON_CACHE_DIR=${TRITON_CACHE_DIR:-/nvmestore/ssalehi/.triton}export HF_HOME=${HF_HOME:-/nvmestore/ssalehi/.cache/huggingface}export TORCH_HOME=${TORCH_HOME:-/nvmestore/ssalehi/.cache/torch}export CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES:-0,1,2,3}export OMP_NUM_THREADS=1DATA=${DATA:-/nvmestore/ssalehi/SynthScope/CNNDetection}SAVE=${SAVE:-/nvmestore/ssalehi/SynthScope/models/fat_former}NGPU=${NGPU:-4}MICRO=${MICRO:-32}TOTAL_BATCH=256if (( TOTAL_BATCH % (NGPU * MICRO) != 0 )); then echo "NGPU x MICRO must divide $TOTAL_BATCH" >&2; exit 1; fiACCUM=$((TOTAL_BATCH / (NGPU * MICRO)))# PREFETCH=false: never download a missing split (a node with only staged classes and no test split must not trigger one).# Plain DDP (accelerate_config_ddp.yaml), not the repo's DeepSpeed accelerate_config.yaml: that one clips gradients at 1.0,# which the paper's recipe does not mention.if (( NGPU > 1 )); thenLAUNCH="accelerate launch --config_file accelerate_config_ddp.yaml --num_processes $NGPU"elseLAUNCH="python"fi/home/ssalehi/miniconda3/bin/conda run --no-capture-output -n SynthScope $LAUNCH main.py \trainer@TrainerConfig=image/fat_former \model@ModelConfig=image/fat_former \dataset@DatasetConfig=image/cnndetection \DatasetConfig.root_dir=$DATA \"+DatasetConfig.train_classes=[car,cat,chair,horse]" \DatasetConfig.train_batch_size=$MICRO \DatasetConfig.val_batch_size=64 \DatasetConfig.prefetch=${PREFETCH:-false} \TrainerConfig.lr_step.grad_accum_steps=$ACCUM \TrainerConfig.save_path=$SAVE \"metrics=[real_accuracy,fake_accuracy]" \logger.name=fat_former \logger.mode=offline \"logger.tags=[SynthScope,FatFormer,progan4]" \"$@"
70 unmodified lines717273747576213 unmodified lines29029129229329429529629729870 unmodified linesraise HTTPException(status_code=404, detail=str(e))engine = get_engine()if not engine.is_available(spec):raise HTTPException(status_code=409,213 unmodified lines_FAMILY = [ # (substring -> benchmark family label); first match wins("genimage", "GenImage"), ("forensynth", "ForenSynths"), ("universalfakedetect", "UniversalFakeDetect"),("ojha", "UniversalFakeDetect"), ("ufd", "UniversalFakeDetect"), ("aigcdetect", "AIGCDetect"),("co-spy-bench in-the-wild", "In-the-wild"), # before "co-spy-bench": a different benchmark("co-spy-bench", "Co-Spy-Bench"), ("aigibench", "AIGIBench"), ("aigi", "AIGIBench"),("commgen", "CommGen15"), ("genvideo", "GenVideo"), ("evalcrafter", "EvalCrafter"),("videophy", "VideoPhy"), ("vidprom", "VidProM"), ("genvidbench", "GenVidBench"),("ditfake", "DiTFake"), ("diffusionforensics", "DiffusionForensics"),70 unmodified lines7172737475767778798081213 unmodified lines29529629729829930030130230330430570 unmodified linesraise HTTPException(status_code=404, detail=str(e))engine = get_engine()if engine.ffmpeg_missing(spec):raise HTTPException(status_code=409,detail=f"'{spec.key}' needs ffmpeg (set SYNTHSCOPE_FFMPEG or pip install imageio-ffmpeg).",)if not engine.is_available(spec):raise HTTPException(status_code=409,213 unmodified lines_FAMILY = [ # (substring -> benchmark family label); first match wins("genimage", "GenImage"), ("forensynth", "ForenSynths"), ("universalfakedetect", "UniversalFakeDetect"),("ojha", "UniversalFakeDetect"), ("ufd", "UniversalFakeDetect"), ("univfakedetect", "UniversalFakeDetect"),("aigcdetect", "AIGCDetect"),("co-spy-bench in-the-wild", "In-the-wild"), # before "co-spy-bench": a different benchmark("co-spy-bench", "Co-Spy-Bench"), ("human-aigi", "Human-AIGI"), # before "aigi": its own benchmark("aigibench", "AIGIBench"), ("aigi", "AIGIBench"),("commgen", "CommGen15"), ("genvideo", "GenVideo"), ("evalcrafter", "EvalCrafter"),("videophy", "VideoPhy"), ("vidprom", "VidProM"), ("genvidbench", "GenVidBench"),("ditfake", "DiTFake"), ("diffusionforensics", "DiffusionForensics"),
16 unmodified lines171819202122232425262728293075 unmodified lines1061071081091101111121131141151161171184 unmodified lines12312412512612712812913014 unmodified lines1451461471481491503 unmodified lines154155156157158159119 unmodified lines27928028128228328416 unmodified linesVAL = {# AIGCDetect is the ProGAN-trained setting (B1); we only retrained the SDv1.4 setting, so no SynthScope_train here.("aide", "AIGCDetect"): {"official": {"map": 97.94, "acc": 91.89}},# SynthScope_train = faithful native-res 5-view retrain (aide_native_v2/model_2) — reproduces official.("aide", "GenImage"): {"official": {"map": 97.12, "acc": 85.91}, "synthscope": {"map": 96.42, "acc": 77.87}},("clip", "ForenSynths"): {"synthscope": {"map": 97.22, "acc": 88.28}, "official": {"map": 96.95}},("clip", "UniversalFakeDetect"): {"synthscope": {"map": 96.44, "acc": 87.23}, "official": {"map": 95.66}},("cnn", "ForenSynths"): {"synthscope": {"map": 94.42, "acc": 76.36}, "official": {"map": 92.67}},("co_spy", "Co-Spy-Bench"): {"synthscope": {"map": 96.6, "acc": 89.9}, "official": {"map": 86.65, "acc": 83.88}},("co_spy", "AIGCDetect"): {"official": {"map": 94.59, "acc": 89.25}, "synthscope": {"map": 84.91}},("co_spy", "GenImage"): {"official": {"map": 92.41}, "synthscope": {"map": 90.59, "acc": 75.91}},("co_spy", "ForenSynths"): {"official": {"map": 87.97}, "synthscope": {"map": 96.17}},# CuRe: only the official adapter exists (the training recipe is unreleased), so there is no SynthScope-trained number.("cure", "AIGIBench"): {"official": {"map": 97.0, "acc": 92.85, "auroc": 97.48}},75 unmodified lines# official GenImage val (100,000 images; ltf_synthscope_genimage_val100k). On the 33k set the official ltf_ref# code gives 98.38, the same as SynthScope.("ltf", "GenImage"): {"official": {"map": 99.86, "acc": 98.36, "auroc": 99.88}},("fat_former", "4-class"): {"official": {"map": 99.7, "acc": 98.39}},("fat_former", "Diffusion-model"): {"official": {"map": 98.6, "acc": 93.72}},# synthscope = trained in SynthScope with the official recipe (experiments/image/npr.sh; job 265720, eval 265808).("npr", "Table 1"): {"official": {"map": 94.22, "acc": 92.30}, "synthscope": {"map": 93.83, "acc": 84.09, "auroc": 94.94}},("npr", "Table 2"): {"official": {"map": 96.49, "acc": 94.81}},("npr", "Table 3"): {"official": {"map": 99.4, "acc": 95.03}},("npr", "Table 4"): {"official": {"map": 96.69, "acc": 93.94}, "synthscope": {"map": 97.49, "acc": 88.91, "auroc": 97.23}},("npr", "Table 5"): {"official": {"map": 83.47, "acc": 79.13}},# SAFE now SERVES the SynthScope-trained checkpoint (retrain v2 / model_38), which reproduces the paper.("safe", "ForenSynths"): {"official": {"map": 98.78, "acc": 96.2}, "synthscope": {"map": 97.79, "acc": 95.1}},4 unmodified lines("safe", "DiffusionForensics"): {"synthscope": {"map": 99.34, "acc": 91.3}},("pgc", "GenImage"): {"official": {"map": 100.0, "acc": 99.49}, "synthscope": {"map": 97.62, "acc": 78.6}},# synthscope UFD / ForenSynths = the official recipe in SynthScope, step 500 (experiments/image/pgc.sh; jobs 266276, 266282, 266660).("pgc", "UniversalFakeDetect"): {"official": {"map": 99.34, "acc": 94.16}, "synthscope": {"map": 98.99, "acc": 91.96, "auroc": 98.92}},("pgc", "ForenSynths"): {"official": {"map": 96.25, "acc": 83.73}, "synthscope": {"map": 97.41, "acc": 85.89, "auroc": 97.63}},("pgc", "AIGIBench"): {"official": {"map": 95.36, "acc": 88.33}, "synthscope": {"map": 86.88}},("pgc", "CommGen15"): {"official": {"map": 99.26, "acc": 97.39}, "synthscope": {"map": 98.61, "acc": 66.66}},# SPAI serves the official weights remapped into the SynthScope class, scored at NATIVE resolution (the faithful14 unmodified lines# AUROC / acc at the calibrated threshold. synthscope = job 270384, official = official code end to end (job 270323).("split", "GenVideo"): {"synthscope": {"map": 99.79, "auroc": 99.97, "acc": 99.41}, "official": {"map": 96.12, "auroc": 99.16}},("restrav", "GenVidBench"): {"synthscope": {"map": 92.7, "auroc": 95.9, "acc": 86.87}},("stall", "GenVideo"): {"synthscope": {"map": 82.38, "auroc": 83.51, "acc": 56.88}},("stall", "VideoFeedback"): {"synthscope": {"map": 83.07, "auroc": 85.1, "acc": 62.12}},("stall", "ComGenVid"): {"synthscope": {"map": 82.59, "auroc": 84.0, "acc": 57.34}},3 unmodified lines("co_spy", "In-the-wild"): {}, # genuinely not evaluated (prevents the "Co-Spy-Bench" substring collision)}# Tolerance (percentage points) for calling a number a reproduction of the paper.TOL = {"map": 2.0, "acc": 2.0, "auroc": 2.5}119 unmodified linesspec_status = b.get("our_status", "")synthscope, official, sub = match_val(model, name)status = status_for(name, paper, synthscope, official, spec_status)on = b.get("our_number")note = ""if isinstance(on, dict) and on.get("note"):16 unmodified lines171819202122232425262728293031323375 unmodified lines1091101111121131141151161171181191201211221231241254 unmodified lines13013113213313413513613713813914014114214314 unmodified lines1581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961973 unmodified lines201202203204205206207208209210211212213214215216217119 unmodified lines33733833934034134234316 unmodified linesVAL = {# AIGCDetect is the ProGAN-trained setting (B1); we only retrained the SDv1.4 setting, so no SynthScope_train here.("aide", "AIGCDetect"): {"official": {"map": 97.94, "acc": 91.89}},# SynthScope_train = faithful native-res 5-view retrain (aide_native_v2/model_2) — reproduces the official mAP (acc is lower).("aide", "GenImage"): {"official": {"map": 97.12, "acc": 85.91}, "synthscope": {"map": 96.42, "acc": 77.87}},# ForenSynths = the paper's 11 generators (no StyleGAN2 / WhichFaceIsReal), recomputed from the per-generator entries# of {clip,cnn}_{synthscope,official}_forensynths.json; the 8-GAN subset gives clip 97.22 / 96.96, cnn 94.42 / 92.67.("clip", "ForenSynths"): {"synthscope": {"map": 92.83, "acc": 85.39}, "official": {"map": 92.33, "acc": 80.58}},("clip", "UniversalFakeDetect"): {"synthscope": {"map": 96.44, "acc": 87.23}, "official": {"map": 95.66}},("cnn", "ForenSynths"): {"synthscope": {"map": 90.44, "acc": 74.57}, "official": {"map": 90.77, "acc": 75.82}},# synthscope Co-Spy-Bench / GenImage = cospy_full/model_1.pth, the checkpoint promoted to co_spy.pth (2026-06-08).("co_spy", "Co-Spy-Bench"): {"synthscope": {"map": 96.7, "acc": 90.28}, "official": {"map": 86.65, "acc": 83.88}},("co_spy", "AIGCDetect"): {"official": {"map": 94.59, "acc": 89.25}, "synthscope": {"map": 84.91}},("co_spy", "GenImage"): {"official": {"map": 92.41}, "synthscope": {"map": 90.59, "acc": 76.23}},("co_spy", "ForenSynths"): {"official": {"map": 87.97}, "synthscope": {"map": 96.17}},# CuRe: only the official adapter exists (the training recipe is unreleased), so there is no SynthScope-trained number.("cure", "AIGIBench"): {"official": {"map": 97.0, "acc": 92.85, "auroc": 97.48}},75 unmodified lines# official GenImage val (100,000 images; ltf_synthscope_genimage_val100k). On the 33k set the official ltf_ref# code gives 98.38, the same as SynthScope.("ltf", "GenImage"): {"official": {"map": 99.86, "acc": 98.36, "auroc": 99.88}},# synthscope = trained in SynthScope with the paper's recipe (experiments/image/fat_former.sh; train job 277158), model_last# (epoch 24); evals = DAS6 job 66626 (tags fat_former_trained_last_forensynths / _ufd). DMs = the 8 UFD subsets (paper: 10).("fat_former", "4-class"): {"official": {"map": 99.7, "acc": 98.39}, "synthscope": {"map": 99.56, "acc": 97.29, "auroc": 99.42}},("fat_former", "Diffusion-model"): {"official": {"map": 98.6, "acc": 93.72}, "synthscope": {"map": 98.88, "acc": 92.09, "auroc": 98.67}},# synthscope = trained in SynthScope with the official recipe (experiments/image/npr.sh; job 265720, eval 265808).("npr", "Table 1"): {"official": {"map": 94.22, "acc": 92.30}, "synthscope": {"map": 93.83, "acc": 84.09, "auroc": 94.94}},("npr", "Table 2"): {"official": {"map": 96.49, "acc": 94.81}},("npr", "Table 3"): {"official": {"map": 99.4, "acc": 95.03}},# Table 4 official = NPR.pth, the served file (npr_official_nprpth_ufd); model_epoch_last_3090.pth gives 96.69 / 93.94.# Tables 2, 3 and 5 were measured with model_epoch_last_3090.pth (the registry default before 2026-06-09) only.("npr", "Table 4"): {"official": {"map": 97.16, "acc": 94.57}, "synthscope": {"map": 97.49, "acc": 88.91, "auroc": 97.23}},("npr", "Table 5"): {"official": {"map": 83.47, "acc": 79.13}},# SAFE now SERVES the SynthScope-trained checkpoint (retrain v2 / model_38), which reproduces the paper.("safe", "ForenSynths"): {"official": {"map": 98.78, "acc": 96.2}, "synthscope": {"map": 97.79, "acc": 95.1}},4 unmodified lines("safe", "DiffusionForensics"): {"synthscope": {"map": 99.34, "acc": 91.3}},("pgc", "GenImage"): {"official": {"map": 100.0, "acc": 99.49}, "synthscope": {"map": 97.62, "acc": 78.6}},# synthscope UFD / ForenSynths = the official recipe in SynthScope, step 500 (experiments/image/pgc.sh; jobs 266276, 266282, 266660).# official UFD / ForenSynths-8 = the served PGC_train_progan_ckpt.pth with the checkpoint load FIXED (2026-11-09), PadCenterCrop# eval: tags pgc_official_ufd8_fixed and (FS-8 subset of) pgc_official_forensynths13_fixed. They match the official PGC code# (pgc_official_eval.py: UFD 99.34 / 94.16, FS-13 96.25 / 83.73) within 0.03. Correction 2026-11-09: from 2026-06-15 to# 2026-11-09 the load dropped the checkpoint's rgb_stream.* tensors, trained LoRA included, so the earlier tags# (pgc_official_ufd8 99.17 / 83.57, FS-8 96.41 / 76.34 / 97.06, now in bench_results/_superseded/) understated accuracy.# GenImage / AIGIBench / CommGen15 official = official-code numbers (never affected).("pgc", "UniversalFakeDetect"): {"official": {"map": 99.35, "acc": 94.19, "auroc": 99.31}, "synthscope": {"map": 98.99, "acc": 91.96, "auroc": 98.92}},("pgc", "ForenSynths"): {"official": {"map": 97.83, "acc": 89.17, "auroc": 98.14}, "synthscope": {"map": 97.41, "acc": 85.89, "auroc": 97.63}},("pgc", "AIGIBench"): {"official": {"map": 95.36, "acc": 88.33}, "synthscope": {"map": 86.88}},("pgc", "CommGen15"): {"official": {"map": 99.26, "acc": 97.39}, "synthscope": {"map": 98.61, "acc": 66.66}},# SPAI serves the official weights remapped into the SynthScope class, scored at NATIVE resolution (the faithful14 unmodified lines# AUROC / acc at the calibrated threshold. synthscope = job 270384, official = official code end to end (job 270323).("split", "GenVideo"): {"synthscope": {"map": 99.79, "auroc": 99.97, "acc": 99.41}, "official": {"map": 96.12, "auroc": 99.16}},("restrav", "GenVidBench"): {"synthscope": {"map": 92.7, "auroc": 95.9, "acc": 86.87}},# MIRROR: the official phase-2 checkpoint (DINOv3 ViT-H+; no SynthScope-trained number). acc = mean per-subset# balanced accuracy at 0.5; the paper column is the README's DINOv3-H+ value. Synthbuster uses the official# extension-based JPEG-q96 rule (99.43 with the served decoded-format rule); UnivFakeDetect uses the official# code's 13-subset UnivFD list (93.81 on the paper's Table 7 list). Jobs 279513, 279527, 279550-279555.("mirror", "AIGCDetect"): {"official": {"map": 99.49, "acc": 97.39, "auroc": 99.51}},("mirror", "GenImage"): {"official": {"map": 100.0, "acc": 99.78, "auroc": 100.0}},("mirror", "UnivFakeDetect"): {"official": {"map": 97.04, "acc": 92.44, "auroc": 97.24}},("mirror", "Synthbuster"): {"official": {"map": 99.92, "acc": 99.28, "auroc": 99.96}},("mirror", "EvalGEN"): {"official": {"map": 100.0, "acc": 99.85, "auroc": 99.99}},("mirror", "SynthWildX"): {"official": {"map": 97.71, "acc": 95.08, "auroc": 98.33}},("mirror", "WildRF"): {"official": {"map": 99.8, "acc": 97.88, "auroc": 99.74}}, # official file set (no .jfif)("mirror", "AIGIBench"): {"official": {"map": 98.06, "acc": 94.98, "auroc": 98.66}},("mirror", "RRDataset"): {"official": {"map": 93.86, "acc": 86.91, "auroc": 91.98}},("mirror", "BFree-Online"): {"official": {"map": 99.78, "acc": 97.4, "auroc": 99.5}},("mirror", "RealChain"): {"official": {"map": 91.76, "acc": 81.71, "auroc": 89.96}},# VINA: the official VINA_DINOv3-L_140k+DDA checkpoint (no SynthScope-trained number: the training code is not released).# acc / mAP = the OFFICIAL metric (the _offmetric tags): per-subset pooled accuracy at 0.5 and AP, mean over subsets, as# the paper reports them; mauroc is the mean AUROC from the same scores: bench_eval's own, except ForenSynths and# ARForensics (the _offmetric files' mean over the official subsets) and GenVideo-Val (the _offmetric AUROC, pooled).# ARForensics = the six subsets shared with the paper (our copy has Switti, no MAR;# the 7-row bench_eval mean 96.88 / 99.60 is not comparable with the paper). GenImage = the full val split# (vina_genimage_val100k); the 1500-per-class test bundle (vina_genimage_full) is its own reference row.# Jobs: CPU 281654-281656, 281831; GPU 281657, DAS6 66630.("vina", "ForenSynths"): {"official": {"map": 97.8, "acc": 86.93, "auroc": 97.44}},("vina", "UniversalFakeDetect"): {"official": {"map": 99.01, "acc": 94.84, "auroc": 98.71}},("vina", "DiTFake"): {"official": {"map": 99.95, "acc": 97.98, "auroc": 99.94}},("vina", "ARForensics"): {"official": {"map": 99.54, "acc": 96.36, "auroc": 99.38}},("vina", "GenImage (8 subsets"): {"official": {"map": 99.05, "acc": 94.74, "auroc": 98.72}},("vina", "GenImage test bundle"): {"official": {"map": 98.45, "acc": 93.29, "auroc": 97.98}},("vina", "GenVideo-Val"): {"official": {"map": 99.26, "acc": 96.86, "auroc": 99.14}}, # overall pooled ACC / AP("vina", "SynthWildX"): {"official": {"map": 96.36, "acc": 91.82, "auroc": 97.46}},("vina", "WildRF"): {"official": {"map": 99.41, "acc": 96.12, "auroc": 99.25}},("vina", "AIGIBench"): {"official": {"map": 97.33, "acc": 92.72, "auroc": 97.6}},("vina", "RRDataset"): {"official": {"map": 92.77, "acc": 82.89, "auroc": 91.69}},("stall", "GenVideo"): {"synthscope": {"map": 82.38, "auroc": 83.51, "acc": 56.88}},("stall", "VideoFeedback"): {"synthscope": {"map": 83.07, "auroc": 85.1, "acc": 62.12}},("stall", "ComGenVid"): {"synthscope": {"map": 82.59, "auroc": 84.0, "acc": 57.34}},3 unmodified lines("co_spy", "In-the-wild"): {}, # genuinely not evaluated (prevents the "Co-Spy-Bench" substring collision)}# Narrow label overrides applied after status_for (which stays unchanged for every other detector):# (model, exact benchmark label) -> status.# MIRROR RRDataset: 86.91 vs the README's 88.3 is 1.39 short, about 6x MIRROR's other deviations (all within 0.25), but# inside the generic +-2.0 tolerance, which would label it "official". Every doc calls it short, so the site does too.# VINA SynthWildX and WildRF: the paper prints per-subset values only; SynthScope is below it on both (and the unmodified# official eval.py gives the same scores on our files, so the gap is the data). The means of the printed values (92.8,# 97.13) are within the generic +-2.0 tolerance, which would label them "official".STATUS_OVERRIDE = {("mirror", "RRDataset (pooled folder)"): "below",("vina", "SynthWildX (dalle3 / firefly / midjourney_v5)"): "below",("vina", "WildRF (facebook / reddit / twitter)"): "below"}# Tolerance (percentage points) for calling a number a reproduction of the paper.TOL = {"map": 2.0, "acc": 2.0, "auroc": 2.5}119 unmodified linesspec_status = b.get("our_status", "")synthscope, official, sub = match_val(model, name)status = status_for(name, paper, synthscope, official, spec_status)status = STATUS_OVERRIDE.get((model, name), status)on = b.get("our_number")note = ""if isinstance(on, dict) and on.get("note"):
6 unmodified lines7891011128 unmodified lines21222324252697 unmodified lines12412512612712812956 unmodified lines18618718818919019117 unmodified lines20921021121221321421521621721821980 unmodified lines300301302303304305104 unmodified lines4104114124134144156 unmodified linesimport base64import gcimport ioimport mathimport threadingimport time8 unmodified linesfrom .registry import ModelSpec, get_spec, input_notefrom . import mediadef _png_b64(img: Image.Image) -> str:buf = io.BytesIO()97 unmodified linesif model_type == "ltf":from models.image.ltf.ltf import SynthScopeLTFModelreturn SynthScopeLTFModel(cfg)if model_type == "stall":from models.video.stall.stall import SynthScopeSTALLModelreturn SynthScopeSTALLModel(cfg)56 unmodified linesf"{spec.key}: checkpoint mismatch missing={real_missing[:8]} "f"unexpected={unexpected[:8]}")return (f"loaded {len(sd)} tensors from {path.name} "f"(missing={len(real_missing)}, unexpected={len(unexpected)})"17 unmodified linesreturn Nonereturn config.CHECKPOINTS_DIR / spec.checkpointdef is_available(self, spec: ModelSpec) -> bool:if spec.key == "stall": # training-free, but needs the gated DINOv3 ViT-L/16 weightsimport osfrom .registry import DINOV3_WEIGHTSreturn os.path.exists(os.environ.get("DINO_V3_WEIGHTS") or DINOV3_WEIGHTS)if spec.ckpt_kind == "none": # training-free (D3)return Truep = self.checkpoint_path(spec)80 unmodified linesz = -zreturn torch.sigmoid(z)out = model(frames) # [1,2]if spec.key == "stall":# STALL returns [real_prob, fake_prob] (already calibrated percentiles); use directly.return out[:, 1]104 unmodified linesdef video_clip(self, spec: ModelSpec, path) -> torch.Tensor:"""Decode and normalize a clip exactly as ``spec`` prescribes: ``[T, 3, H, W]``."""clip = media.video_clip_tensor(path, num_frames=spec.num_frames, fps=spec.fps, frame_size=spec.frame_size,window_center=spec.window_center, interp=spec.resize_interp,6 unmodified lines789101112138 unmodified lines222324252627282997 unmodified lines12712812913013113213313413513613713856 unmodified lines19519619719819920020120220320420520620720820921021117 unmodified lines22923023123223323423523623723823924024124224324424524680 unmodified lines327328329330331332333334104 unmodified lines4394404414424434444454464476 unmodified linesimport base64import gcimport ioimport loggingimport mathimport threadingimport time8 unmodified linesfrom .registry import ModelSpec, get_spec, input_notefrom . import medialogger = logging.getLogger(__name__)def _png_b64(img: Image.Image) -> str:buf = io.BytesIO()97 unmodified linesif model_type == "ltf":from models.image.ltf.ltf import SynthScopeLTFModelreturn SynthScopeLTFModel(cfg)if model_type == "mirror":from models.image.mirror.mirror import SynthScopeMIRRORModelreturn SynthScopeMIRRORModel(cfg)if model_type == "vina":from models.image.vina.vina import SynthScopeVINAModelreturn SynthScopeVINAModel(cfg)if model_type == "stall":from models.video.stall.stall import SynthScopeSTALLModelreturn SynthScopeSTALLModel(cfg)56 unmodified linesf"{spec.key}: checkpoint mismatch missing={real_missing[:8]} "f"unexpected={unexpected[:8]}")elif real_missing or unexpected:# Non-official kinds are not raised on (a model may legitimately rebuild some tensors itself, declared via# ``pretrained_prefixes``), but a mismatch must never be silent: dropped keys (e.g. a wrapper prefix the# checkpoint carries and the class does not, which once left the served PGC without its LoRA weights) or# tensors that kept their __init__ values change what the detector computes.logger.warning("%s: checkpoint %s does not match the model exactly: %d unexpected key(s) were dropped and %d key(s) kept ""their __init__ values (unexpected=%s, missing=%s). Fix the remap or declare the keys in the model's ""pretrained_prefixes.", spec.key, path.name, len(unexpected), len(real_missing), unexpected[:4],real_missing[:4],)return (f"loaded {len(sd)} tensors from {path.name} "f"(missing={len(real_missing)}, unexpected={len(unexpected)})"17 unmodified linesreturn Nonereturn config.CHECKPOINTS_DIR / spec.checkpoint@staticmethoddef ffmpeg_missing(spec: ModelSpec) -> bool:"""True for a detector whose video protocol shells out to ffmpeg (vina_video) when none can be found."""return spec.video_sampler == "ffmpeg_fps_center" and not media.ffmpeg_available()def is_available(self, spec: ModelSpec) -> bool:if spec.key == "stall": # training-free, but needs the gated DINOv3 ViT-L/16 weightsimport osfrom .registry import DINOV3_WEIGHTSreturn os.path.exists(os.environ.get("DINO_V3_WEIGHTS") or DINOV3_WEIGHTS)if self.ffmpeg_missing(spec):return Falseif spec.ckpt_kind == "none": # training-free (D3)return Truep = self.checkpoint_path(spec)80 unmodified linesz = -zreturn torch.sigmoid(z)out = model(frames) # [1,2]if spec.video_prob == "sigmoid": # one fake logit (VINA: the mean of the frame logits)return torch.sigmoid(out.reshape(-1))if spec.key == "stall":# STALL returns [real_prob, fake_prob] (already calibrated percentiles); use directly.return out[:, 1]104 unmodified linesdef video_clip(self, spec: ModelSpec, path) -> torch.Tensor:"""Decode and normalize a clip exactly as ``spec`` prescribes: ``[T, 3, H, W]``."""if spec.video_sampler == "ffmpeg_fps_center": # VINA: ffmpeg JPEG frames, central window, image transformframes = media.ffmpeg_fps_frames(path, fps=spec.fps, num_frames=spec.num_frames)return torch.stack([spec.transform(f) for f in frames])clip = media.video_clip_tensor(path, num_frames=spec.num_frames, fps=spec.fps, frame_size=spec.frame_size,window_center=spec.window_center, interp=spec.resize_interp,
5 unmodified lines6789101112131415161720 unmodified lines38394041424344454647484950515222 unmodified lines7576777879805 unmodified lines* ``dataset.sample_video_frames`` -> evenly-sampled clip [T,3,size,size] float in [0,1]"""import iofrom pathlib import Pathimport numpy as npimport torchfrom PIL import Image, ImageFile# Some user uploads are truncated/progressive; let PIL load what it can.ImageFile.LOAD_TRUNCATED_IMAGES = True20 unmodified linesraise ValueError(f"Unsupported file type: {filename!r} (content_type={content_type})")def decode_image(data: bytes) -> Image.Image:"""Decode raw bytes into an RGB PIL image."""source = Image.open(io.BytesIO(data))source_format = source.formatimage = source.convert("RGB")image.info[SRC_FORMAT_KEY] = source_format # lets format-aware transforms (CuRe) see PNG vs JPEGreturn imagedef sample_video_pil(path: str | Path, num_frames: int) -> list[Image.Image]:"""Sample ``num_frames`` frames spread across the whole video, at native resolution.22 unmodified linesreturn framesdef thumbnail_bytes(path: str | Path, modality: str, size: int = 256) -> bytes:"""A small JPEG thumbnail for the dataset explorer grid.5 unmodified lines6789101112131415161718192021222324252620 unmodified lines4748495051525354555657585960616263646566676869707172737422 unmodified lines9798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551565 unmodified lines* ``dataset.sample_video_frames`` -> evenly-sampled clip [T,3,size,size] float in [0,1]"""import ioimport osimport shutilimport subprocessimport tempfilefrom pathlib import Pathimport numpy as npimport torchfrom PIL import Image, ImageFiletry: # optional: a static ffmpeg for the ffmpeg-based video protocols (VINA)import imageio_ffmpegexcept ImportError:imageio_ffmpeg = None# Some user uploads are truncated/progressive; let PIL load what it can.ImageFile.LOAD_TRUNCATED_IMAGES = True20 unmodified linesraise ValueError(f"Unsupported file type: {filename!r} (content_type={content_type})")def to_rgb(source: Image.Image) -> Image.Image:"""``source.convert("RGB")`` that records the source file format (PNG, JPEG, ...) in ``info[SRC_FORMAT_KEY]``, soformat-aware eval transforms (CuRe, MIRROR: PNG sources get a JPEG round trip) see what the official loaders see.A hint already present (an image that was converted before) is kept; the caller's image is not modified."""source_format = source.info.get(SRC_FORMAT_KEY) or source.formatimage = source.convert("RGB")if source_format:image.info[SRC_FORMAT_KEY] = source_formatreturn imagedef decode_image(data: bytes) -> Image.Image:"""Decode raw bytes into an RGB PIL image (with the source-format hint, see ``to_rgb``)."""return to_rgb(Image.open(io.BytesIO(data)))def open_rgb(path: str | Path) -> Image.Image:"""Open an image file as RGB (with the source-format hint, see ``to_rgb``)."""with Image.open(path) as source:return to_rgb(source)def sample_video_pil(path: str | Path, num_frames: int) -> list[Image.Image]:"""Sample ``num_frames`` frames spread across the whole video, at native resolution.22 unmodified linesreturn framesdef ffmpeg_available() -> bool:try:ffmpeg_exe()except (FileNotFoundError, RuntimeError, OSError): # RuntimeError: imageio-ffmpeg found no binaryreturn Falsereturn Truedef ffmpeg_exe() -> str:"""The ffmpeg binary: ``$SYNTHSCOPE_FFMPEG``, else ``ffmpeg`` on the PATH, else imageio-ffmpeg's static build."""env = os.environ.get("SYNTHSCOPE_FFMPEG")if env:if not os.path.isfile(env) and shutil.which(env) is None:raise FileNotFoundError(f"SYNTHSCOPE_FFMPEG={env!r} is not an executable file")return envexe = shutil.which("ffmpeg")if exe:return exeif imageio_ffmpeg is not None:try:return imageio_ffmpeg.get_ffmpeg_exe()except RuntimeError as e:raise FileNotFoundError(f"imageio-ffmpeg found no ffmpeg binary ({e})") from eraise FileNotFoundError("ffmpeg not found: install it, set SYNTHSCOPE_FFMPEG, or pip install imageio-ffmpeg")def ffmpeg_fps_frames(path: str | Path, fps: float, num_frames: int, timeout: float = 300.0) -> list[Image.Image]:"""VINA's official video protocol: ffmpeg writes the video as JPEG frames at ``fps`` with its default JPEG settings(preprocess/video2frame.py: ``ffmpeg -loglevel quiet -i <video> -vf fps=2 <dir>/%d.jpg``), and the central windowof ``num_frames`` of them is read back as RGB, the last frame repeated when there are fewer (the test phase ofdataset/dataloader.py ``_load_frames_dir``).The whole clip is extracted, not just the frames that are read: ffmpeg's mjpeg rate control runs across frames, soonly the full extraction writes the same JPEG bytes as the official preprocessing. Parity holds for the ffmpegversion used (checked with the static ffmpeg 7.0.2); other versions may encode slightly differently. As theofficial ``process_video``, a failing ffmpeg run (a truncated clip) keeps the frames it wrote; only a clip with noframe at all is an error. ``timeout`` (seconds) bounds a malformed upload."""with tempfile.TemporaryDirectory() as tmp:cmd = [ffmpeg_exe(), "-loglevel", "quiet", "-i", str(path), "-vf", f"fps={fps:g}", os.path.join(tmp, "%d.jpg")]try:subprocess.run(cmd, check=False, stdin=subprocess.DEVNULL, timeout=timeout)except subprocess.TimeoutExpired as e:raise ValueError(f"ffmpeg did not finish within {timeout:g} s for this video.") from eids = sorted(int(p.stem) for p in Path(tmp).glob("*.jpg") if p.stem.isdigit())if not ids:raise ValueError("ffmpeg wrote no frames for this video.")if len(ids) >= num_frames:start = (len(ids) - num_frames) // 2ids = ids[start:start + num_frames]else:ids += [ids[-1]] * (num_frames - len(ids))return [open_rgb(Path(tmp) / f"{i}.jpg") for i in ids]def thumbnail_bytes(path: str | Path, modality: str, size: int = 256) -> bytes:"""A small JPEG thumbnail for the dataset explorer grid.
107 unmodified lines10810911011111211313 unmodified lines1271281291301311321337 unmodified lines14114214314414514672 unmodified lines21922022122222322422521 unmodified lines24724824925025125225325462 unmodified lines31731831932032132232332432532632732848 unmodified lines377378379380381382105 unmodified lines4884894904914924934944954964974984991 unmodified line50150250350450550618 unmodified lines525526527528529530531532533534535536537107 unmodified linesreturn {"core." + k: v for k, v in sd.items() if not k.startswith(LTF_UNUSED_PREFIXES)}def remap_safe(sd: dict) -> dict:"""Official SAFE (Ouxiang-Li/SAFE) → SynthScopeSAFEModel. The custom ResNet (conv1/bn1/layer1/layer2)matches our class verbatim; only the classifier head differs: official names it ``fc1``, ours13 unmodified linesoverrides: list[str] # Hydra overrides for config_utils.compose_configpredict_kind: str # ce | bce | bce_npr | vib | videocheckpoint: Optional[str] # filename inside CHECKPOINTS_DIR (None = no weights file)ckpt_kind: str # synthscope | official_fatformer | official_aide | official_npr | nonetransform: Optional[AIGITransformations] = None # image preprocessing (None for pure-video models)# Video-clip sampling (used when modality == "video").num_frames: int = 167 unmodified linesshort_clip_frames: int = 0 # frames to use when a video is too short for num_frames (D3: 8)fps_nearest: bool = False # frame nearest to each k/fps, as ffmpeg's fps filter (D3)bgr: bool = False # feed BGR channels (D3's official reader never converts cv2's BGR)notes: str = ""# Which weights back the DEFAULT inference checkpoint, surfaced in the web UI:# "official" = authors' released weights (loaded into the SynthScope class)72 unmodified lineskey="fat_former", name="FatFormer", paper="Liu et al., CVPR'24",modality="image", predict_kind="ce", checkpoint="fat_former.pth",ckpt_kind="official_fatformer", remap=remap_fatformer, weights="official",# The released checkpoint has FAA at blocks [7,15,23] => num_vit_adapter=3 (not the yaml's 8).overrides=["model@ModelConfig=image/fat_former", "ModelConfig.num_vit_adapter=3"],transform=model_transform("image/fat_former"),notes="Frozen CLIP + forgery-aware adapters + learnable prompts. Official ProGAN weights.",21 unmodified linesinterpret="spai_patch", # per-patch spectral fake-evidence over the native 224-gridnotes="Spectral learning (MFM ViT-B/16) + Spectral Context Attention at NATIVE/arbitrary resolution: each ""image is patchified into a variable 224-grid (five_crop fallback for tiny images). Serves the ""official SPAI weights remapped into the SynthScope class; reproduces the paper (GenImage-8 90.74 / ""Synthbuster 96.07 mAP). A fixed 448 resize/crop destroys the native-res spectral statistics.",))_add(ModelSpec(key="vib_net", name="VIB-Net", paper="Zhang et al., CVPR'25",62 unmodified linesmodality="image", predict_kind="bce", checkpoint="co_spy.pth", ckpt_kind="synthscope",overrides=["model@ModelConfig=image/co_spy"],transform=model_transform("image/co_spy"), # raw [0,1]; per-branch norm inside the modelnotes="SigLIP semantic + SD-VAE-residual artifact streams, feature fusion (trained on ProGAN).",))_add(ModelSpec(key="pgc", name="PGC", paper="Zhou et al., 2026",modality="image", predict_kind="bce", checkpoint="pgc.pth", ckpt_kind="synthscope",weights="official", # official PGC ProGAN weights load remap-free (FS 96.25 / hard-gens 94.35 vs our from-scratch 75.87); deploy PGC_train_progan_ckpt.pth as pgc.pthoverrides=["model@ModelConfig=image/pgc"],transform=model_transform("image/pgc"), # official PGC eval = PadCenterCrop(224), NO resizeinterpret="pgc_peak", # peak-guided residual fake-evidence map (per-location score)48 unmodified lines"at its own resolution, plus one resized global view. Patch tokens are pooled within each tile, tiles and ""views are pooled across the image, and a gated fusion head decides. Uses the OFFICIAL GenImage checkpoint.",))# OmniAID's official eval preprocessing: v2 resizes straight to 336 (data/datasets.py); the v1-era releases used a# double resize (512x512, then 336x336) - the commented-out pipeline that the official code says to use for v1 weights.for _key, _name, _ckpt, _note in [105 unmodified lines"moejepa": ("Short side 292, center 256×256", "The short side is resized to 292 and the central 256×256 is kept."),"effort": ("Squashed to 224×224", "The whole image is stretched to a 224×224 square (cv2 bicubic, the aspect ratio changes)."),"effort_chameleon": ("Squashed to 224×224", "The whole image is stretched to a 224×224 square (cv2 bicubic, the aspect ratio changes)."),"omniaid": ("Squashed to 336×336", "The whole image is stretched to a 336×336 square (the aspect ratio changes)."),"omniaid_v1": ("Squashed to 512, then 336", "The image is stretched to 512×512 and then to 336×336, as in the v1 release."),"omniaid_genimage": ("Squashed to 512, then 336", "The image is stretched to 512×512 and then to 336×336, as in the v1-era releases."),"ltf": ("Native-res 224 tiles + global view", "The image is cut into 224×224 tiles at its own resolution (no ""scaling; edge tiles are aligned to the border, a side under 224 px is padded with black), plus one view of ""the whole image resized to 224 and center-cropped."),"cure": ("Paper-specific pipeline", "As in the paper: PNG images are re-saved as JPEG, the shorter side is scaled to ""390 and center-cropped, resized to 336, then JPEG-compressed again (quality 70)."),}1 unmodified linedef input_note(spec: ModelSpec) -> dict:"""{label, explanation} describing the preprocessing of ``spec`` (frames for video models)."""if spec.modality == "video":crop = f", after trimming {int(spec.edge_crop * 100)}% off every edge" if spec.edge_crop else ""return {"label": f"{spec.num_frames} sampled frames",18 unmodified linesREPRO_FULL = {}# SynthScope-only probe variants (no paper benchmark table of their own) — hand-kept headline cards._PROBE_REPRO: dict[str, dict] = {"dinov2": {"benchmark": "ForenSynths", "paper": "~97 mAP (CLIP-probe ref.)", "ours": "95.03 mAP / 94.86 AUROC","match": "close", "note": "frozen DINOv2 ViT-L/14 probe."},"dinov3": {"benchmark": "ForenSynths-8", "paper": "~97 mAP (CLIP-probe ref.)", "ours": "93.68 mAP / 92.92 AUROC","match": "close", "note": "frozen DINOv3 ViT-L/16 probe (8 ForenSynths gens, n=400/class)."},"adapted_dino": {"benchmark": "ForenSynths-8", "paper": "— (SynthScope variant)", "ours": "98.96 mAP / 98.77 AUROC","match": "ours-only", "note": "DINOv2 + per-block bottleneck adapters (8 gens, n=400/class)."},}# Each model's headline = its primary paper benchmark, derived from REPRO_FULL (single source of truth).107 unmodified lines10810911011111211311411511611711811912012112212312412512612712812913013 unmodified lines1441451461471481491507 unmodified lines15815916016116216316416516616772 unmodified lines24024124224324424524621 unmodified lines26826927027127227327427562 unmodified lines33833934034134234334434534634734834935035135235335435548 unmodified lines404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452105 unmodified lines5585595605615625635645655665675685695705715725735745751 unmodified line57757857958058158258358458558658758858959018 unmodified lines609610611612613614615616617618619620621622107 unmodified linesreturn {"core." + k: v for k, v in sd.items() if not k.startswith(LTF_UNUSED_PREFIXES)}def remap_vina(sd: dict) -> dict:"""Official VINA checkpoint ({"model_state_dict": ...}) -> SynthScopeVINAModel: the officialutil.load_checkpoint rule (unwrap ``model_state_dict``, drop ``module.``); the names are the official ones (theblock prefix is renamed by a load hook)."""sd = sd.get("model_state_dict", sd)return {k.replace("module.", ""): v for k, v in sd.items()}def remap_pgc(sd: dict) -> dict:"""Official PGC checkpoint -> SynthScopePGCModel: the official ``PGCNetwork`` keeps the DINOv2 backbone inside its``RgbStream`` wrapper (``rgb_stream.backbone.*``); the SynthScope class holds it as ``self.backbone``. Strip thewrapper prefix. ``residual_stream`` / ``pgcm`` / ``classifier`` and the LoRA layout (``original_layer`` +``lora.lora_{A,B}`` on ``mlp.fc1`` / ``mlp.fc2``) are already identical. SynthScope-trained checkpoints(``backbone.*``) pass through unchanged."""return {(k[len("rgb_stream."):] if k.startswith("rgb_stream.") else k): v for k, v in sd.items()}def remap_safe(sd: dict) -> dict:"""Official SAFE (Ouxiang-Li/SAFE) → SynthScopeSAFEModel. The custom ResNet (conv1/bn1/layer1/layer2)matches our class verbatim; only the classifier head differs: official names it ``fc1``, ours13 unmodified linesoverrides: list[str] # Hydra overrides for config_utils.compose_configpredict_kind: str # ce | bce | bce_npr | vib | videocheckpoint: Optional[str] # filename inside CHECKPOINTS_DIR (None = no weights file)ckpt_kind: str # synthscope | official_* (strict) | nonetransform: Optional[AIGITransformations] = None # image preprocessing (None for pure-video models)# Video-clip sampling (used when modality == "video").num_frames: int = 167 unmodified linesshort_clip_frames: int = 0 # frames to use when a video is too short for num_frames (D3: 8)fps_nearest: bool = False # frame nearest to each k/fps, as ffmpeg's fps filter (D3)bgr: bool = False # feed BGR channels (D3's official reader never converts cv2's BGR)# "ffmpeg_fps_center" (VINA): ffmpeg writes JPEG frames at ``fps``, the central ``num_frames`` are read back and# each goes through ``transform`` (the image eval preprocessing) instead of the clip settings above.video_sampler: str = ""video_prob: str = "softmax" # video output -> P(fake): softmax[:, 1] of [1, 2] logits, or "sigmoid"notes: str = ""# Which weights back the DEFAULT inference checkpoint, surfaced in the web UI:# "official" = authors' released weights (loaded into the SynthScope class)72 unmodified lineskey="fat_former", name="FatFormer", paper="Liu et al., CVPR'24",modality="image", predict_kind="ce", checkpoint="fat_former.pth",ckpt_kind="official_fatformer", remap=remap_fatformer, weights="official",# The released checkpoint has FAA at blocks [7,15,23] => num_vit_adapter=3 (also the yaml's value now; the official argparse default is 8).overrides=["model@ModelConfig=image/fat_former", "ModelConfig.num_vit_adapter=3"],transform=model_transform("image/fat_former"),notes="Frozen CLIP + forgery-aware adapters + learnable prompts. Official ProGAN weights.",21 unmodified linesinterpret="spai_patch", # per-patch spectral fake-evidence over the native 224-gridnotes="Spectral learning (MFM ViT-B/16) + Spectral Context Attention at NATIVE/arbitrary resolution: each ""image is patchified into a variable 224-grid (five_crop fallback for tiny images). Serves the ""official SPAI weights remapped into the SynthScope class (GenImage-8 94.22 / Synthbuster 96.75 mAP on ""SynthScope's protocol). A fixed 448 resize/crop destroys the native-res spectral statistics.",))_add(ModelSpec(key="vib_net", name="VIB-Net", paper="Zhang et al., CVPR'25",62 unmodified linesmodality="image", predict_kind="bce", checkpoint="co_spy.pth", ckpt_kind="synthscope",overrides=["model@ModelConfig=image/co_spy"],transform=model_transform("image/co_spy"), # raw [0,1]; per-branch norm inside the model# co_spy.pth = the SynthScope retrain on GenImage SD v1.4 (repro/retrain_cospy_full_mgpu.sbatch,# checkpoints_retrain/cospy_full/model_1.pth, promoted 2026-06-08), not an official checkpoint.notes="SigLIP semantic + SD-VAE-residual artifact streams, feature fusion (trained in SynthScope on GenImage SD v1.4).",))_add(ModelSpec(key="pgc", name="PGC", paper="Zhou et al., 2026",modality="image", predict_kind="bce", checkpoint="pgc.pth", ckpt_kind="official_pgc", remap=remap_pgc,# pgc.pth = the official PGC ProGAN checkpoint (PGC_train_progan_ckpt.pth). Its keys carry the official# ``rgb_stream.`` wrapper prefix, which remap_pgc strips (a SynthScope-trained pgc.pth, ``backbone.*``, is unchanged);# every key then loads strictly. Without the remap only the 28 head tensors loaded and all LoRA tensors were dropped# silently (fixed 2026-11-09, see repro/investigate/pgc_gap_investigation.md).weights="official",overrides=["model@ModelConfig=image/pgc"],transform=model_transform("image/pgc"), # official PGC eval = PadCenterCrop(224), NO resizeinterpret="pgc_peak", # peak-guided residual fake-evidence map (per-location score)48 unmodified lines"at its own resolution, plus one resized global view. Patch tokens are pooled within each tile, tiles and ""views are pooled across the image, and a gated fusion head decides. Uses the OFFICIAL GenImage checkpoint.",))_add(ModelSpec(key="mirror", name="MIRROR", paper="Liu et al., NeurIPS'26",modality="image", predict_kind="ce", checkpoint="mirror.pth", ckpt_kind="official_mirror", weights="official",# mirror.pth = the official phase-2 checkpoint-h-cur.pth unchanged (authors' Google Drive); it holds the full model# (DINOv3 ViT-H+ backbone, LoRA, memory bank, head), so neither the gated DINOv3 weights nor mirror_phase1.pth are# needed at inference. Strict load; the ViT block prefix is renamed for transformers 4/5 (official_arch.py).overrides=["model@ModelConfig=image/mirror"],# official data/datasets.py eval: short side >512 -> 512, center 224, PNG/BMP -> JPEG q96transform=model_transform("image/mirror"),notes="Reference-comparison detector: a frozen memory bank (real-image prototypes in the paper; in the released ""checkpoint, the code's seeded default initialization) reconstructs an 'ideal ""reference' of the DINOv3 ViT-H+/16 (+ LoRA) features; the residual, the retrieval uncertainty and the CLS ""token give the score. Uses the OFFICIAL checkpoint. PNG/BMP inputs get a JPEG q96 round trip (the paper's ""format-aligned inputs), so use the registered transform. Runs fp32, the official default.",))# VINA: one model for images and videos. `vina` scores images (and, like every image detector, sampled frames of a video# with the mean P(fake)); `vina_video` is the official video protocol, so the paper's video benchmarks run through it._VINA_NOTES = ("DINOv3 ViT-L/16 fine-tuned end to end with a linear head, trained on images and video frames together ""(video as a natural augmentation), so one model detects AI-generated images and videos. Uses the ""OFFICIAL checkpoint VINA_DINOv3-L_140k+DDA (licence unclear: not in the zoo or on the Space). ")_add(ModelSpec(key="vina", name="VINA", paper="arXiv 2605.21977",modality="image", predict_kind="bce", checkpoint="vina.pth", ckpt_kind="official_vina", remap=remap_vina,weights="official",# vina.pth = the official VINA_DINOv3-L_140k+DDA.pth unchanged (HF mgiant/VINA_checkpoints); it holds the full model# (DINOv3 ViT-L/16 + head), so the gated DINOv3 weights are not needed. Strict load; the ViT block prefix is renamed# for transformers 4/5 (official_arch.py).overrides=["model@ModelConfig=image/vina"],transform=model_transform("image/vina"), # official 'default' eval: Resize(256, bicubic), crop 256, ImageNetnotes=_VINA_NOTES + "Images: short side resized to 256 (bicubic), center crop 256. Runs fp32 (official default).",))_add(ModelSpec(key="vina_video", name="VINA (video)", paper="arXiv 2605.21977",modality="video", predict_kind="video", checkpoint="vina.pth", ckpt_kind="official_vina", remap=remap_vina,weights="official",overrides=["model@ModelConfig=image/vina"],transform=model_transform("image/vina"),# official protocol: preprocess/video2frame.py (ffmpeg -vf fps=2 -> JPEG frames), then the test loader reads the# central select_frame_nums=1 frame(s) (configs/VINA_DINOv3.yaml); P(fake) = sigmoid(mean frame logit)num_frames=1, fps=2.0, frame_size=256, video_sampler="ffmpeg_fps_center", video_prob="sigmoid",notes=_VINA_NOTES + "Videos: the official protocol - ffmpeg writes the clip as JPEG frames at 2 fps and the ""central frame is scored with the image preprocessing (needs ffmpeg).",))# OmniAID's official eval preprocessing: v2 resizes straight to 336 (data/datasets.py); the v1-era releases used a# double resize (512x512, then 336x336) - the commented-out pipeline that the official code says to use for v1 weights.for _key, _name, _ckpt, _note in [105 unmodified lines"moejepa": ("Short side 292, center 256×256", "The short side is resized to 292 and the central 256×256 is kept."),"effort": ("Squashed to 224×224", "The whole image is stretched to a 224×224 square (cv2 bicubic, the aspect ratio changes)."),"effort_chameleon": ("Squashed to 224×224", "The whole image is stretched to a 224×224 square (cv2 bicubic, the aspect ratio changes)."),"mirror": ("Center-crop 224 (short side ≤ 512)", "If the shorter side exceeds 512 px it is scaled to 512, then ""the central 224×224 is used (smaller images are padded with black). For PNG/BMP files that 224×224 ""crop is then re-saved as JPEG (quality 96), as in the paper's format-aligned evaluation."),"omniaid": ("Squashed to 336×336", "The whole image is stretched to a 336×336 square (the aspect ratio changes)."),"omniaid_v1": ("Squashed to 512, then 336", "The image is stretched to 512×512 and then to 336×336, as in the v1 release."),"omniaid_genimage": ("Squashed to 512, then 336", "The image is stretched to 512×512 and then to 336×336, as in the v1-era releases."),"ltf": ("Native-res 224 tiles + global view", "The image is cut into 224×224 tiles at its own resolution (no ""scaling; edge tiles are aligned to the border, a side under 224 px is padded with black), plus one view of ""the whole image resized to 224 and center-cropped."),"vina": ("Resize + center-crop 256 (bicubic)", "The shorter side is scaled to 256 px (bicubic) and the central ""256×256 square is used. The aspect ratio is kept; anything outside the square is not seen by the ""detector."),"cure": ("Paper-specific pipeline", "As in the paper: PNG images are re-saved as JPEG, the shorter side is scaled to ""390 and center-cropped, resized to 336, then JPEG-compressed again (quality 70)."),}1 unmodified linedef input_note(spec: ModelSpec) -> dict:"""{label, explanation} describing the preprocessing of ``spec`` (frames for video models)."""if spec.video_sampler == "ffmpeg_fps_center":one = spec.num_frames == 1frames = "the central frame" if one else f"the central {spec.num_frames} frames"return {"label": f"{frames.capitalize()} at {spec.fps:g} fps","explanation": f"The clip is written as JPEG frames at {spec.fps:g} fps (ffmpeg) and {frames} of "f"them {'is' if one else 'are'} scored like an image: the shorter side is scaled to "f"{spec.frame_size} px (bicubic) and the central {spec.frame_size}×{spec.frame_size} ""square is used. This matches the paper's evaluation."}if spec.modality == "video":crop = f", after trimming {int(spec.edge_crop * 100)}% off every edge" if spec.edge_crop else ""return {"label": f"{spec.num_frames} sampled frames",18 unmodified linesREPRO_FULL = {}# SynthScope-only probe variants (no paper benchmark table of their own) — hand-kept headline cards.# "ours" = the full ForenSynths-13 test set (repro/bench_results/<model>_synthscope_forensynths.json)._PROBE_REPRO: dict[str, dict] = {"dinov2": {"benchmark": "ForenSynths-13", "paper": "~97 mAP (CLIP-probe ref.)", "ours": "87.37 mAP / 87.41 AUROC","match": "ours-only", "note": "frozen DINOv2 ViT-L/14 probe (8-GAN subset: 90.61 mAP)."},"dinov3": {"benchmark": "ForenSynths-13", "paper": "~97 mAP (CLIP-probe ref.)", "ours": "89.02 mAP / 88.23 AUROC","match": "ours-only", "note": "frozen DINOv3 ViT-L/16 probe (8-GAN subset: 91.23 mAP)."},"adapted_dino": {"benchmark": "ForenSynths-13", "paper": "— (SynthScope variant)", "ours": "95.35 mAP / 94.81 AUROC","match": "ours-only", "note": "DINOv2 + per-block bottleneck adapters (8-GAN subset: 98.78 mAP)."},}# Each model's headline = its primary paper benchmark, derived from REPRO_FULL (single source of truth).
137 unmodified lines13813914014114214314414514614714811 unmodified lines1601611621631641651661671681691701 unmodified line17217317417517617717817912 unmodified lines192193194195196197198199494 unmodified lines69469569669769869970070170270310 unmodified lines71471571671771871972072111 unmodified lines73373473573673773885 unmodified lines82482582682782882983019 unmodified lines850851852853854855856857858859860163 unmodified lines10241025102610271028102910301031103210331034103510361037103810391040104110421043104445 unmodified lines1090109110921093109410951096195 unmodified lines12921293129412951296137 unmodified lines"benchmark": "ForenSynths GAN/low-level test (11 of the paper's 19 models; from Wang et al.)","metric": "AP (Table 2) and acc@0.5 (Table 3); paper also reports best-threshold acc","paper": "\u2014","ours": "SynthScope mAP=97.22 / acc=88.28 \u00b7 official mAP=96.95","ours_synthscope": "mAP=97.22 / acc=88.28","ours_official": "mAP=96.95","status": "reference","note": "SynthScope ForenSynths-8 mAP 97.22 (official-weights-in-SynthScope 96.95); ForenSynths-13 92.99 (official 93.14). SynthScope-trained head matches the official fc_weights.pth."},{"benchmark": "UniversalFakeDetect diffusion/autoregressive test (the other 8 of the 19 models)",11 unmodified lines"benchmark": "ForenSynths test set (CVPR paper Table 2 = 11 generators; released repo set = 13)","metric": "AP and acc@0.5","paper": "map=90.8","ours": "SynthScope mAP=94.42 / acc=76.36 \u00b7 official mAP=92.67","ours_synthscope": "mAP=94.42 / acc=76.36","ours_official": "mAP=92.67","status": "reproduced","note": "SynthScope ForenSynths-13 mAP 91.05 \u2248 official-vendored 91.15; SynthScope FS-8 94.42 \u2265 official 92.67. Matches the paper's Blur+JPEG(0.5) headline ~90.8."}],"co_spy": [1 unmodified line"benchmark": "Co-Spy-Bench","metric": "AP","paper": "map=96.02 / acc=87.06","ours": "SynthScope mAP=96.6 / acc=89.9 \u00b7 official mAP=86.65 / acc=83.88","ours_synthscope": "mAP=96.6 / acc=89.9","ours_official": "mAP=86.65 / acc=83.88","status": "reproduced","note": "Reproduced and BEATS official-weights-in-SynthScope (86.65). Earlier SynthScope checkpoint (72.81) was below due to a deleted-reals/wrong-flickr-source data bug; after the full-SD-v1.4 retrain it matches paper 96.0."12 unmodified lines"benchmark": "GenImage","metric": "AP","paper": "\u2014","ours": "SynthScope mAP=90.59 / acc=75.91 \u00b7 official mAP=92.41","ours_synthscope": "mAP=90.59 / acc=75.91","ours_official": "mAP=92.41","status": "reference","note": "SynthScope retrain (90.59) below official-weights-in-SynthScope (92.41) by ~1.8 mAP, concentrated on non-SD generators adm/biggan/vqdm (fake_acc collapses: official wts adm fake_acc 9.6, biggan 22.3). The SD-v1.4-trained Co-Spy generalizes weakly to GAN/ADM generators; this is a cross-generator transfer gap, not a code defect."494 unmodified lines"benchmark": "GANs dataset \u2014 8 GANs (4-class ProGAN supervision) \u2014 HEADLINE","metric": "acc and AP (mean ACCM / APM)","paper": "map=99.7 / acc=98.4","ours": "mAP=99.7 / acc=98.39 (official wts)","ours_synthscope": "","ours_official": "mAP=99.7 / acc=98.39","status": "official","note": "SynthScope class + official weights = 99.70 mAP / 98.39 acc \u2014 EXACT match to paper 99.7/98.4. Loading verified clean (num_vit_adapter=3)."},{10 unmodified lines"benchmark": "Diffusion-model (DMs) dataset \u2014 10 subsets (4-class ProGAN supervision)","metric": "acc and AP (mean ACCM / APM)","paper": "map=98.8 / acc=95.0","ours": "mAP=98.6 / acc=93.72 (official wts)","ours_synthscope": "","ours_official": "mAP=98.6 / acc=93.72","status": "official","note": "SynthScope evaluated the 8 UniversalFakeDetect DM subsets (dalle, glide x3, guided, ldm x3) = 98.60 mAP / 93.72 acc. The paper's 10-subset table additionally includes PNDM + VQ-Diffusion (both 99.8-100 AP in the paper), which SynthScope's UFD-8 run omits, so our 8-subset mean is not directly comparable to the paper's 10-subset 98.8."11 unmodified lines"note": "98.36 mAcc (real 97.62, fake 99.10, AUROC 99.88, AP 99.86) on the full official val, every subset within 0.10 pt of Table 1; the official ltf_ref code and SynthScope agree exactly on the 33k GenImage_full/test set (98.38). Corrected tiling. Tags ltf_synthscope_genimage_val100k, ltf_official_genimage8."}],"moejepa": [{"benchmark": "SID-Set (test, 3-way, Table 1)",85 unmodified lines"ours_synthscope": "mAP=93.83 / acc=84.09 / AUROC=94.94","ours_official": "mAP=94.22 / acc=92.3","status": "official","note": "Our npr_official_forensynths.json logs the full 13-gen mean 79.45 mAP; the 8-GAN subset {progan,cyclegan,biggan,gaugan,stargan,stylegan,stylegan2,deepfake} computes to 92.81 mAP / 91.83 acc."},{"benchmark": "Table 2 \u2014 GANGen-Detection / Self-Synthesis 9 GANs",19 unmodified lines"benchmark": "Table 4 \u2014 UniversalFakeDetect / Ojha","metric": "AP (and acc@0.5)","paper": "acc=95.2","ours": "SynthScope mAP=97.49 / acc=88.91 / AUROC=97.23 \u00b7 official mAP=96.69 / acc=93.94","ours_synthscope": "mAP=97.49 / acc=88.91 / AUROC=97.23","ours_official": "mAP=96.69 / acc=93.94","status": "official","note": "n/a \u2014 96.69 mAP / 93.94 acc, close to paper acc 95.2."},{"benchmark": "Table 5 \u2014 Diffusion1kStep / Self-Synthesis Diffusion (1000 steps)",163 unmodified lines"benchmark": "UniversalFakeDetect (UFD)","metric": "AP","paper": "map=98.0","ours": "SynthScope mAP=98.99 / acc=91.96 / AUROC=98.92 \u00b7 official mAP=99.34 / acc=94.16","ours_synthscope": "mAP=98.99 / acc=91.96 / AUROC=98.92","ours_official": "mAP=99.34 / acc=94.16","status": "reproduced","note": "Reproduced (official weights 99.34; the official recipe trained in SynthScope, step 500: 98.99) >= paper 98.0."},{"benchmark": "ForenSynths (CNNDetection test)","metric": "AP","paper": "\u2014","ours": "SynthScope mAP=97.41 / acc=85.89 / AUROC=97.63 \u00b7 official mAP=96.25 / acc=83.73","ours_synthscope": "mAP=97.41 / acc=85.89 / AUROC=97.63","ours_official": "mAP=96.25 / acc=83.73","status": "reference","note": "Not a paper number. The official recipe trained in SynthScope (step 500) gives FS-8 97.41 mAP, above the official checkpoint (96.41 on the same evaluation); the earlier 89.03 retrain overshot the early transfer peak."},{"benchmark": "AIGIBench (AIGI)",45 unmodified lines"ours_synthscope": "mAP=92.7 / acc=86.87 / AUROC=95.9","ours_official": "","status": "reproduced","note": "REPRODUCED: SynthScope mAP 92.70 vs paper Main-task avg-acc 93.01 (the paper's headline; near-exact). SynthScope's accuracy (86.87) is the uncalibrated argmax accuracy and the SynthScope test set spans 8 generators (cogvideo/mora/ms/musev/pika/svd/t2vz/vc2 from bitmind/GenVidBench) rather than the paper's exact 4-gen Main subset, so the means are not 1:1 comparable, but mAP/mAUROC reproduce the\u2026"},{"benchmark": "C) DeMamba one-to-many generalization (Table 5)",195 unmodified lines"status": "missing","note": "Not trained on ProGAN yet. The earlier 61.71 / 57.91 was the SD v1.4-trained model tested on ForenSynths, not this benchmark."}]}137 unmodified lines13813914014114214314414514614714811 unmodified lines1601611621631641651661671681691701 unmodified line17217317417517617717817912 unmodified lines192193194195196197198199494 unmodified lines69469569669769869970070170270310 unmodified lines71471571671771871972072111 unmodified lines73373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989085 unmodified lines97697797897998098198219 unmodified lines10021003100410051006100710081009101010111012163 unmodified lines11761177117811791180118111821183118411851186118711881189119011911192119311941195119645 unmodified lines1242124312441245124612471248195 unmodified lines1444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600137 unmodified lines"benchmark": "ForenSynths GAN/low-level test (11 of the paper's 19 models; from Wang et al.)","metric": "AP (Table 2) and acc@0.5 (Table 3); paper also reports best-threshold acc","paper": "\u2014","ours": "SynthScope mAP=92.83 / acc=85.39 \u00b7 official mAP=92.33 / acc=80.58","ours_synthscope": "mAP=92.83 / acc=85.39","ours_official": "mAP=92.33 / acc=80.58","status": "reference","note": "On the 11 ForenSynths generators: SynthScope 92.83 mAP (acc 85.39), official weights 92.33 (acc 80.58), recomputed from the per-generator entries. SynthScope ForenSynths-8 mAP 97.22 (official-weights-in-SynthScope 96.95); ForenSynths-13 92.99 (official 93.14). SynthScope-trained head matches the official fc_weights.pth."},{"benchmark": "UniversalFakeDetect diffusion/autoregressive test (the other 8 of the 19 models)",11 unmodified lines"benchmark": "ForenSynths test set (CVPR paper Table 2 = 11 generators; released repo set = 13)","metric": "AP and acc@0.5","paper": "map=90.8","ours": "SynthScope mAP=90.44 / acc=74.57 \u00b7 official mAP=90.77 / acc=75.82","ours_synthscope": "mAP=90.44 / acc=74.57","ours_official": "mAP=90.77 / acc=75.82","status": "reproduced","note": "On the paper's 11 generators: SynthScope 90.44 mAP (acc 74.57), official Blur+JPEG(0.5) weights 90.77 (acc 75.82), recomputed from the per-generator entries. SynthScope ForenSynths-13 mAP 91.05 \u2248 official-vendored 91.15; SynthScope FS-8 94.42 \u2265 official 92.67. Matches the paper's Blur+JPEG(0.5) headline ~90.8."}],"co_spy": [1 unmodified line"benchmark": "Co-Spy-Bench","metric": "AP","paper": "map=96.02 / acc=87.06","ours": "SynthScope mAP=96.7 / acc=90.28 \u00b7 official mAP=86.65 / acc=83.88","ours_synthscope": "mAP=96.7 / acc=90.28","ours_official": "mAP=86.65 / acc=83.88","status": "reproduced","note": "Reproduced and BEATS official-weights-in-SynthScope (86.65). Earlier SynthScope checkpoint (72.81) was below due to a deleted-reals/wrong-flickr-source data bug; after the full-SD-v1.4 retrain it matches paper 96.0."12 unmodified lines"benchmark": "GenImage","metric": "AP","paper": "\u2014","ours": "SynthScope mAP=90.59 / acc=76.23 \u00b7 official mAP=92.41","ours_synthscope": "mAP=90.59 / acc=76.23","ours_official": "mAP=92.41","status": "reference","note": "SynthScope retrain (90.59) below official-weights-in-SynthScope (92.41) by ~1.8 mAP, concentrated on non-SD generators adm/biggan/vqdm (fake_acc collapses: official wts adm fake_acc 9.6, biggan 22.3). The SD-v1.4-trained Co-Spy generalizes weakly to GAN/ADM generators; this is a cross-generator transfer gap, not a code defect."494 unmodified lines"benchmark": "GANs dataset \u2014 8 GANs (4-class ProGAN supervision) \u2014 HEADLINE","metric": "acc and AP (mean ACCM / APM)","paper": "map=99.7 / acc=98.4","ours": "SynthScope mAP=99.56 / acc=97.29 / AUROC=99.42 \u00b7 official mAP=99.7 / acc=98.39","ours_synthscope": "mAP=99.56 / acc=97.29 / AUROC=99.42","ours_official": "mAP=99.7 / acc=98.39","status": "reproduced","note": "SynthScope class + official weights = 99.70 mAP / 98.39 acc \u2014 EXACT match to paper 99.7/98.4. Loading verified clean (num_vit_adapter=3)."},{10 unmodified lines"benchmark": "Diffusion-model (DMs) dataset \u2014 10 subsets (4-class ProGAN supervision)","metric": "acc and AP (mean ACCM / APM)","paper": "map=98.8 / acc=95.0","ours": "SynthScope mAP=98.88 / acc=92.09 / AUROC=98.67 \u00b7 official mAP=98.6 / acc=93.72","ours_synthscope": "mAP=98.88 / acc=92.09 / AUROC=98.67","ours_official": "mAP=98.6 / acc=93.72","status": "official","note": "SynthScope evaluated the 8 UniversalFakeDetect DM subsets (dalle, glide x3, guided, ldm x3) = 98.60 mAP / 93.72 acc. The paper's 10-subset table additionally includes PNDM + VQ-Diffusion (both 99.8-100 AP in the paper), which SynthScope's UFD-8 run omits, so our 8-subset mean is not directly comparable to the paper's 10-subset 98.8."11 unmodified lines"note": "98.36 mAcc (real 97.62, fake 99.10, AUROC 99.88, AP 99.86) on the full official val, every subset within 0.10 pt of Table 1; the official ltf_ref code and SynthScope agree exactly on the 33k GenImage_full/test set (98.38). Corrected tiling. Tags ltf_synthscope_genimage_val100k, ltf_official_genimage8."}],"mirror": [{"benchmark": "AIGCDetectBenchmark (17 subsets, full data)","metric": "balanced accuracy at 0.5 (mean over subsets)","paper": "acc=97.3","ours": "mAP=99.49 / acc=97.39 / AUROC=99.51 (official wts)","ours_synthscope": "","ours_official": "mAP=99.49 / acc=97.39 / AUROC=99.51","status": "official","note": "Released checkpoint through SynthScope: 97.39 (mAP 99.49, AUROC 99.51), +0.09. Weakest: cyclegan 83.65, whichfaceisreal 87.10, stargan 93.67 (tag mirror_aigcdetect, job 279555)."},{"benchmark": "GenImage (8 subsets, full val)","metric": "balanced accuracy at 0.5 (mean over subsets)","paper": "acc=99.8","ours": "mAP=100.0 / acc=99.78 / AUROC=100.0 (official wts)","ours_synthscope": "","ours_official": "mAP=100.0 / acc=99.78 / AUROC=100.0","status": "official","note": "99.78 (mAP 100.00, AUROC 100.00) on the full val split (100k images), -0.02; the test release gives 99.79 (tags mirror_genimage_val100k, mirror_genimage_full, jobs 279552, 279553)."},{"benchmark": "UnivFakeDetect (official code's 13-subset UnivFD list)","metric": "balanced accuracy at 0.5 (mean over subsets)","paper": "acc=92.4","ours": "mAP=97.04 / acc=92.44 / AUROC=97.24 (official wts)","ours_synthscope": "","ours_official": "mAP=97.04 / acc=92.44 / AUROC=97.24","status": "official","note": "92.44 (mAP 97.04, AUROC 97.24) on the official code's UnivFD list (13 subsets), +0.04. The paper's Table 7 list (12 subsets, no deepfake) gives 93.81 and the official ojha list (12) gives 95.03. Weak: seeingdark 61.39, deepfake 76.09 (tags mirror_ufd_diffusion8, mirror_ufd_cnndet5, job 279550)."},{"benchmark": "Synthbuster (9 generators vs 5000 MSCOCO reals)","metric": "balanced accuracy at 0.5 (mean over subsets)","paper": "acc=99.2","ours": "mAP=99.92 / acc=99.28 / AUROC=99.96 (official wts)","ours_synthscope": "","ours_official": "mAP=99.92 / acc=99.28 / AUROC=99.96","status": "official","note": "99.28 (mAP 99.92, AUROC 99.96) with the official extension-based JPEG-q96 rule, +0.08 (firefly is 1000 JPEGs named .png: 94.29 under the official rule, 95.64 under the served decoded-format rule, which gives a mean of 99.43). Fakes-only set scored against the MSCOCO val2017 reals as in the paper (tags mirror_synthbuster_coco, mirror_synthbuster_coco_firefly_extrule, job 279527). The unmodified\u2026"},{"benchmark": "EvalGEN (5 generators vs MSCOCO reals)","metric": "balanced accuracy at 0.5 (mean over subsets)","paper": "acc=99.8","ours": "mAP=100.0 / acc=99.85 / AUROC=99.99 (official wts)","ours_synthscope": "","ours_official": "mAP=100.0 / acc=99.85 / AUROC=99.99","status": "official","note": "99.85 (mAP 100.00, AUROC 99.99), +0.05 (tag mirror_evalgen, job 279551)."},{"benchmark": "DRCT-2M","metric": "balanced accuracy at 0.5 (mean over subsets)","paper": "acc=93.0","ours": "","ours_synthscope": "","ours_official": "","status": "missing","note": "DRCT-2M is not in SynthScope."},{"benchmark": "Chameleon","metric": "balanced accuracy at 0.5 (mean over subsets)","paper": "acc=94.6","ours": "","ours_synthscope": "","ours_official": "","status": "missing","note": "Chameleon is available by request only; not held."},{"benchmark": "SynthWildX (3 generators, images on X)","metric": "balanced accuracy at 0.5 (mean over subsets)","paper": "acc=95.1","ours": "mAP=97.71 / acc=95.08 / AUROC=98.33 (official wts)","ours_synthscope": "","ours_official": "mAP=97.71 / acc=95.08 / AUROC=98.33","status": "official","note": "95.08 (mAP 97.71, AUROC 98.33), -0.02, on the 1713 of 2000 images still online. The unmodified official inference.py gives the same B.Acc on every subset (dalle3 97.44, firefly 90.21, midjourney_v5 97.59; tag mirror_synthwildx, job 279513)."},{"benchmark": "WildRF (Facebook, Reddit, Twitter)","metric": "balanced accuracy at 0.5 (mean over subsets)","paper": "acc=97.8","ours": "mAP=99.8 / acc=97.88 / AUROC=99.74 (official wts)","ours_synthscope": "","ours_official": "mAP=99.8 / acc=97.88 / AUROC=99.74","status": "official","note": "97.88 (mAP 99.80, AUROC 99.74), +0.08, on the official file set (without the 262 .jfif files its loader skips); all files 97.86. The official inference.py gives the same B.Acc on every subset (facebook 97.50, reddit 97.53, twitter 98.60; tags mirror_wildrf_nojfif, mirror_wildrf, job 279513)."},{"benchmark": "AIGIBench (SocialRF + CommunityAI)","metric": "balanced accuracy at 0.5 (mean over subsets)","paper": "acc=94.9","ours": "mAP=98.06 / acc=94.98 / AUROC=98.66 (official wts)","ours_synthscope": "","ours_official": "mAP=98.06 / acc=94.98 / AUROC=98.66","status": "official","note": "94.98 (mAP 98.06, AUROC 98.66), +0.08 (SocialRF 93.08, CommunityAI 96.89; tag mirror_aigibench, job 279554)."},{"benchmark": "CO-SPY in-the-wild (fake accuracy)","metric": "fake accuracy","paper": "acc=97.4","ours": "","ours_synthscope": "","ours_official": "","status": "missing","note": "The in-the-wild part of CO-SPY is not held (SynthScope's cospy loader is the synthetic Co-Spy-Bench)."},{"benchmark": "RRDataset (pooled folder)","metric": "balanced accuracy at 0.5 (pooled folder)","paper": "acc=88.3","ours": "mAP=93.86 / acc=86.91 / AUROC=91.98 (official wts)","ours_synthscope": "","ours_official": "mAP=93.86 / acc=86.91 / AUROC=91.98","status": "below","note": "86.91 (mAP 93.86 and AUROC 91.98 are means of the 3 scenarios), -1.39: original 98.06, transfer 88.38, redigital 74.30 (fake acc 53.20). Pooled B.Acc and the 3-scenario mean agree because the per-scenario class counts are nearly equal (8500/8499/8500). The causes are unresolved: a dataset copy or split difference, or a checkpoint difference (tag mirror_rrdataset, job 279554)."},{"benchmark": "BFree-Online (viral images still online)","metric": "balanced accuracy at 0.5 (pooled folder)","paper": "acc=97.6","ours": "mAP=99.78 / acc=97.4 / AUROC=99.5 (official wts)","ours_synthscope": "","ours_official": "mAP=99.78 / acc=97.4 / AUROC=99.5","status": "official","note": "97.40 (mAP 99.78, AUROC 99.50), -0.20, on the 807 of about 1400 images still online (real acc 98.14, fake acc 96.65; tag mirror_bfree_online, job 279513). The unmodified official inference.py (job 279857; 279825 was a cancelled duplicate) gives the same numbers: B.Acc 97.40 (real 98.14, fake 96.65, AP 99.78, AUROC 99.50)."},{"benchmark": "Human-AIGI (fake accuracy)","metric": "fake accuracy","paper": "\u2014","ours": "","ours_synthscope": "","ours_official": "","status": "missing","note": "Human-AIGI is not in SynthScope (not released); the README table has no value for it."},{"benchmark": "RealChain (7 generators, full data)","metric": "balanced accuracy at 0.5 (mean over subsets)","paper": "\u2014","ours": "mAP=91.76 / acc=81.71 / AUROC=89.96 (official wts)","ours_synthscope": "","ours_official": "mAP=91.76 / acc=81.71 / AUROC=89.96","status": "reference","note": "81.71 (mAP 91.76, AUROC 89.96); Flux1 96.60, Hunyuan3 90.90, QwenImage 90.50, SDv3.5 80.05, NanoBanana 78.75, Seedream4 69.25, i2i 65.90 (tag mirror_realchain, job 279513)."}],"moejepa": [{"benchmark": "SID-Set (test, 3-way, Table 1)",85 unmodified lines"ours_synthscope": "mAP=93.83 / acc=84.09 / AUROC=94.94","ours_official": "mAP=94.22 / acc=92.3","status": "official","note": "NPR.pth (the served npr.pth) on the 8 GANs: 94.22 mAP / 92.30 acc (job 265808). The earlier registry default, model_epoch_last_3090.pth, gives 92.81 / 91.83 (npr_official3090_forensynths8)."},{"benchmark": "Table 2 \u2014 GANGen-Detection / Self-Synthesis 9 GANs",19 unmodified lines"benchmark": "Table 4 \u2014 UniversalFakeDetect / Ojha","metric": "AP (and acc@0.5)","paper": "acc=95.2","ours": "SynthScope mAP=97.49 / acc=88.91 / AUROC=97.23 \u00b7 official mAP=97.16 / acc=94.57","ours_synthscope": "mAP=97.49 / acc=88.91 / AUROC=97.23","ours_official": "mAP=97.16 / acc=94.57","status": "official","note": "n/a \u2014 NPR.pth (the served npr.pth) gives 97.16 mAP / 94.57 acc, close to paper acc 95.2; model_epoch_last_3090.pth gives 96.69 / 93.94 (npr_official_ufd, npr_official3090_ufd)."},{"benchmark": "Table 5 \u2014 Diffusion1kStep / Self-Synthesis Diffusion (1000 steps)",163 unmodified lines"benchmark": "UniversalFakeDetect (UFD)","metric": "AP","paper": "map=98.0","ours": "SynthScope mAP=98.99 / acc=91.96 / AUROC=98.92 \u00b7 official mAP=99.35 / acc=94.19 / AUROC=99.31","ours_synthscope": "mAP=98.99 / acc=91.96 / AUROC=98.92","ours_official": "mAP=99.35 / acc=94.19 / AUROC=99.31","status": "reproduced","note": "Reproduced: official weights 99.35 mAP / 94.19 acc (fixed load; = official code 99.34 / 94.16), official recipe trained in SynthScope (step 500) 98.99 / 91.96, both >= paper 98.0 mAP. Correction 2026-11-09: the earlier 99.17 / 83.57 for the official weights came from a load that dropped the LoRA."},{"benchmark": "ForenSynths (CNNDetection test)","metric": "AP","paper": "\u2014","ours": "SynthScope mAP=97.41 / acc=85.89 / AUROC=97.63 \u00b7 official mAP=97.83 / acc=89.17 / AUROC=98.14","ours_synthscope": "mAP=97.41 / acc=85.89 / AUROC=97.63","ours_official": "mAP=97.83 / acc=89.17 / AUROC=98.14","status": "reference","note": "Not a paper number. Against the real official weights (fixed load) the step-500 SynthScope recipe is slightly below: FS-8 97.41 mAP / 85.89 acc vs 97.83 / 89.17. Correction 2026-11-09: the earlier 96.41 / 76.34 for the official weights came from a load that dropped the LoRA, so 'matches or exceeds the official checkpoint' no longer holds."},{"benchmark": "AIGIBench (AIGI)",45 unmodified lines"ours_synthscope": "mAP=92.7 / acc=86.87 / AUROC=95.9","ours_official": "","status": "reproduced","note": "REPRODUCED on accuracy for the paper's 4 Main-task test generators: mean per-generator balanced accuracy 93.33 (MuseV 94.33, SVD 94.00, CogVideo 94.33, Mora 90.67; from the per_generator entries of restrav_genvidbench.json) vs the paper's Main-task average accuracy 93.01. Over all 8 generators: 92.70 mAP / 86.87 acc (mAP is not the paper's metric). SynthScope's accuracy (86.87) is the\u2026"},{"benchmark": "C) DeMamba one-to-many generalization (Table 5)",195 unmodified lines"status": "missing","note": "Not trained on ProGAN yet. The earlier 61.71 / 57.91 was the SD v1.4-trained model tested on ForenSynths, not this benchmark."}],"vina": [{"benchmark": "ForenSynths (CNNDetection test, the paper's 11 subsets)","metric": "pooled accuracy per subset at 0.5 (the official code's metric), mean over subsets; AP mean over subsets","paper": "acc=86.99 / map=97.78","ours": "mAP=97.8 / acc=86.93 / AUROC=97.44 (official wts)","ours_synthscope": "","ours_official": "mAP=97.8 / acc=86.93 / AUROC=97.44","status": "official","note": "86.93 ACC / 97.80 AP on the official extension set (90,310 files; the 19 SAN .bmp reals are not listed by the official CSV builder), -0.06 / +0.02; 10 of 11 subsets equal, SAN 83.05 / 95.44 vs 83.79 / 95.16. A reconstruction that keeps the .bmp reals as black images gives 86.99 / 97.77 (SAN equal); that is inferred, not the headline. The balanced mean on those files is 86.98 / 97.80 (bacc field\u2026"},{"benchmark": "UniversalFakeDetect (LDM, 8 sets)","metric": "pooled accuracy per subset at 0.5 (the official code's metric), mean over subsets; AP mean over subsets","paper": "acc=94.84 / map=99.01","ours": "mAP=99.01 / acc=94.84 / AUROC=98.71 (official wts)","ours_synthscope": "","ours_official": "mAP=99.01 / acc=94.84 / AUROC=98.71","status": "official","note": "94.84 ACC / 99.01 AP, equal in all 8 subsets (ldm_200 AP 100.00 vs the paper's 99.99, within 0.01). The unmodified official eval.py gives the same on our files (16,000 files, max per-file diff 4.9e-05, 0 flips) (tag vina_ufd_diffusion8_offmetric, jobs 281654, 66627)."},{"benchmark": "DiTFake (FLUX.1-schnell, PixArt-Sigma, SD3)","metric": "pooled accuracy per subset at 0.5 (the official code's metric), mean over subsets; AP mean over subsets","paper": "acc=97.98 / map=99.95","ours": "mAP=99.95 / acc=97.98 / AUROC=99.94 (official wts)","ours_synthscope": "","ours_official": "mAP=99.95 / acc=97.98 / AUROC=99.94","status": "official","note": "97.98 ACC / 99.95 AP, equal in all 3 subsets (97.11, 100.00, 96.84) (tag vina_ditfake_offmetric, job 281654)."},{"benchmark": "ARForensics (6 subsets shared with the paper)","metric": "pooled accuracy per subset at 0.5 (the official code's metric), mean over subsets; AP mean over subsets","paper": "acc=96.36 / map=99.54","ours": "mAP=99.54 / acc=96.36 / AUROC=99.38 (official wts)","ours_synthscope": "","ours_official": "mAP=99.54 / acc=96.36 / AUROC=99.38","status": "official","note": "Paper value derived: mean of the six shared subsets of Table 15 = 96.36 / 99.54 (the paper's 7-subset mean with MAR is 96.74 / 99.59). 96.36 ACC / 99.54 AP over the six shared subsets, every subset equal to the paper's. Our copy has 7 subsets: those six plus Switti (99.95 / 100.00) and no MAR; bench_eval's mean over our 7 rows (96.88 / 99.60) is not comparable with the paper's 96.74 / 99.59\u2026"},{"benchmark": "GenImage (8 subsets, full val split, 100,000 images)","metric": "pooled accuracy per subset at 0.5 (the official code's metric), mean over subsets; AP mean over subsets","paper": "acc=94.74","ours": "mAP=99.05 / acc=94.74 / AUROC=98.72 (official wts)","ours_synthscope": "","ours_official": "mAP=99.05 / acc=94.74 / AUROC=98.72","status": "official","note": "94.74 ACC / 99.05 AP, equal in all 8 subsets (Midjourney 96.11, SD v1.4 99.89, SD v1.5 99.85, ADM 76.23, GLIDE 94.65, Wukong 99.83, VQDM 94.98, BigGAN 96.38) (tags vina_genimage_val100k_offmetric, vina_genimage_val100k; DAS6 job 66630)."},{"benchmark": "GenImage test bundle (1500 per class and subset)","metric": "pooled accuracy per subset at 0.5 and AP, mean over the 8 subsets, on a 1500-per-class subsample","paper": "acc=94.74","ours": "mAP=98.45 / acc=93.29 / AUROC=97.98 (official wts)","ours_synthscope": "","ours_official": "mAP=98.45 / acc=93.29 / AUROC=97.98","status": "reference","note": "93.29 ACC / 98.45 AP on the 33,000-image test bundle, a subsample (SD v1.4 has 6000), not the paper's split: ADM 70.10, GLIDE 92.73, VQDM 92.07, BigGAN 95.37, the others within 0.4 of the full split. The full split is the row above (tags vina_genimage_full_offmetric, vina_genimage_full; job 281831)."},{"benchmark": "GenVideo-Val (10 generators, overall)","metric": "overall pooled accuracy and AP at 0.5 over all reals and all fakes (the official code's metric for GenVideo-Val)","paper": "acc=96.9 / map=99.26","ours": "mAP=99.26 / acc=96.86 / AUROC=99.14 (official wts)","ours_synthscope": "","ours_official": "mAP=99.26 / acc=96.86 / AUROC=99.14","status": "official","note": "96.86 ACC / 99.26 AP overall (vina_video, ffmpeg 2 fps, central frame); all 10 generators equal Table 17 in recall, F1 and AP; mean recall / F1 / AP 93.20 / 81.91 / 92.83 (the paper's printed mean F1 81.52 is not the mean of its own column, 81.92). Official eval.py on the same videos: max per-file diff 4.5e-05, 0 flips (tags vina_video_genvideo_offmetric, vina_video_genvideo; jobs 281656, 281662)."},{"benchmark": "SynthWildX (dalle3 / firefly / midjourney_v5)","metric": "pooled accuracy per subset at 0.5 (the official code's metric), mean over subsets; AP mean over subsets","paper": "acc=92.8","ours": "mAP=96.36 / acc=91.82 / AUROC=97.46 (official wts)","ours_synthscope": "","ours_official": "mAP=96.36 / acc=91.82 / AUROC=97.46","status": "below","note": "Paper value derived: mean of Table 2's printed 94.5 / 89.2 / 94.7 (the paper prints no mean). 91.82 ACC / 96.36 AP (bAcc 91.76): dalle3 92.80 (-1.70), firefly 89.50 (+0.30), midjourney_v5 93.16 (-1.54). Below the paper. The unmodified official eval.py gives the same per-file scores on our files (1,713 files, max diff 1.7e-05, 0 flips), so the gap is data (our copy: 413 reals and 1,300 fakes\u2026"},{"benchmark": "WildRF (facebook / reddit / twitter)","metric": "pooled accuracy per subset at 0.5 (the official code's metric), mean over subsets; AP mean over subsets","paper": "acc=97.13","ours": "mAP=99.41 / acc=96.12 / AUROC=99.25 (official wts)","ours_synthscope": "","ours_official": "mAP=99.41 / acc=96.12 / AUROC=99.25","status": "below","note": "Paper value derived: mean of Table 2's printed 96.6 / 96.7 / 98.1 (the paper prints no mean). 96.12 ACC / 99.41 AP (bAcc 95.94): facebook 96.25 (-0.35), reddit 94.73 (-1.97), twitter 97.39 (-0.71). Below the paper. The unmodified official eval.py gives the same per-file scores on our files (2,241 files, max diff 1.5e-05, 0 flips), so the gap is data (262 .jfif files are not in the official CSV\u2026"},{"benchmark": "AIGIBench (SocialRF / CommunityAI)","metric": "pooled accuracy per subset at 0.5 (the official code's metric), mean over subsets; AP mean over subsets","paper": "acc=92.4","ours": "mAP=97.33 / acc=92.72 / AUROC=97.6 (official wts)","ours_synthscope": "","ours_official": "mAP=97.33 / acc=92.72 / AUROC=97.6","status": "reference","note": "Paper value derived: mean of Table 2's printed 90.9 / 93.9 (the paper prints no mean). 92.72 ACC / 97.33 AP: SocialRF 89.72 (-1.18), CommunityAI 95.73 (+1.83). The subsets differ from the paper in both directions. The unmodified official eval.py gives the same per-file scores on our files (18,000 files, max diff 5.8e-05, 0 flips), so the difference is the data release or file list, not code (tag\u2026"},{"benchmark": "RRDataset (mean of original / transfer / redigital)","metric": "pooled accuracy per subset at 0.5 (the official code's metric), mean over subsets; AP mean over subsets","paper": "acc=82.7","ours": "mAP=92.77 / acc=82.89 / AUROC=91.69 (official wts)","ours_synthscope": "","ours_official": "mAP=92.77 / acc=82.89 / AUROC=91.69","status": "official","note": "82.89 ACC / 92.77 AP (bAcc 82.90), +0.19: original 94.08, transfer 84.87, redigital 69.73 (fake accuracy 41.72) (tag vina_rrdataset_offmetric, job 281657)."},{"benchmark": "Chameleon","metric": "pooled accuracy per subset at 0.5 (the official code's metric), mean over subsets; AP mean over subsets","paper": "acc=91.4","ours": "","ours_synthscope": "","ours_official": "","status": "missing","note": "Not run: Chameleon is available by request only."},{"benchmark": "Magic Videos","metric": "official metric (not run)","paper": "acc=77.1 / map=95.1","ours": "","ours_synthscope": "","ours_official": "","status": "missing","note": "Not run: no data or loader in SynthScope."},{"benchmark": "GenBuster++","metric": "official metric (not run)","paper": "acc=90.1","ours": "","ours_synthscope": "","ours_official": "","status": "missing","note": "Not run: no data or loader in SynthScope."},{"benchmark": "DeepTraceReward","metric": "official metric (not run)","paper": "acc=97.4","ours": "","ours_synthscope": "","ours_official": "","status": "missing","note": "Not run: no data or loader in SynthScope."}]}
.github/workflows/ci.yml+2
.gitignore+3
AGENTS.md+79-4
CLAUDE.mdAdded+1
LEADERBOARD.md+19-19
LICENSES.md+18-14
accelerate_config_ddp.yamlAdded+15
benchmark/README.md+8-4
benchmark/aggregate_results.py+2-1
benchmark/bench_eval_video.py+2-2
benchmark/evaluate.py+3-2
benchmark/generator_bench.py+3-2
benchmark/generator_runs/flux2_klein_4b/RESULTS.md+8-8
benchmark/generator_runs/flux2_klein_4b/results.json+17-17
benchmark/generator_runs/flux2_klein_9b/RESULTS.md+8-8
benchmark/generator_runs/flux2_klein_9b/results.json+17-17
benchmark/generator_runs/qwen_image_2_1/RESULTS.md+4-4
benchmark/generator_runs/qwen_image_2_1/results.json+17-17
benchmark/leaderboard.py+11-7
benchmark/seed_reference_results.py+181-55
benchmark/submissions/aide.json+48-7
benchmark/submissions/clip.json+48-7
benchmark/submissions/cnn.json+48-7
benchmark/submissions/co_spy_official.json+48-7
benchmark/submissions/co_spy_scratch.json+49-8
benchmark/submissions/d3.json+2-2
benchmark/submissions/dinov2.json+48-7
benchmark/submissions/fat_former.json+46-5
benchmark/submissions/npr.json+48-7
benchmark/submissions/restrav.json+2-2
benchmark/submissions/safe.json+48-7
benchmark/submissions/spai_official.json+14-8
benchmark/submissions/spai_scratch.json+13-7
benchmark/submissions/split.json+1-1
benchmark/submissions/stall.json+2-2
benchmark/submissions/vib_net.json+13-7
conf/model/image/fat_former.yaml+9-5
conf/model/image/mirror.yamlAdded+19
conf/model/image/vina.yamlAdded+21
conf/trainer/image/fat_former.yaml+20-6
docs/BENCHMARKS.md+14
docs/CAPABILITIES.md+4-1
docs/WILD_BENCHMARKS.md+10-2
experiments/image/fat_former.sh+43-11
interface/backend/app.py+9-2
interface/backend/build_repro_full.py+69-10
interface/backend/engine.py+32
interface/backend/media.py+81-5
interface/backend/registry.py+98-13
interface/backend/repro_full.json+332-28