fakeradar accurate-v0
The accurate tier of fakeradar: the fast tier's gradient-field and frequency branches plus a frozen CLIP ViT-B/16 branch, fused by a learned gate into a temperature-calibrated P(AI). About 13M trainable parameters plus the 86M frozen CLIP backbone, which is stored in the checkpoint (about 390 MB). For a small, fully offline model see fakeradar-fast.
Read this first
- Trained on one generator. All training images are GenImage Stable Diffusion v1.4 against ImageNet photos. Near-perfect on the Stable Diffusion family; weaker on other generators, especially ADM. Never trained or tested on 2025-2026 commercial generators.
- More robust than the fast tier, not more accurate than strong public detectors. It holds up much better after JPEG, resizing and blur (tables below), but the public Community Forensics model, trained on thousands of generators, scores clearly higher on the same test images.
- Do not trust the fixed 0.5 cut on new data. In a spot check, two of
three DALL-E 2 samples scored as real and one of three real Unsplash
photographs scored 0.997. Set your own threshold on real photos from your
setting with
fakeradar calibrate-fpr(a bounded rate of real photos flagged; method audited in the repository's Gate B report). - A probabilistic signal, not proof. Never use it as sole evidence about a person or in legal, journalistic or academic-integrity decisions.
Use
pip install "fakeradar[semantic]" # from the repository until a PyPI release exists
fakeradar scan photo.jpg --tier accurate --pretrained accurate-v0
fakeradar calibrate-fpr real_photos.csv --pretrained accurate-v0 --alpha 0.01
Or download accurate_v0.pt and pass --checkpoint accurate_v0.pt. Loading
builds the CLIP backbone with timm, which downloads its pretrained weights
once before they are replaced by the checkpoint's.
Training
Same as fast-v0: GenImage Stable Diffusion v1.4 (Kaggle copy
vtphatt2/genimage-stable-diffusion-v1-4, CC-BY-NC-SA-4.0), 95,000 images
plus 5,000 held out, compression history equalized (non-JPEG images
JPEG-encoded once at quality 96), 5 epochs, one Kaggle T4. The CLIP backbone
stays frozen. Seed 42 is the released checkpoint; results below cover seeds
42, 43 and 44.
Licence
Weights: CC-BY-NC-SA-4.0 (non-commercial, share-alike), inherited from the
training data. Code: Apache-2.0. CLIP weights: OpenAI CLIP, via timm.
Measured results
AUROC, mean ± sample std over seeds (accurate: 3, fast: 3).
Test: GenImage val split, 1,000 generated images per generator against 2,000
real; robustness on 500 real + 500 generated. Community Forensics is the public
model re-evaluated on the same images, not retrained (not a same-data comparison).
| Test generator | accurate-v0 | fast-v0 | Community Forensics |
|---|---|---|---|
| stable_diffusion_v_1_4 | 1.0000 ± 0.0000 | 0.9995 ± 0.0001 | 1.0000 |
| stable_diffusion_v_1_5 | 0.9999 ± 0.0000 | 0.9994 ± 0.0001 | 0.9999 |
| wukong | 0.9973 ± 0.0003 | 0.9955 ± 0.0004 | 1.0000 |
| VQDM | 0.9094 ± 0.0054 | 0.9257 ± 0.0057 | 1.0000 |
| Midjourney | 0.9724 ± 0.0019 | 0.9233 ± 0.0078 | 0.9888 |
| glide | 0.9340 ± 0.0049 | 0.8932 ± 0.0001 | 1.0000 |
| BigGAN | 0.9240 ± 0.0124 | 0.8977 ± 0.0076 | 0.9795 |
| ADM | 0.7954 ± 0.0031 | 0.8591 ± 0.0229 | 0.9953 |
| Mean of 8 | 0.9416 ± 0.0032 | 0.9367 ± 0.0014 | 0.9954 |
| Condition | accurate-v0 | fast-v0 | Community Forensics |
|---|---|---|---|
| clean | 0.9405 ± 0.0038 | 0.9356 ± 0.0010 | 0.9952 |
| jpeg90 | 0.9331 ± 0.0057 | 0.8858 ± 0.0057 | 0.9793 |
| jpeg70 | 0.9400 ± 0.0011 | 0.8677 ± 0.0043 | 0.9473 |
| jpeg50 | 0.9093 ± 0.0050 | 0.8385 ± 0.0068 | 0.9327 |
| jpeg30 | 0.8690 ± 0.0082 | 0.7759 ± 0.0090 | 0.9181 |
| down0.75 | 0.8910 ± 0.0083 | 0.8411 ± 0.0039 | 0.9771 |
| down0.5 | 0.8895 ± 0.0067 | 0.8348 ± 0.0004 | 0.9600 |
| blur1.0 | 0.8566 ± 0.0051 | 0.8113 ± 0.0074 | 0.9946 |
Citation
@software{fakeradar2026,
author = {Jha, Jitendra},
title = {fakeradar: local-first AI-generated image detection},
year = {2026},
url = {https://github.com/JitendraJha98/fakeradar}
}
GenImage: Zhu et al., GenImage: A Million-Scale Benchmark for Detecting AI-Generated Image, NeurIPS 2023 Datasets and Benchmarks.